public interface DockActionSource extends java.lang.Iterable<DockAction>
DockActions
which may change its size
at any time.Modifier and Type | Method and Description |
---|---|
void |
addDockActionSourceListener(DockActionSourceListener listener)
Adds a listener to this source.
|
DockAction |
getDockAction(int index)
Gets the index'th
DockAction of this source. |
int |
getDockActionCount()
Gets the number of
DockActions which are
provided by this source. |
LocationHint |
getLocationHint()
Gets a hint where to put this source in relation to other sources.
|
void |
removeDockActionSourceListener(DockActionSourceListener listener)
Removes an earlier added listener.
|
LocationHint getLocationHint()
ActionOffer
can choose to ignore these hints, or interpret
them in an unexpected way.int getDockActionCount()
DockActions
which are
provided by this source.DockActions
DockAction getDockAction(int index)
DockAction
of this source.index
- The index of the actionvoid addDockActionSourceListener(DockActionSourceListener listener)
DockActionSourceListener
should
be informed whenever some DockActions
are added or
removed from this source.listener
- The listenervoid removeDockActionSourceListener(DockActionSourceListener listener)
listener
- The listener to removeaddDockActionSourceListener(DockActionSourceListener)