public class ModeForwardingActionSource<H> extends AbstractDockActionSource
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.listeners| Constructor and Description |
|---|
ModeForwardingActionSource(DockStation station,
ModeManager<H,? extends Mode<H>> manager)
Creates a new action source
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDockActionSourceListener(DockActionSourceListener listener) |
DockAction |
getDockAction(int index) |
int |
getDockActionCount() |
LocationHint |
getLocationHint() |
Iterator<DockAction> |
iterator() |
void |
removeDockActionSourceListener(DockActionSourceListener listener) |
fireAdded, fireRemoved, hasListeners, indexOfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ModeForwardingActionSource(DockStation station, ModeManager<H,? extends Mode<H>> manager)
station - the station for which the actions are usedmanager - the manager that has to be observedpublic void addDockActionSourceListener(DockActionSourceListener listener)
addDockActionSourceListener in interface DockActionSourceaddDockActionSourceListener in class AbstractDockActionSourcepublic void removeDockActionSourceListener(DockActionSourceListener listener)
removeDockActionSourceListener in interface DockActionSourceremoveDockActionSourceListener in class AbstractDockActionSourcepublic DockAction getDockAction(int index)
public int getDockActionCount()
public LocationHint getLocationHint()
public Iterator<DockAction> iterator()
Copyright © 2018. All rights reserved.