public interface CVetoClosingListener
CDockable
or a set of CDockable
s are closed. Subclasses
can fire a veto indicating that some CDockable
must not yet be closed.closing(CVetoClosingEvent)
is called before closed(CVetoClosingEvent)
closing(CVetoClosingEvent)
and closed(CVetoClosingEvent)
may not be equal, even if they describe the same eventclosing(CVetoClosingEvent)
was called once and handled three dockables, then closed(CVetoClosingEvent)
may be called three times to handle one dockableMultipleCDockable
s that are not children of a CWorkingArea
are closed and re-opened if the layout changes (CControl.load(String)
). This may be
prevented with a correct implementation of MultipleCDockableFactory.match
. Modifier and Type | Method and Description |
---|---|
void |
closed(CVetoClosingEvent event)
Called after a set of
CDockable s has been closed. |
void |
closing(CVetoClosingEvent event)
Called before a set of
CDockable s gets closed. |
void closing(CVetoClosingEvent event)
CDockable
s gets closed. This method may be invoked
with events that are already canceled, check the CVetoClosingEvent.isCanceled()
property.event
- the event that will happen but may be canceledvoid closed(CVetoClosingEvent event)
CDockable
s has been closed. This
method may be called without closing(CVetoClosingEvent)
been
called beforehand.event
- the event that has already happened