|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdsto.dfc.swing.commands.WindowFocusTracker
public class WindowFocusTracker
Track focus changes across components in a window and sets command view's active property based on focus heirachy. This can be used to resolve overloaded commands based on component focus.
CommandView.activate()| Constructor Summary | |
|---|---|
WindowFocusTracker(Window window,
String view)
Create a focus tracker for a given window. |
|
WindowFocusTracker(Window window,
String[] views)
Create a focus tracker for a given window. |
|
| Method Summary | |
|---|---|
void |
dispose()
|
void |
eventDispatched(AWTEvent e)
|
protected void |
setFocusedComponent(Component newFocus)
|
protected void |
setViewsActive(Component start,
Component stop,
boolean active)
Walk down a chain of components, setting their command views 'active' property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WindowFocusTracker(Window window,
String view)
window - The window to track focus in.view - The view type to manage (eg CommandView.MAIN_MENU_VIEW),
public WindowFocusTracker(Window window,
String[] views)
window - The window to track focus in.views - The view types to manage (eg CommandView.MAIN_MENU_VIEW),| Method Detail |
|---|
public void dispose()
protected void setFocusedComponent(Component newFocus)
protected void setViewsActive(Component start,
Component stop,
boolean active)
start - The component (inclusive) to begin at.stop - The component (not inclusive) to end at.active - The new value of command view's active property.public void eventDispatched(AWTEvent e)
eventDispatched in interface AWTEventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||