|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.event.DockAdapter
public class DockAdapter
An implementation of DockListener
, doing nothing whenever receiving
an event.
Constructor Summary | |
---|---|
DockAdapter()
|
Method Summary | |
---|---|
void |
cancel(DockController controller,
Dockable dockable)
Invoked when a drag and drop operation was initiated, but canceld. |
void |
dockableCycledRegister(DockController controller,
Dockable dockable)
Invoked when dockable was added and removed from the controller , or
was removed and added again to controller . |
void |
dockableFocused(DockableFocusEvent event)
Invoked when dockable has gained the focus. |
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 . |
void |
drag(DockController controller,
Dockable dockable,
DockStation station)
Invoked when a drag and drop operation has been confirmed. |
void |
drop(DockController controller,
Dockable dockable,
DockStation station)
Invoked after a Dockable was dropped. |
void |
init(DockController controller,
Dockable dockable)
Invoked when a drag and drop operation is initiated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DockAdapter()
Method Detail |
---|
public void dockableFocused(DockableFocusEvent event)
DockableFocusListener
dockable
has gained the focus.
dockableFocused
in interface DockableFocusListener
event
- an event that contains the new owner of the focuspublic 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 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 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 where dockable
was removedstation
- the removed DockStation
public void dockableCycledRegister(DockController controller, Dockable dockable)
DockRegisterListener
dockable
was added and removed from the controller
, or
was removed and added again to controller
. This method is only
invoked if a call to DockRegisterListener.dockableRegistered(DockController, Dockable)
and
DockRegisterListener.dockableUnregistered(DockController, Dockable)
was suppressed. It
is unknown whether dockable
is now registered at controller
.
dockableCycledRegister
in interface DockRegisterListener
controller
- the controller whose register dockable
cycleddockable
- some Dockable
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
.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 where dockable
was removeddockable
- the removed Dockable
public void cancel(DockController controller, Dockable dockable)
DockRelocatorListener
DockRelocatorListener.init(DockController, Dockable)
.
was called.
cancel
in interface DockRelocatorListener
controller
- the origin of the eventdockable
- the element that has been grabbedpublic void drag(DockController controller, Dockable dockable, DockStation station)
DockRelocatorListener
dockable
is dragged from its old parent.
drag
in interface DockRelocatorListener
controller
- the origin of the eventdockable
- the Dockable
which was draggedstation
- the future parent of dockable
DockRelocatorListener.drop(DockController, Dockable, DockStation)
public void drop(DockController controller, Dockable dockable, DockStation station)
DockRelocatorListener
Dockable
was dropped.
drop
in interface DockRelocatorListener
controller
- the origin of the eventdockable
- the Dockable
which was draggedstation
- the new parent of dockable
DockRelocatorListener.drag(DockController, Dockable, DockStation)
public void init(DockController controller, Dockable dockable)
DockRelocatorListener
init
in interface DockRelocatorListener
controller
- the origin of the eventdockable
- the element that has been grabbed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |