public class CActionSource extends AbstractDockActionSource
DockActionSource handles CActions.listeners| Constructor and Description |
|---|
CActionSource(LocationHint hint)
Creates a new source.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(CAction action)
Adds an action to this source.
|
CAction |
getAction(int index)
Gets the
index'th action of this source. |
DockAction |
getDockAction(int index) |
int |
getDockActionCount() |
LocationHint |
getLocationHint() |
void |
insert(int index,
CAction action)
Inserts an action at
index of this source. |
Iterator<DockAction> |
iterator() |
boolean |
remove(CAction action)
Removes
action from this source. |
CAction |
remove(int index)
Removes the action at
index. |
CAction |
set(int index,
CAction action)
Replaces the action at
index with index. |
addDockActionSourceListener, fireAdded, fireRemoved, hasListeners, indexOf, removeDockActionSourceListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic CActionSource(LocationHint hint)
hint - the location of this sourcepublic void add(CAction action)
action - the new action, not nullpublic void insert(int index,
CAction action)
index of this source.index - an index between 0 and getDockActionCount() (incl.)action - the new action, not nullpublic CAction set(int index, CAction action)
index with index.index - the index of the new actionaction - the new action, not nullnullpublic CAction remove(int index)
index.index - the index of the action to removepublic boolean remove(CAction action)
action from this source.action - the action to removetrue if the action was removedpublic CAction getAction(int index)
index'th action of this source.index - the index of some actionnullpublic DockAction getDockAction(int index)
public int getDockActionCount()
public LocationHint getLocationHint()
public Iterator<DockAction> iterator()
Copyright © 2018. All rights reserved.