| UIAction is the basis of all of basic's action classes that are used in
an ActionMap. Subclasses need to override 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.
author: Scott Violet version: 1.4 11/17/05 See Also: javax.swing.Action |