public interface FocusVetoListener
FocusController
and allows to
interrupt a change of the focus. This listener stop focus transfer
if the transfer is initialized by the framework itself. If the client calls
a method like Component.requestFocusInWindow()
then the framework
may not be able to prevent the focus change from happening.Modifier and Type | Interface and Description |
---|---|
static class |
FocusVetoListener.FocusVeto
Tells how to react on a potential change of the focus.
|
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 . |
FocusVetoListener.FocusVeto vetoFocus(FocusController controller, DockTitle title)
title
.controller
- the controller who will change the focustitle
- the title from which the focus-change was initializednull
FocusVetoListener.FocusVeto vetoFocus(FocusController controller, Dockable dockable)
dockable
.controller
- the controller who will change the focusdockable
- the Dockable
from which the focus-change was initializednull