|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ButtonContentFilter
This filter decides for DockAction
s whether their text is shown on buttons.
DockAction.BUTTON_CONTENT_FILTER
Field Summary | |
---|---|
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 . |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final ButtonContentFilter NEVER
showText(Dockable, DockAction)
method always returns false
.
static final ButtonContentFilter ALWAYS
showText(Dockable, DockAction)
method always returns true
.
Method Detail |
---|
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 shown
true
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 shown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |