public interface VetoableDockFrontendListener
DockFrontend
. It gets informed before
and after a Dockable
is shown or hidden. In some cases this listener
can cancel the operation.Dockable
s
given to one method may be split up into many arrays the next time or when
given to another method. It is however guaranteed that there are no false
alarms (i.e. an already invisible Dockable
will never
be given to hiding(VetoableDockFrontendEvent)
).DockFrontend.addVetoableListener(VetoableDockFrontendListener)
for further
information.Modifier and Type | Method and Description |
---|---|
void |
hidden(VetoableDockFrontendEvent event)
Called whenever a set of
Dockable was hidden. |
void |
hiding(VetoableDockFrontendEvent event)
Called before a set of
Dockable s is hidden. |
void |
showing(VetoableDockFrontendEvent event)
Called before a
Dockable is shown. |
void |
shown(VetoableDockFrontendEvent event)
Called whenever a
Dockable was shown. |
void showing(VetoableDockFrontendEvent event)
Dockable
is shown. To abort the operation,
VetoableDockFrontendEvent.cancel()
can be invoked.
This method may not be called for all Dockable
s, it is certainly
called if a client opens a Dockable
through DockFrontend.show(Dockable)
event
- description of the element to closevoid shown(VetoableDockFrontendEvent event)
Dockable
was shown. Other than
showing(VetoableDockFrontendEvent)
this method is always called.event
- description of the element and how it got shownvoid hiding(VetoableDockFrontendEvent event)
Dockable
s is hidden. To abort the
operation, VetoableDockFrontendEvent.cancel()
can be invoked.
This method may not always be invoked for all Dockable
s, it
is certainly invoked if DockFrontend.hide(Dockable)
is called or if DockFrontend.setSetting(bibliothek.gui.dock.frontend.Setting, boolean)
.event
- description of the element to closevoid hidden(VetoableDockFrontendEvent event)
Dockable
was hidden. Other than
hiding(VetoableDockFrontendEvent)
this method is always called.event
- description of the element and how it got closed