public interface ActionPopupSuppressor
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
suppress(Dockable dockable,
DockActionSource source)
Tells whether to suppress or to allow a popup for
source . |
static final ActionPopupSuppressor ALLOW_ALWAYS
static final ActionPopupSuppressor SUPPRESS_ALWAYS
static final ActionPopupSuppressor BALANCED
Dockable
or if more than one action would be shown.boolean suppress(Dockable dockable, DockActionSource source)
source
.dockable
- the Dockable for which the popup would be shownsource
- the source which would be showntrue
if nothing should be shown, false
if the popup is not suppressed