|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FocusStrategy
A FocusStrategy
is used by a DockController
to decide which Component
to focus if
a Dockable
should receive the focus.
Method Summary | |
---|---|
void |
bind()
Informs this strategy that it will be used from now on. |
Component |
getFocusComponent(Dockable dockable,
Component mouseClicked)
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. |
Method Detail |
---|
Component getFocusComponent(Dockable dockable, Component mouseClicked)
Dockable
this method tells which Component
should be focused.
dockable
- some dockable which is about to get the focusmouseClicked
- the component which was touched by the mouse and which would get the focus normally. Can be null
.
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 focused. If the result is
mouseClicked
then no focus will be transfered - even if mouseClicked
is not focusablevoid bind()
void unbind()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |