public interface CVetoFocusListener
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.CControl.addVetoFocusListener(CVetoFocusListener)
,
CControl.removeVetoFocusListener(CVetoFocusListener)
Modifier and Type | Method and Description |
---|---|
boolean |
willGainFocus(CDockable dockable)
Called before focus is transferred to
dockable . |
boolean |
willLoseFocus(CDockable dockable)
Called before focus is transferred from
dockable . |
boolean willGainFocus(CDockable dockable)
dockable
.dockable
- the dockable that gets the focustrue
if this listener approves the action,
false
to speak out a vetoboolean willLoseFocus(CDockable dockable)
dockable
.dockable
- the dockable that looses the focustrue
if this listener approves the action,
false
to speak out a veto