bibliothek.gui.dock.station.flap
Class FlapDockStationSource

java.lang.Object
  extended by bibliothek.gui.dock.action.AbstractDockActionSource
      extended by bibliothek.gui.dock.action.DefaultDockActionSource
          extended by 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

Field Summary
 
Fields inherited from class bibliothek.gui.dock.action.AbstractDockActionSource
listeners
 
Constructor Summary
FlapDockStationSource(FlapDockStation station, Dockable dockable, DockAction holdAction)
          Creates a new FlapDockStationSource.
 
Method Summary
 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).
 
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 bibliothek.gui.dock.action.AbstractDockActionSource
addDockActionSourceListener, fireAdded, fireRemoved, hasListeners, removeDockActionSourceListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlapDockStationSource

public FlapDockStationSource(FlapDockStation station,
                             Dockable dockable,
                             DockAction holdAction)
Creates a new FlapDockStationSource.

Parameters:
station - the owner of this source
dockable - the element for which this source is used
holdAction - the action to show, can be null
Method Detail

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).