Package bibliothek.gui.dock.common.event
Interface CVetoFocusListener
public interface CVetoFocusListener
This listener is used to prevent a
Please use this listener with care, the workflow of the user may be seriously hindered if the focus cannot be changed.
CDockable from loosing or gaining
the focus. Events may happen such that the framework is unable to prevent the
focus from changing, e.g. if a CDockable is closed.Please use this listener with care, the workflow of the user may be seriously hindered if the focus cannot be changed.
- Author:
- Benjamin Sigg
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanwillGainFocus(CDockable dockable) Called before focus is transferred todockable.booleanwillLoseFocus(CDockable dockable) Called before focus is transferred fromdockable.
-
Method Details
-
willGainFocus
Called before focus is transferred todockable.- Parameters:
dockable- the dockable that gets the focus- Returns:
trueif this listener approves the action,falseto speak out a veto
-
willLoseFocus
Called before focus is transferred fromdockable.- Parameters:
dockable- the dockable that looses the focus- Returns:
trueif this listener approves the action,falseto speak out a veto
-