@FrameworkOnly public class ControlVetoClosingListener extends java.lang.Object implements VetoableDockFrontendListener
VetoableDockFrontendEvent
s and firing
new CVetoClosingEvent
s.Constructor and Description |
---|
ControlVetoClosingListener(CControl control,
CVetoClosingListener callback)
Creates a new converter.
|
Modifier and Type | Method and Description |
---|---|
protected CDockable[] |
getCDockables(VetoableDockFrontendEvent event)
Gets all the
CDockable s that are to be forwarded by this converter. |
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. |
public ControlVetoClosingListener(CControl control, CVetoClosingListener callback)
control
- the control in whose realm this converter workscallback
- the listener to inform about new eventspublic void hidden(VetoableDockFrontendEvent event)
VetoableDockFrontendListener
Dockable
was hidden. Other than
VetoableDockFrontendListener.hiding(VetoableDockFrontendEvent)
this method is always called.hidden
in interface VetoableDockFrontendListener
event
- description of the element and how it got closedpublic void hiding(VetoableDockFrontendEvent event)
VetoableDockFrontendListener
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)
.hiding
in interface VetoableDockFrontendListener
event
- description of the element to closeprotected CDockable[] getCDockables(VetoableDockFrontendEvent event)
CDockable
s that are to be forwarded by this converter.event
- the sourcenull
public void showing(VetoableDockFrontendEvent event)
VetoableDockFrontendListener
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)
showing
in interface VetoableDockFrontendListener
event
- description of the element to closepublic void shown(VetoableDockFrontendEvent event)
VetoableDockFrontendListener
Dockable
was shown. Other than
VetoableDockFrontendListener.showing(VetoableDockFrontendEvent)
this method is always called.shown
in interface VetoableDockFrontendListener
event
- description of the element and how it got shown