Class CActionSource
java.lang.Object
bibliothek.gui.dock.action.AbstractDockActionSource
bibliothek.gui.dock.common.intern.action.CActionSource
- All Implemented Interfaces:
DockActionSource,Iterable<DockAction>
This
DockActionSource handles CActions.- Author:
- Benjamin Sigg
-
Field Summary
Fields inherited from class bibliothek.gui.dock.action.AbstractDockActionSource
listeners -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an action to this source.getAction(int index) Gets theindex'th action of this source.getDockAction(int index) intvoidInserts an action atindexof this source.iterator()remove(int index) Removes the action atindex.booleanRemovesactionfrom this source.Replaces the action atindexwithindex.Methods inherited from class bibliothek.gui.dock.action.AbstractDockActionSource
addDockActionSourceListener, fireAdded, fireRemoved, hasListeners, indexOf, removeDockActionSourceListenerMethods 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
-
CActionSource
Creates a new source.- Parameters:
hint- the location of this source
-
-
Method Details
-
add
Adds an action to this source.- Parameters:
action- the new action, notnull
-
insert
Inserts an action atindexof this source.- Parameters:
index- an index between 0 andgetDockActionCount()(incl.)action- the new action, notnull
-
set
Replaces the action atindexwithindex.- Parameters:
index- the index of the new actionaction- the new action, notnull- Returns:
- the old action, may be
null
-
remove
Removes the action atindex.- Parameters:
index- the index of the action to remove- Returns:
- the removed action
-
remove
Removesactionfrom this source.- Parameters:
action- the action to remove- Returns:
trueif the action was removed
-
getAction
Gets theindex'th action of this source.- Parameters:
index- the index of some action- Returns:
- the action, not
null
-
getDockAction
-
getDockActionCount
public int getDockActionCount() -
getLocationHint
-
iterator
-