bibliothek.gui.dock.station.flap
Class FlapDockStationSource
java.lang.Object
bibliothek.gui.dock.action.AbstractDockActionSource
bibliothek.gui.dock.action.DefaultDockActionSource
bibliothek.gui.dock.station.flap.FlapDockStationSource
- All Implemented Interfaces:
- DockActionSource, Iterable<DockAction>
public class FlapDockStationSource
- extends DefaultDockActionSource
This DockActionSource
is used by the FlapDockStation
to show the hold-action
for a Dockable
.
- Author:
- Benjamin Sigg
Methods inherited from class bibliothek.gui.dock.action.DefaultDockActionSource |
add, add, addSeparator, addSeparator, getDockAction, getDockActionCount, getLocationHint, indexOf, iterator, remove, remove, remove, removeAll, setHint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlapDockStationSource
public FlapDockStationSource(FlapDockStation station,
Dockable dockable,
DockAction holdAction)
- Creates a new
FlapDockStationSource
.
- Parameters:
station
- the owner of this sourcedockable
- the element for which this source is usedholdAction
- the action to show, can be null
setHoldAction
public void setHoldAction(DockAction holdAction)
- Changes the action that is shown in this source
- Parameters:
holdAction
- the new action to show, can be null
updateHoldSwitchable
public void updateHoldSwitchable()
- Adds or removes the only action of this source depending on the result
of
FlapLayoutManager.isHoldSwitchable(FlapDockStation, Dockable)
.