actionPerformed
. A typical subclass will look like:
private static class Actions extends UIAction { Actions(String name) { super(name); } public void actionPerformed(ActionEvent ae) { if (getName() == "selectAll") { selectAll(); } else if (getName() == "cancelEditing") { cancelEditing(); } } }
Subclasses that wish to conditionalize the enabled state should override isEnabled(Component)
, and be aware that the passed in Component
may be null.
@see com.sun.java.swing.ExtendedAction
@see javax.swing.Action
@author Scott Violet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|