|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.control.focus.AbstractFocusController
bibliothek.gui.dock.control.DefaultFocusController
public class DefaultFocusController
Default implementation of FocusController
.
Constructor Summary | |
---|---|
DefaultFocusController(DockController controller)
Creates a new focus-controller |
Method Summary | |
---|---|
FocusVetoListener.FocusVeto |
checkFocusedDockable(DockElementRepresentative source)
Checks whether source can be used to select the next focused Dockable . |
void |
ensureFocusSet(boolean dockableOnly)
Ensures that a title or a Component of the currently
focused Dockable really
has the focus. |
Dockable |
getFocusedDockable()
Gets the Dockable which is currently focused. |
boolean |
isOnFocusing()
Tells whether one of the methods which change the focus is currently running, or not. |
FocusVetoListener.FocusVeto |
setFocusedDockable(DockElementRepresentative source,
boolean force,
boolean ensureFocusSet,
boolean ensureDockableFocused)
Sets the Dockable which should have the focus. |
Methods inherited from class bibliothek.gui.dock.control.focus.AbstractFocusController |
---|
addDockableFocusListener, addVetoListener, dockableFocusListeners, fireDockableFocused, fireVetoDockable, fireVetoTitle, freezeFocus, getController, getStrategy, isFrozen, meltFocus, removeDockableFocusListener, removeVetoListener, setStrategy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFocusController(DockController controller)
controller
- the owner of this controllerMethod Detail |
---|
public boolean isOnFocusing()
FocusController
true
, noone should
change the focus.
true
if the focus is currently changingpublic Dockable getFocusedDockable()
FocusController
Dockable
which is currently focused.
null
public FocusVetoListener.FocusVeto checkFocusedDockable(DockElementRepresentative source)
FocusController
source
can be used to select the next focused Dockable
.
source
- the element which may be focused
null
indicates that
source
does not represent a Dockable
public FocusVetoListener.FocusVeto setFocusedDockable(DockElementRepresentative source, boolean force, boolean ensureFocusSet, boolean ensureDockableFocused)
FocusController
Dockable
which should have the focus.
source
- the item to focs, may be null
force
- true
if this controller must ensure
that all properties are correct, false
if some
optimations are allowed. Clients normally can set this argument
to false
.ensureFocusSet
- if true
, then this method should make sure that either focusedDockable
itself or one of its DockElementRepresentative
is the focus ownerensureDockableFocused
- if true
, then this method should make sure that focusedDockable
is the focus owner. This parameter is stronger that ensureFocusSet
null
indicates that FocusController.isOnFocusing()
returned
true
and the call was ignoredpublic void ensureFocusSet(boolean dockableOnly)
FocusController
Component
of the currently
focused Dockable
really
has the focus.
dockableOnly
- if true
, then only the Dockable
itself
should be focused
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |