bibliothek.gui.dock.event
Interface FocusVetoListener

All Known Implementing Classes:
FlapDockStation.ControllerListener

public interface FocusVetoListener

This listener is added to the FocusController and allows to interrupt a change of the focus.

Author:
Benjamin Sigg

Method Summary
 boolean vetoFocus(MouseFocusObserver controller, Dockable dockable)
          Invoked when the focus should change because the user did something with dockable.
 boolean vetoFocus(MouseFocusObserver controller, DockTitle title)
          Invoked when the focus should change because the user did something with title.
 

Method Detail

vetoFocus

boolean vetoFocus(MouseFocusObserver controller,
                  DockTitle title)
Invoked when the focus should change because the user did something with title.

Parameters:
controller - the controller who will change the focus
title - the title from which the focus-change was initialized
Returns:
true if the change should be canceled, false if the focus can be changed

vetoFocus

boolean vetoFocus(MouseFocusObserver controller,
                  Dockable dockable)
Invoked when the focus should change because the user did something with dockable.

Parameters:
controller - the controller who will change the focus
dockable - the Dockable from which the focus-change was initialized
Returns:
true if the change should be canceled, false if the focus can be changed