|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.ArrayList | +--com.japisoft.framework.dockable.action.BasicActionModel
Here a simple implementation for the ActionModel
ActionModel
,
Serialized FormField Summary |
Fields inherited from interface com.japisoft.framework.dockable.action.ActionModel |
SEPARATOR |
Constructor Summary | |
BasicActionModel()
|
|
BasicActionModel(javax.swing.Action[] actions)
Reset the model with the following actions |
Method Summary | |
void |
addAction(javax.swing.Action a)
Add a new action |
void |
addAction(javax.swing.Action a,
int index)
Add an action at this index starting from 0 |
void |
addModelStateListener(ModelStateListener listener)
Add a listener for knowing the action model state change |
javax.swing.Action |
getAction(int index)
|
javax.swing.Action |
getActionByClass(java.lang.Class className)
|
int |
getActionCount()
|
boolean |
isSeparator(int index)
|
void |
removeAction(javax.swing.Action a)
Remove an action |
void |
removeAll()
Remove all actions |
void |
removeModelStateListener(ModelStateListener listener)
Remove a known listener |
java.lang.String |
toString()
|
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
Constructor Detail |
public BasicActionModel()
public BasicActionModel(javax.swing.Action[] actions)
Method Detail |
public javax.swing.Action getActionByClass(java.lang.Class className)
getActionByClass
in interface ActionModel
public javax.swing.Action getAction(int index)
getAction
in interface ActionModel
public int getActionCount()
getActionCount
in interface ActionModel
public void addAction(javax.swing.Action a)
addAction
in interface ActionModel
public void addAction(javax.swing.Action a, int index)
addAction
in interface ActionModel
public void removeAction(javax.swing.Action a)
removeAction
in interface ActionModel
public void removeAll()
ActionModel
removeAll
in interface ActionModel
public void addModelStateListener(ModelStateListener listener)
addModelStateListener
in interface ActionModel
public void removeModelStateListener(ModelStateListener listener)
removeModelStateListener
in interface ActionModel
public boolean isSeparator(int index)
isSeparator
in interface ActionModel
true
if a separator is available at this indexpublic java.lang.String toString()
toString
in class java.util.AbstractCollection
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |