bibliothek.gui.dock.action
Interface ActionPopupSuppressor


public interface ActionPopupSuppressor

Suppresses a popup to show

Author:
Benjamin Sigg

Field Summary
static ActionPopupSuppressor ALLOW_ALWAYS
          Allows every popup to appear.
static ActionPopupSuppressor BALANCED
          Allows a popup only to appear if there are no titles for a Dockable or if more than one action would be shown.
static ActionPopupSuppressor SUPPRESS_ALWAYS
          Never allows a popup to appear.
 
Method Summary
 boolean suppress(Dockable dockable, DockActionSource source)
          Tells whether to suppress or to allow a popup for source.
 

Field Detail

ALLOW_ALWAYS

static final ActionPopupSuppressor ALLOW_ALWAYS
Allows every popup to appear.


SUPPRESS_ALWAYS

static final ActionPopupSuppressor SUPPRESS_ALWAYS
Never allows a popup to appear.


BALANCED

static final ActionPopupSuppressor BALANCED
Allows a popup only to appear if there are no titles for a Dockable or if more than one action would be shown.

Method Detail

suppress

boolean suppress(Dockable dockable,
                 DockActionSource source)
Tells whether to suppress or to allow a popup for source.

Parameters:
dockable - the Dockable for which the popup would be shown
source - the source which would be shown
Returns:
true if nothing should be shown, false if the popup is not suppressed