|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.control.focus.DefaultFocusStrategy
public class DefaultFocusStrategy
The DefaultFocusStrategy
keeps track of the last focused Component
of any
Dockable
that is registered at a DockController
.
Constructor Summary | |
---|---|
DefaultFocusStrategy(DockController controller)
|
Method Summary | |
---|---|
void |
bind()
Informs this strategy that it will be used from now on. |
Component |
getFocusComponent(Dockable dockable)
Given a Dockable this method tells which Component should be focused. |
void |
unbind()
Informs this strategy that it is no longer used from now on. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFocusStrategy(DockController controller)
Method Detail |
---|
public Component getFocusComponent(Dockable dockable)
FocusStrategy
Dockable
this method tells which Component
should be focused.
getFocusComponent
in interface FocusStrategy
dockable
- some dockable which is about to get the focus
null
if this method cannot decide (in which case
a default component will be chosen). If the Component
is not focusable, then the next Component
that
follows in the iteration of focusable Component
s will be focusedpublic void bind()
FocusStrategy
bind
in interface FocusStrategy
public void unbind()
FocusStrategy
unbind
in interface FocusStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |