|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.progeeks.util.DefaultObservableList
org.progeeks.util.swing.ActionList
org.progeeks.util.swing.ActionListGroup
public class ActionListGroup
A group of action lists the presents a view as a single expanded list separated by nulls. This is useful for having expanded sub-menus that appear inline in a regular menu. ie: a nice way to manage separate action sets within a single menu.
| Field Summary |
|---|
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
ActionListGroup()
|
|
ActionListGroup(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Called when this action is activated. |
void |
addInlineList(ActionList list)
Adds the specified list as a managed inlined set of actions. |
void |
addInlineList(int index,
ActionList list)
Adds the specified list as a managed inlined set of actions inserted at the specified insertion point. |
void |
clear()
Special handling for clear to remove the sublists properly. |
void |
fireElementsInserted(int first,
int last,
java.util.List original)
Sends an event to interested listeners that this property has had elements inserted. |
void |
fireElementsRemoved(int first,
int last,
java.util.List original)
Sends an event to interested listeners that this property has had elements removed. |
static void |
main(java.lang.String[] args)
|
static void |
printList(ActionList list,
java.lang.String indent)
|
boolean |
removeInlineList(ActionList list)
Removes the list of inlined actions from this list. |
| Methods inherited from class org.progeeks.util.swing.ActionList |
|---|
add, add, clone, deepClone, equals, findAction, getAction, getDeepClone, getValue, getViewContext, hashCode, initializeClone, isEnabled, putValue, remove, remove, set, setDeepClone, setEnabled, setViewContext, toString |
| Methods inherited from class org.progeeks.util.DefaultObservableList |
|---|
addAll, addAll, addPropertyChangeListener, contains, containsAll, fireElementsModified, firePropertyChangeEvent, get, getPropertyName, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removePropertyChangeListener, retainAll, setList, size, subList, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.Action |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Constructor Detail |
|---|
public ActionListGroup()
public ActionListGroup(java.lang.String name)
| Method Detail |
|---|
public void addInlineList(ActionList list)
public void addInlineList(int index,
ActionList list)
public boolean removeInlineList(ActionList list)
public void clear()
clear in interface java.util.Collectionclear in interface java.util.Listclear in class DefaultObservableListpublic void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class ActionList
public void fireElementsInserted(int first,
int last,
java.util.List original)
DefaultObservableList
fireElementsInserted in class DefaultObservableList
public void fireElementsRemoved(int first,
int last,
java.util.List original)
DefaultObservableList
fireElementsRemoved in class DefaultObservableList
public static void printList(ActionList list,
java.lang.String indent)
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||