bibliothek.gui.dock.station.flap
Class FlapDockDirection

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.SimpleMenuAction
              extended by bibliothek.gui.dock.station.flap.FlapDockDirection
All Implemented Interfaces:
DockAction, ListeningDockAction, MenuDockAction, StandardDockAction

public class FlapDockDirection
extends SimpleMenuAction
implements ListeningDockAction

This DockAction is used as an action of a FlapDockStation. The action itself changes the direction in which a FlapDockStation opens. This is done by calling the setAutoDirection and the FlapDockStation.setDirection(Direction)-methods.

Author:
Benjamin Sigg

Field Summary
 
Fields inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction
listeners
 
Constructor Summary
FlapDockDirection(DockController controller)
          Creates the icon of the action, and sets the text and tooltip of the action.
 
Method Summary
 void setController(DockController controller)
          Called when a new controller has been set.
 
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleMenuAction
createView, getMenu, getMenu, setMenu, trigger
 
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDockAction
bound, getAccelerator, getDisabledIcon, getDisabledIcon, getIcon, getIcon, getText, getText, getTooltip, getTooltipText, getTooltipText, isEnabled, isEnabled, setAccelerator, setDisabledIcon, setEnabled, setIcon, setText, setTooltip, trigger, unbound
 
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction
addDockActionListener, bind, fireActionDisabledIconChanged, fireActionEnabledChanged, fireActionIconChanged, 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.DockAction
bind, createView, trigger, unbind
 
Methods inherited from interface bibliothek.gui.dock.action.StandardDockAction
addDockActionListener, getDisabledIcon, getIcon, getText, getTooltipText, isEnabled, removeDockActionListener
 

Constructor Detail

FlapDockDirection

public FlapDockDirection(DockController controller)
Creates the icon of the action, and sets the text and tooltip of the action.

Parameters:
controller - The controller for which this action will be used. The controller is needed to retrieve the icons for this action.
Method Detail

setController

public void setController(DockController controller)
Description copied from interface: ListeningDockAction
Called when a new controller has been set.

Specified by:
setController in interface ListeningDockAction
Parameters:
controller - the new controller