|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.control.FocusController
public class FocusController
A listener to the DockRegister
, ensuring that always the newest or
a visible Dockable
has the focus.
Nested Class Summary | |
---|---|
private class |
FocusController.StationListener
A listener observing all stations and changing the focused Dockable
when necessary. |
Field Summary | |
---|---|
private DockController |
controller
the controller whose focused Dockable might be exchanged |
private FocusController.StationListener |
listener
a listener added to every DockStation |
Constructor Summary | |
---|---|
FocusController(DockController controller)
Creates a new focus-controller. |
Method Summary | |
---|---|
void |
dockableRegistered(DockController controller,
Dockable dockable)
Invoked after a Dockable was registered. |
void |
dockableRegistering(DockController controller,
Dockable dockable)
Invoked right before the dockable is registered in the
controller . |
void |
dockableUnregistered(DockController controller,
Dockable dockable)
Invoked after dockable has been unregistered from controller . |
void |
dockStationRegistered(DockController controller,
DockStation station)
Invoked after a DockStation was registered. |
void |
dockStationRegistering(DockController controller,
DockStation station)
Invoked right before the station is registered in
the controller . |
void |
dockStationUnregistered(DockController controller,
DockStation station)
Invoked after station has been unregistered from controller . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private FocusController.StationListener listener
DockStation
private DockController controller
Dockable
might be exchanged
Constructor Detail |
---|
public FocusController(DockController controller)
controller
- the controller whose focused Dockable
might be
changed.Method Detail |
---|
public void dockStationRegistered(DockController controller, DockStation station)
DockRegisterListener
DockStation
was registered. This method can
be called while a Dockable
is dragged. See the method
DockController
.isOnMove()
.
dockStationRegistered
in interface DockRegisterListener
controller
- the controller where station
was addedstation
- the DockStation
that was addedpublic void dockStationUnregistered(DockController controller, DockStation station)
DockRegisterListener
station
has been unregistered from controller
.
Note that this method can be invoked while a Dockable
is dragged,
use the method DockController
.isOnMove()
.
dockStationUnregistered
in interface DockRegisterListener
controller
- the controller from whom dockable
was removedstation
- the removed DockStation
public void dockableUnregistered(DockController controller, Dockable dockable)
DockRegisterListener
dockable
has been unregistered from controller
.
Note that this method can be invoked while a Dockable
is dragged,
use the method DockController
.isOnMove()
.
dockableUnregistered
in interface DockRegisterListener
controller
- the controller from whom dockable
was removeddockable
- the removed Dockable
public void dockStationRegistering(DockController controller, DockStation station)
DockRegisterListener
station
is registered in
the controller
.
dockStationRegistering
in interface DockRegisterListener
controller
- the controller who does not yet know station
.station
- the station who does not yet know controller
.public void dockableRegistered(DockController controller, Dockable dockable)
DockRegisterListener
Dockable
was registered. Note that this method can
be called while a Dockable
is dragged. See the method
DockController
.isOnMove()
.
dockableRegistered
in interface DockRegisterListener
controller
- the controller where dockable
was addeddockable
- the Dockable
that was addedpublic void dockableRegistering(DockController controller, Dockable dockable)
DockRegisterListener
dockable
is registered in the
controller
.
dockableRegistering
in interface DockRegisterListener
controller
- the controller who does not yet know dockable
.dockable
- the dockable who does not yet know controller
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |