Package bibliothek.gui.dock.common.event
Interface CVetoClosingListener
public interface CVetoClosingListener
This listener can be called before a
Please note:
CDockable or a set of CDockables are closed. Subclasses
can fire a veto indicating that some CDockable must not yet be closed.Please note:
- It may not always be possible to cancel a closing-operation.
- There is no guarantee that
closing(CVetoClosingEvent)is called beforeclosed(CVetoClosingEvent) - The event-object passed to
closing(CVetoClosingEvent)andclosed(CVetoClosingEvent)may not be equal, even if they describe the same event - Events may be split: if
closing(CVetoClosingEvent)was called once and handled three dockables, thenclosed(CVetoClosingEvent)may be called three times to handle one dockable -
MultipleCDockables that are not children of aCWorkingAreaare closed and re-opened if the layout changes (CControl.load(String)). This may be prevented with a correct implementation ofMultipleCDockableFactory.match.
- Author:
- Benjamin Sigg
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclosed(CVetoClosingEvent event) Called after a set ofCDockables has been closed.voidclosing(CVetoClosingEvent event) Called before a set ofCDockables gets closed.
-
Method Details
-
closing
Called before a set ofCDockables gets closed. This method may be invoked with events that are already canceled, check theCVetoClosingEvent.isCanceled()property.- Parameters:
event- the event that will happen but may be canceled
-
closed
Called after a set ofCDockables has been closed. This method may be called withoutclosing(CVetoClosingEvent)been called beforehand.- Parameters:
event- the event that has already happened
-