|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.action.AbstractButtonContentFilter
public abstract class AbstractButtonContentFilter
An abstract implementation of ButtonContentFilter implementing all methods except
the filter algorithm itself.
| Field Summary |
|---|
| Fields inherited from interface bibliothek.gui.dock.action.ButtonContentFilter |
|---|
ALWAYS, NEVER |
| Constructor Summary | |
|---|---|
AbstractButtonContentFilter()
|
|
| Method Summary | |
|---|---|
void |
addListener(ButtonContentFilterListener listener)
Adds the observer listener to this filter. |
protected void |
fire(Dockable dockable,
DockAction action)
Calls ButtonContentFilterListener.showTextChanged(ButtonContentFilter, Dockable, DockAction) on all
listeners that are currently registered |
void |
install(Dockable dockable,
DockAction action)
Informs this filter that action which is connected to dockable will
be shown. |
protected void |
installed(DockAction action)
Called the first time action is installed. |
protected void |
installed(DockAction action,
Dockable dockable)
Called the first time dockable and action are installed. |
void |
removeListener(ButtonContentFilterListener listener)
Removes the observer listener from this filter. |
void |
uninstall(Dockable dockable,
DockAction action)
Informs this filter that action will no longer be shown. |
protected void |
uninstalled(DockAction action)
Called after action was uninstalled the last time. |
protected void |
uninstalled(DockAction action,
Dockable dockable)
Called after dockable and action have been uninstalled the last time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bibliothek.gui.dock.action.ButtonContentFilter |
|---|
showText |
| Constructor Detail |
|---|
public AbstractButtonContentFilter()
| Method Detail |
|---|
public void addListener(ButtonContentFilterListener listener)
ButtonContentFilterlistener to this filter. The listener must be called if
the result of ButtonContentFilter.showText(Dockable, DockAction) changes.
addListener in interface ButtonContentFilterlistener - the new listenerpublic void removeListener(ButtonContentFilterListener listener)
ButtonContentFilterlistener from this filter.
removeListener in interface ButtonContentFilterlistener - the observer that is no longer shown
protected void fire(Dockable dockable,
DockAction action)
ButtonContentFilterListener.showTextChanged(ButtonContentFilter, Dockable, DockAction) on all
listeners that are currently registered
dockable - the dockable for which the result of ButtonContentFilter.showText(Dockable, DockAction) changed, can be nullaction - the action for which the result of ButtonContentFilter.showText(Dockable, DockAction) changed, can be null
protected void installed(DockAction action,
Dockable dockable)
dockable and action are installed.
action - the newly installed actiondockable - the newly installed dockableprotected void installed(DockAction action)
action is installed.
action - the newly installed action
protected void uninstalled(DockAction action,
Dockable dockable)
dockable and action have been uninstalled the last time.
action - the action that has been uninstalleddockable - the dockable that has been uninstalledprotected void uninstalled(DockAction action)
action was uninstalled the last time.
action - the action that has been uninstalled
public void install(Dockable dockable,
DockAction action)
ButtonContentFilteraction 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.
install in interface ButtonContentFilterdockable - the element whose action is going to show upaction - the action that is going to show up
public void uninstall(Dockable dockable,
DockAction action)
ButtonContentFilteraction will no longer be shown. This method may be called
more than once if action is shown at more than one place.
uninstall in interface ButtonContentFilterdockable - the element whose action is going to be hiddenaction - the action that is no longer showing up
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||