|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.FocusTraverseManager
This class is a helper to the SWTEventDispatcher
.
It handles the task of determining which Figure will gain
focus upon a tab/shift-tab. It also keeps track of the
Figure with current focus.
Note: When a Canvas with a LightweightSystem
gains
focus, it gives focus to the child Figure who had focus when this
Canvas lost focus. If the canvas is gaining focus for the first
time, focus is given to its first child Figure.
Constructor Summary | |
FocusTraverseManager()
|
Method Summary | |
IFigure |
getCurrentFocusOwner()
|
IFigure |
getNextFocusableFigure(IFigure root,
IFigure focusOwner)
Returns the IFigure that will receive focus upon a 'tab' traverse event. |
IFigure |
getPreviousFocusableFigure(IFigure root,
IFigure focusOwner)
Returns the IFigure that will receive focus upon a 'shift-tab' traverse event. |
void |
setCurrentFocusOwner(IFigure fig)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FocusTraverseManager()
Method Detail |
public IFigure getNextFocusableFigure(IFigure root, IFigure focusOwner)
root
- The LightweightSystem's
root figurefocusOwner
- The IFigure who currently owns focuspublic IFigure getPreviousFocusableFigure(IFigure root, IFigure focusOwner)
root
- The LightweightSystem's
root figurefocusOwner
- The IFigure who currently owns focuspublic IFigure getCurrentFocusOwner()
public void setCurrentFocusOwner(IFigure fig)
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |