public interface ButtonContentFilter
DockActions whether their text is shown on buttons.DockAction.BUTTON_CONTENT_FILTER| Modifier and Type | Field and Description |
|---|---|
static ButtonContentFilter |
ALWAYS
A filter whose
showText(Dockable, DockAction) method always returns true. |
static ButtonContentFilter |
NEVER
A filter whose
showText(Dockable, DockAction) method always returns false. |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ButtonContentFilterListener listener)
Adds the observer
listener to this filter. |
void |
install(Dockable dockable,
DockAction action)
Informs this filter that
action which is connected to dockable will
be shown. |
void |
removeListener(ButtonContentFilterListener listener)
Removes the observer
listener from this filter. |
boolean |
showText(Dockable dockable,
DockAction action)
Tells whether the text of
action, that is associated with dockable, is to be shown. |
void |
uninstall(Dockable dockable,
DockAction action)
Informs this filter that
action will no longer be shown. |
static final ButtonContentFilter NEVER
showText(Dockable, DockAction) method always returns false.static final ButtonContentFilter ALWAYS
showText(Dockable, DockAction) method always returns true.boolean showText(Dockable dockable, DockAction action)
action, that is associated with dockable, is to be shown.dockable - the Dockable with which action is connectedaction - the action whose text may be showntrue if the text is to be shown, false otherwisevoid install(Dockable dockable, DockAction action)
action which is connected to dockable will
be shown. This method may be called more then once, if the action is shown in more than one
place.dockable - the element whose action is going to show upaction - the action that is going to show upvoid uninstall(Dockable dockable, DockAction action)
action will no longer be shown. This method may be called
more than once if action is shown at more than one place.dockable - the element whose action is going to be hiddenaction - the action that is no longer showing upvoid addListener(ButtonContentFilterListener listener)
listener to this filter. The listener must be called if
the result of showText(Dockable, DockAction) changes.listener - the new listenervoid removeListener(ButtonContentFilterListener listener)
listener from this filter.listener - the observer that is no longer shownCopyright © 2017 Docking Frames. All rights reserved.