public class FlapDockStationSource extends DefaultDockActionSource
listeners
Constructor and Description |
---|
FlapDockStationSource(FlapDockStation station,
Dockable dockable,
DockAction holdAction)
Creates a new
FlapDockStationSource . |
Modifier and Type | Method and Description |
---|---|
void |
setHoldAction(DockAction holdAction)
Changes the action that is shown in this source
|
void |
updateHoldSwitchable()
Adds or removes the only action of this source depending on the result
of
FlapLayoutManager.isHoldSwitchable(FlapDockStation, Dockable) . |
add, add, addSeparator, addSeparator, getDockAction, getDockActionCount, getLocationHint, indexOf, iterator, remove, remove, remove, removeAll, setHint
addDockActionSourceListener, fireAdded, fireRemoved, hasListeners, removeDockActionSourceListener
public FlapDockStationSource(FlapDockStation station, Dockable dockable, DockAction holdAction)
FlapDockStationSource
.station
- the owner of this sourcedockable
- the element for which this source is usedholdAction
- the action to show, can be null
public void setHoldAction(DockAction holdAction)
holdAction
- the new action to show, can be null
public void updateHoldSwitchable()
FlapLayoutManager.isHoldSwitchable(FlapDockStation, Dockable)
.