@FrameworkOnly public class ControlVetoFocusListener extends Object implements FocusVetoListener
DockController
and forwards
all calls to a CVetoFocusListener
.FocusVetoListener.FocusVeto
Constructor and Description |
---|
ControlVetoFocusListener(CControl control,
CVetoFocusListener callback)
Creates a new veto focus listener.
|
Modifier and Type | Method and Description |
---|---|
FocusVetoListener.FocusVeto |
vetoFocus(FocusController controller,
Dockable dockable)
Invoked when the focus should change because the user did something
with
dockable . |
FocusVetoListener.FocusVeto |
vetoFocus(FocusController controller,
DockTitle title)
Invoked when the focus should change because the user did something
with
title . |
public ControlVetoFocusListener(CControl control, CVetoFocusListener callback)
control
- the control in whose realm this listener operatescallback
- the callback to be called if an event is triggeredpublic FocusVetoListener.FocusVeto vetoFocus(FocusController controller, DockTitle title)
FocusVetoListener
title
.vetoFocus
in interface FocusVetoListener
controller
- the controller who will change the focustitle
- the title from which the focus-change was initializednull
public FocusVetoListener.FocusVeto vetoFocus(FocusController controller, Dockable dockable)
FocusVetoListener
dockable
.vetoFocus
in interface FocusVetoListener
controller
- the controller who will change the focusdockable
- the Dockable
from which the focus-change was initializednull