javax.swing
Class JFormattedTextField.CancelAction
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
javax.swing.JFormattedTextField.CancelAction
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- Enclosing class:
- JFormattedTextField
- private static class JFormattedTextField.CancelAction
- extends TextAction
CancelAction will reset the value in the JFormattedTextField when
actionPerformed
is invoked. It will only be
enabled if the focused component is an instance of
JFormattedTextField.
JFormattedTextField.CancelAction
public JFormattedTextField.CancelAction()
actionPerformed
public void actionPerformed(ActionEvent e)
- Description copied from interface:
ActionListener
- Invoked when an action occurs.
isEnabled
public boolean isEnabled()
- Description copied from class:
AbstractAction
- Returns true if the action is enabled.
- Specified by:
isEnabled
in interface Action
- Overrides:
isEnabled
in class AbstractAction
- Returns:
- true if the action is enabled, false otherwise
- See Also:
Action.isEnabled()