|
|||||||||||
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.Vector | +--com.japisoft.xmlpad.ToolBarModel
Here a data model for the main toolbar, this data model handles Actions. It is possible to dynamically add or remove toolbar actions.
Action
,
ToolBarModelListener
,
Serialized FormConstructor Summary | |
ToolBarModel()
|
Method Summary | |
void |
addAction(javax.swing.Action a)
Add a new action |
void |
addSeparator()
Add a separator |
void |
addToolBarModelListener(ToolBarModelListener listener)
Add a new listener for the toolbar update |
javax.swing.Action |
getActionAt(int location)
|
void |
insertActionAt(javax.swing.Action a,
int location)
Insert an action for the location |
void |
insertSeparatorAt(int location)
Insert a separator at the location |
boolean |
isAction(int location)
|
boolean |
isSeparator(int location)
|
void |
removeAction(javax.swing.Action a)
Remove an action |
void |
removeSeparator(int location)
Remove a separator at the location |
void |
removeToolBarModelListener(ToolBarModelListener listener)
Remove a listener for the toolbar update |
void |
setEnabledListener(boolean enable)
Enable "real time" notification |
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
Constructor Detail |
public ToolBarModel()
Method Detail |
public void addToolBarModelListener(ToolBarModelListener listener)
public void removeToolBarModelListener(ToolBarModelListener listener)
public void setEnabledListener(boolean enable)
public void addAction(javax.swing.Action a)
public void removeAction(javax.swing.Action a)
public void insertActionAt(javax.swing.Action a, int location)
public javax.swing.Action getActionAt(int location)
public boolean isAction(int location)
public void addSeparator()
public void insertSeparatorAt(int location)
public void removeSeparator(int location)
public boolean isSeparator(int location)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |