bibliothek.gui.dock.common.intern.action
Class CButtonContentFilter

java.lang.Object
  extended by bibliothek.gui.dock.action.AbstractButtonContentFilter
      extended by bibliothek.gui.dock.common.intern.action.CButtonContentFilter
All Implemented Interfaces:
ButtonContentFilter

public class CButtonContentFilter
extends AbstractButtonContentFilter

This ButtonContentFilter searches for CDecorateableActions and decides whether their text is shown

Author:
Benjamin Sigg

Field Summary
 
Fields inherited from interface bibliothek.gui.dock.action.ButtonContentFilter
ALWAYS, NEVER
 
Constructor Summary
CButtonContentFilter()
           
 
Method Summary
protected  void installed(DockAction action)
          Called the first time action is installed.
 boolean showText(Dockable dockable, DockAction action)
          Tells whether the text of action, that is associated with dockable, is to be shown.
protected  void uninstalled(DockAction action)
          Called after action was uninstalled the last time.
 
Methods inherited from class bibliothek.gui.dock.action.AbstractButtonContentFilter
addListener, fire, install, installed, removeListener, uninstall, uninstalled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CButtonContentFilter

public CButtonContentFilter()
Method Detail

showText

public boolean showText(Dockable dockable,
                        DockAction action)
Description copied from interface: ButtonContentFilter
Tells whether the text of action, that is associated with dockable, is to be shown.

Parameters:
dockable - the Dockable with which action is connected
action - the action whose text may be shown
Returns:
true if the text is to be shown, false otherwise

installed

protected void installed(DockAction action)
Description copied from class: AbstractButtonContentFilter
Called the first time action is installed.

Overrides:
installed in class AbstractButtonContentFilter
Parameters:
action - the newly installed action

uninstalled

protected void uninstalled(DockAction action)
Description copied from class: AbstractButtonContentFilter
Called after action was uninstalled the last time.

Overrides:
uninstalled in class AbstractButtonContentFilter
Parameters:
action - the action that has been uninstalled