Package bibliothek.gui.dock.support.mode
Class ModeForwardingActionSource<H>
java.lang.Object
bibliothek.gui.dock.action.AbstractDockActionSource
bibliothek.gui.dock.support.mode.ModeForwardingActionSource<H>
- All Implemented Interfaces:
DockActionSource,Iterable<DockAction>
A
ModeForwardingActionSource is attached to a DockStation and
shows actions belonging to the selected Dockable. Only actions that
were approved by the ModeManager are actually shown.- Author:
- Benjamin Sigg
-
Field Summary
Fields inherited from class bibliothek.gui.dock.action.AbstractDockActionSource
listeners -
Constructor Summary
ConstructorsConstructorDescriptionModeForwardingActionSource(DockStation station, ModeManager<H, ? extends Mode<H>> manager) Creates a new action source -
Method Summary
Methods inherited from class bibliothek.gui.dock.action.AbstractDockActionSource
fireAdded, fireRemoved, hasListeners, indexOfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ModeForwardingActionSource
Creates a new action source- Parameters:
station- the station for which the actions are usedmanager- the manager that has to be observed
-
-
Method Details
-
addDockActionSourceListener
- Specified by:
addDockActionSourceListenerin interfaceDockActionSource- Overrides:
addDockActionSourceListenerin classAbstractDockActionSource
-
removeDockActionSourceListener
- Specified by:
removeDockActionSourceListenerin interfaceDockActionSource- Overrides:
removeDockActionSourceListenerin classAbstractDockActionSource
-
getDockAction
-
getDockActionCount
public int getDockActionCount() -
getLocationHint
-
iterator
-