bibliothek.gui.dock.toolbar.expand
Class SimpleExpandAction

java.lang.Object
  extended by bibliothek.gui.dock.action.actions.AbstractStandardDockAction
      extended by bibliothek.gui.dock.action.actions.SimpleDockAction
          extended by bibliothek.gui.dock.action.actions.SimpleDropDownItemAction
              extended by bibliothek.gui.dock.action.actions.SimpleButtonAction
                  extended by bibliothek.gui.dock.toolbar.expand.SimpleExpandAction
All Implemented Interfaces:
bibliothek.gui.dock.action.actions.SharingDropDownItemAction, bibliothek.gui.dock.action.actions.SharingStandardDockAction, bibliothek.gui.dock.action.ButtonDockAction, bibliothek.gui.dock.action.DockAction, bibliothek.gui.dock.action.dropdown.DropDownItemAction, bibliothek.gui.dock.action.StandardDockAction, bibliothek.gui.dock.action.StandardDropDownItemAction

public class SimpleExpandAction
extends bibliothek.gui.dock.action.actions.SimpleButtonAction

A SimpleExpandAction just shows the icon, text and tooltip of one SimpleExpandAction.Action that could be executed regarding the ExpandedState. This action does not implement any logic, it just provides a good looking button.

Author:
Benjamin Sigg

Nested Class Summary
static class SimpleExpandAction.Action
          describes to which state this action leads
 
Field Summary
 
Fields inherited from interface bibliothek.gui.dock.action.DockAction
BUTTON_CONTENT_FILTER
 
Constructor Summary
SimpleExpandAction(bibliothek.gui.DockController controller, SimpleExpandAction.Action action)
          Creates a new action.
 
Method Summary
 void bound(bibliothek.gui.Dockable dockable)
           
 SimpleExpandAction.Action getBehavior()
          Tells how this action looks like.
 void setBehavior(SimpleExpandAction.Action behavior)
          Sets the look of this action
 void unbound(bibliothek.gui.Dockable dockable)
           
 
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleButtonAction
action, addActionListener, createView, getCommand, removeActionListener, setCommand, trigger
 
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDropDownItemAction
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected
 
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDockAction
getAccelerator, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getIcon, getIconContexts, getText, getText, getTooltip, getTooltipText, getTooltipText, isEnabled, isEnabled, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip, trigger
 
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction
addDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbind
 
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.dropdown.DropDownItemAction
isDropDownSelectable, isDropDownTriggerable
 
Methods inherited from interface bibliothek.gui.dock.action.StandardDockAction
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListener
 
Methods inherited from interface bibliothek.gui.dock.action.DockAction
bind, unbind
 
Methods inherited from interface bibliothek.gui.dock.action.actions.SharingStandardDockAction
getAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isEnabled, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip
 

Constructor Detail

SimpleExpandAction

public SimpleExpandAction(bibliothek.gui.DockController controller,
                          SimpleExpandAction.Action action)
Creates a new action.

Parameters:
controller - the controller in whose realm this action is used
action - the exact look of this action
Method Detail

getBehavior

public SimpleExpandAction.Action getBehavior()
Tells how this action looks like.

Returns:
how this action looks

setBehavior

public void setBehavior(SimpleExpandAction.Action behavior)
Sets the look of this action

Parameters:
behavior - the new look

bound

public void bound(bibliothek.gui.Dockable dockable)
Overrides:
bound in class bibliothek.gui.dock.action.actions.SimpleDockAction

unbound

public void unbound(bibliothek.gui.Dockable dockable)
Overrides:
unbound in class bibliothek.gui.dock.action.actions.SimpleDockAction