|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VetoableDockRelocatorListener
This listener can be added to a DockRelocator
and will receive an event
whenever the user, a RemoteRelocator
or a DirectRemoteRelocator
moves
around a Dockable
.
Note: this listener is intended to monitor the users actions. This listener will never be informed about events
that are triggered indirectly or by the client itself. It must not be used to keep track of the layout
of the entire application, DockRegisterListener
and DockHierarchyListener
s are much better fit for
that job.
A successfull drag and drop operation of a Dockable
will cause these events:
grabbing(DockRelocatorEvent)
right before the operation starts.grabbed(DockRelocatorEvent)
once the operation started.searched(DockRelocatorEvent)
every time when the user moves the mouse. dropping(DockRelocatorEvent)
once the user released the mouse and the Dockable
is about to
change its position. dragging(DockRelocatorEvent)
before the Dockable
is removed from its current parent. dragged(DockRelocatorEvent)
if the Dockable
was removed from its parent. dropped(DockRelocatorEvent)
once the operation completed. canceled(DockRelocatorEvent)
may be called at any time.
Method Summary | |
---|---|
void |
canceled(DockRelocatorEvent event)
Called if a drag and drop operation was canceled due to any reason. |
void |
dragged(DockRelocatorEvent event)
Called after the Dockable was removed from its parent. |
void |
dragging(DockRelocatorEvent event)
Called before the Dockable is removed from its parent. |
void |
dropped(DockRelocatorEvent event)
Called after a drag and drop operation finished. |
void |
dropping(DockRelocatorEvent event)
Called when the user released the mouse, but the Dockable was not
yet moved. |
void |
grabbed(DockRelocatorEvent event)
Called when the drag and drop operation started, after this method was invoked visible indicators for the user will start to appear. |
void |
grabbing(DockRelocatorEvent event)
Called before the drag and drop operations starts, the user is already pressing the mouse, but there are no visible indicators of the operation yet. |
void |
searched(DockRelocatorEvent event)
Called after the mouse has moved, the Dockable may have a new target DockStation . |
Method Detail |
---|
void grabbing(DockRelocatorEvent event)
event
- further description of the eventvoid grabbed(DockRelocatorEvent event)
event
- further description of the eventvoid searched(DockRelocatorEvent event)
Dockable
may have a new target DockStation
.
event
- further descriptionvoid dropping(DockRelocatorEvent event)
Dockable
was not
yet moved. After the drop operation completed the Dockable
will either be a child
of the target station
, of its current parent or has no parent at all.
event
- further description of the eventvoid dragging(DockRelocatorEvent event)
Dockable
is removed from its parent. This event may even be called, if the future
parent of the Dockable
is identical to the current parent.
event
- further description of the eventvoid dragged(DockRelocatorEvent event)
Dockable
was removed from its parent. It is possible that the Dockable
already has a new parent. It is even possible that the new parent is the old parent. This event can neither be canceled nor forbidden.
event
- further descriptionvoid dropped(DockRelocatorEvent event)
Dockable
was moved
by the operation. Please note that the actual parent of the Dockable
does not have to be
the target station
. This event can neither be canceled nor forbidden.
event
- further description of the eventvoid canceled(DockRelocatorEvent event)
event
- further description of the event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |