bibliothek.gui.dock.station.flap
Class FlapDockDirection
java.lang.Object
bibliothek.gui.dock.action.actions.AbstractStandardDockAction
bibliothek.gui.dock.action.actions.SimpleDockAction
bibliothek.gui.dock.action.actions.SimpleMenuAction
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
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDockAction |
getDisabledIcon, getDisabledIcon, getIcon, getIcon, getText, getText, getTooltipText, getTooltipText, isEnabled, isEnabled, setDisabledIcon, setEnabled, setIcon, setText, setTooltipText |
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
addDockActionListener, bind, binded, fireActionDisabledIconChanged, fireActionEnabledChanged, fireActionIconChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBindeds, isBinded, removeDockActionListener, unbind, unbinded |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
north
private FlapDockDirection.DirectedArrow north
south
private FlapDockDirection.DirectedArrow south
east
private FlapDockDirection.DirectedArrow east
west
private FlapDockDirection.DirectedArrow west
center
private FlapDockDirection.DirectedArrow center
controller
private DockController controller
listener
private FlapDockDirection.Listener listener
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.
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
fire
private void fire()
- Fires an event on all radio buttons.
getStation
private FlapDockStation getStation(Dockable dockable)
- Gets the first FlapDockStation in the path from
dockable
to the root of the tree.
- Parameters:
dockable
- the first element to test.
- Returns:
- the lowest FlapDockStation