Interface CVetoFocusListener


public interface CVetoFocusListener
This listener is used to prevent a 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 Type
    Method
    Description
    boolean
    Called before focus is transferred to dockable.
    boolean
    Called before focus is transferred from dockable.
  • Method Details

    • willGainFocus

      boolean willGainFocus(CDockable dockable)
      Called before focus is transferred to dockable.
      Parameters:
      dockable - the dockable that gets the focus
      Returns:
      true if this listener approves the action, false to speak out a veto
    • willLoseFocus

      boolean willLoseFocus(CDockable dockable)
      Called before focus is transferred from dockable.
      Parameters:
      dockable - the dockable that looses the focus
      Returns:
      true if this listener approves the action, false to speak out a veto