|
|||||||||
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
public class ActionList
A list of actions that itself implements the Action interface. This allows additional information to be associated with the list such as name, description, enabled, etc.
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 | |
---|---|
ActionList()
|
|
ActionList(java.lang.String name)
|
|
ActionList(java.lang.String name,
javax.swing.Icon icon)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Called when this action is activated. |
void |
add(int index,
java.lang.Object element)
|
boolean |
add(java.lang.Object o)
|
java.lang.Object |
clone()
Creates a copy of this action list. |
protected java.lang.Object |
deepClone(java.util.Map references)
|
boolean |
equals(java.lang.Object obj)
|
javax.swing.Action |
findAction(java.lang.String field,
java.lang.Object value)
Finds an action with the specified field/value pair. |
javax.swing.Action |
getAction(java.lang.String name)
Returns the action or action list associated with the specified action name. |
boolean |
getDeepClone()
Returns true if cloning this list would also clone any of its cloneable children. |
java.lang.Object |
getValue(java.lang.String key)
Gets one of this object's properties using the associated key. |
ViewContext |
getViewContext()
Returns the view context for this object. |
int |
hashCode()
|
protected void |
initializeClone(ActionList clone)
Called by either clone method to do custom clone initialization. |
boolean |
isEnabled()
Returns the enabled state of the Action. |
void |
putValue(java.lang.String key,
java.lang.Object value)
Sets one of this object's properties using the associated key. |
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
java.lang.Object |
set(int index,
java.lang.Object element)
|
void |
setDeepClone(boolean flag)
Set to true if cloning this list should also clone any of its cloneable children. |
void |
setEnabled(boolean b)
Sets the enabled state of the Action. |
void |
setViewContext(ViewContext context)
Sets the view context for this action list and any of its children that are also context-aware. |
java.lang.String |
toString()
|
Methods inherited from class org.progeeks.util.DefaultObservableList |
---|
addAll, addAll, addPropertyChangeListener, clear, contains, containsAll, fireElementsInserted, fireElementsModified, fireElementsRemoved, 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 ActionList()
public ActionList(java.lang.String name)
public ActionList(java.lang.String name, javax.swing.Icon icon)
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class DefaultObservableList
public int hashCode()
hashCode
in interface java.util.Collection
hashCode
in interface java.util.List
hashCode
in class DefaultObservableList
public void setViewContext(ViewContext context)
setViewContext
in interface ViewContextAware
public ViewContext getViewContext()
getViewContext
in interface ViewContextAware
public void setDeepClone(boolean flag)
public boolean getDeepClone()
protected void initializeClone(ActionList clone)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class DefaultObservableList
java.lang.CloneNotSupportedException
protected java.lang.Object deepClone(java.util.Map references) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public javax.swing.Action getAction(java.lang.String name)
public java.lang.Object getValue(java.lang.String key)
getValue
in interface javax.swing.Action
public void putValue(java.lang.String key, java.lang.Object value)
putValue
in interface javax.swing.Action
public void setEnabled(boolean b)
setEnabled
in interface javax.swing.Action
public javax.swing.Action findAction(java.lang.String field, java.lang.Object value)
public boolean isEnabled()
isEnabled
in interface javax.swing.Action
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.List
add
in class DefaultObservableList
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.List
remove
in class DefaultObservableList
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
set
in class DefaultObservableList
public void add(int index, java.lang.Object element)
add
in interface java.util.List
add
in class DefaultObservableList
public java.lang.Object remove(int index)
remove
in interface java.util.List
remove
in class DefaultObservableList
public java.lang.String toString()
toString
in class DefaultObservableList
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |