|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.event.DockAdapter
public abstract class DockAdapter
An abstract implementation of DockableListener
, DockStationListener
and DockControllerListener
. All methods of this class are empty.
This class can be used if one or more of the mentioned interfaces should be implemented,
but only a few methods have actually to do something
Constructor Summary | |
---|---|
DockAdapter()
|
Method Summary | |
---|---|
void |
dockableAdded(DockStation station,
Dockable dockable)
Invoked after dockable has been added to station . |
void |
dockableAdding(DockStation station,
Dockable dockable)
Invoked before dockable is added to station . |
void |
dockableDrag(DockController controller,
Dockable dockable,
DockStation station)
Invoked before a Dockable is moved around. |
void |
dockableFocused(DockController controller,
Dockable dockable)
Invoked when dockable has gained the focus. |
void |
dockablePut(DockController controller,
Dockable dockable,
DockStation station)
Invoked after a Dockable was moved. |
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 |
dockableRemoved(DockStation station,
Dockable dockable)
Invoked after dockable has been removed from
station . |
void |
dockableRemoving(DockStation station,
Dockable dockable)
Invoked before dockable is removed from station . |
void |
dockableUnregistered(DockController controller,
Dockable dockable)
Invoked after dockable has been unregistered from controller . |
void |
dockableVisibiltySet(DockStation station,
Dockable dockable,
boolean visible)
Invoked if the visibility of a child has been changed. |
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 |
titleBinded(Dockable dockable,
DockTitle title)
Will be invoked when a DockTitle was binded
to a Dockable . |
void |
titleBinded(DockController controller,
DockTitle title,
Dockable dockable)
Called when title was binded
to dockable . |
void |
titleIconChanged(Dockable dockable,
javax.swing.Icon oldIcon,
javax.swing.Icon newIcon)
Invoked when the title-icon of a Dockable has changed |
void |
titleTextChanged(Dockable dockable,
java.lang.String oldTitle,
java.lang.String newTitle)
Invoked when the title of a Dockable has changed. |
void |
titleUnbinded(Dockable dockable,
DockTitle title)
Will be invoked when a DockTitle was unbinded
from a Dockable . |
void |
titleUnbinded(DockController controller,
DockTitle title,
Dockable dockable)
Called when title was unbinded
from dockable . |
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 titleBinded(Dockable dockable, DockTitle title)
DockableListener
DockTitle
was binded
to a Dockable
.
titleBinded
in interface DockableListener
dockable
- the Dockable
whose title is settitle
- the new titlepublic void titleIconChanged(Dockable dockable, javax.swing.Icon oldIcon, javax.swing.Icon newIcon)
DockableListener
Dockable
has changed
titleIconChanged
in interface DockableListener
dockable
- the Dockable
whose title is changedoldIcon
- the old icon, may be null
newIcon
- the new icon, may be null
public void titleTextChanged(Dockable dockable, java.lang.String oldTitle, java.lang.String newTitle)
DockableListener
Dockable
has changed.
titleTextChanged
in interface DockableListener
dockable
- the Dockable
whose title is changedoldTitle
- the title before the changenewTitle
- the title after the changepublic void titleUnbinded(Dockable dockable, DockTitle title)
DockableListener
DockTitle
was unbinded
from a Dockable
.
titleUnbinded
in interface DockableListener
dockable
- the Dockable
whose title was removedtitle
- the remove titlepublic 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 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 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 dockableDrag(DockController controller, Dockable dockable, DockStation station)
DockRelocatorListener
Dockable
is moved around. This method is called
after the user has released the mouse which was dragging a DockTitle
around.
dockableDrag
in interface DockRelocatorListener
controller
- the origin of the eventdockable
- the Dockable
which was draggedstation
- the future parent of dockable
DockRelocatorListener.dockablePut(DockController, Dockable, DockStation)
public void dockableFocused(DockController controller, Dockable dockable)
DockControllerListener
dockable
has gained the focus.
dockableFocused
in interface DockControllerListener
controller
- the origin of the eventdockable
- the Dockable
which is now focusedpublic void dockablePut(DockController controller, Dockable dockable, DockStation station)
DockRelocatorListener
Dockable
was moved.
dockablePut
in interface DockRelocatorListener
controller
- the origin of the eventdockable
- the Dockable
which was draggedstation
- the new parent of dockable
DockRelocatorListener.dockableDrag(DockController, Dockable, DockStation)
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 titleBinded(DockController controller, DockTitle title, Dockable dockable)
DockControllerListener
title
was binded
to dockable
.
This method is called after the DockTitle.bind()
-method
was invoked.
titleBinded
in interface DockControllerListener
controller
- the origin of the eventtitle
- the DockTitle
that was bindeddockable
- the owner of title
public void titleUnbinded(DockController controller, DockTitle title, Dockable dockable)
DockControllerListener
title
was unbinded
from dockable
.
This method is called after the DockTitle.bind()
-method
was invoked.
titleUnbinded
in interface DockControllerListener
controller
- the origin of the eventtitle
- the DockTitle
which was unbindeddockable
- the old owner of title
public void dockableAdded(DockStation station, Dockable dockable)
DockStationListener
dockable
has been added to station
.
dockableAdded
in interface DockStationListener
station
- the station where the new child was addeddockable
- the new childpublic void dockableAdding(DockStation station, Dockable dockable)
DockStationListener
dockable
is added to station
.
dockableAdding
in interface DockStationListener
station
- the station where the new child will be addeddockable
- the new childpublic void dockableRemoved(DockStation station, Dockable dockable)
DockStationListener
dockable
has been removed from
station
.
dockableRemoved
in interface DockStationListener
station
- the station where the old child was removeddockable
- the old childpublic void dockableRemoving(DockStation station, Dockable dockable)
DockStationListener
dockable
is removed from station
.
dockableRemoving
in interface DockStationListener
station
- the station where the old child will be removeddockable
- the old childpublic void dockableVisibiltySet(DockStation station, Dockable dockable, boolean visible)
DockStationListener
DockableVisibilityManager
to organize the calls in an easy way.
dockableVisibiltySet
in interface DockStationListener
station
- the station whose children have changed their visibilitydockable
- the Dockable
whose visibility has changedvisible
- the new visibility-state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |