|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--org.argouml.uml.ui.UMLAction
| Field Summary | |
|---|---|
protected static Logger |
cat
Deprecated. by Linus Tolke as of 0.15.4. Use your own logger in your class. This will be removed. |
static boolean |
HAS_ICON
|
private java.lang.String |
iconName
|
static boolean |
NO_ICON
|
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
UMLAction(java.lang.String name)
|
|
UMLAction(java.lang.String name,
boolean hasIcon)
|
|
UMLAction(java.lang.String name,
boolean global,
boolean hasIcon)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Perform the work the action is supposed to do. |
static java.lang.String |
getMnemonic(java.lang.String key)
This function returns a localized string corresponding to the specified key. |
static javax.swing.KeyStroke |
getShortcut(java.lang.String key)
Deprecated. in 0.15.1. Replace by getMnemonic and the new way of retrieving shortcuts. |
java.lang.Object |
getValue(java.lang.String key)
Gets one of this object's properties using the associated key. |
boolean |
isEnabled()
|
void |
markNeedsSave()
|
void |
putValue(java.lang.String key,
java.lang.Object value)
Sets one of this object's properties using the associated key. |
boolean |
shouldBeEnabled()
Return true if this action should be available to the user. |
protected static java.lang.String |
stripJunk(java.lang.String s)
|
void |
updateEnabled()
|
void |
updateEnabled(java.lang.Object target)
|
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static Logger cat
public static boolean HAS_ICON
public static boolean NO_ICON
private java.lang.String iconName
| Constructor Detail |
public UMLAction(java.lang.String name)
public UMLAction(java.lang.String name,
boolean hasIcon)
public UMLAction(java.lang.String name,
boolean global,
boolean hasIcon)
| Method Detail |
public void putValue(java.lang.String key,
java.lang.Object value)
PropertyChangeEvent is sent to
listeners.
putValue in interface javax.swing.ActionputValue in class javax.swing.AbstractActionkey - a String containing the key.value - an Object value.public java.lang.Object getValue(java.lang.String key)
getValue in interface javax.swing.ActiongetValue in class javax.swing.AbstractActionkey - the name of the property.
putValue(String, Object)public void actionPerformed(java.awt.event.ActionEvent e)
public void markNeedsSave()
public void updateEnabled(java.lang.Object target)
public void updateEnabled()
public boolean shouldBeEnabled()
protected static java.lang.String stripJunk(java.lang.String s)
public static final javax.swing.KeyStroke getShortcut(java.lang.String key)
public static final java.lang.String getMnemonic(java.lang.String key)
public boolean isEnabled()
isEnabled in interface javax.swing.ActionisEnabled in class javax.swing.AbstractActionAction.isEnabled()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
| ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |