javax.swing
Class JFormattedTextField.CommitAction
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
javax.swing.JTextField.NotifyAction
javax.swing.JFormattedTextField.CommitAction
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- Enclosing class:
- JFormattedTextField
- static class JFormattedTextField.CommitAction
- extends JTextField.NotifyAction
Used to commit the edit. This extends JTextField.NotifyAction
so that isEnabled
is true while a JFormattedTextField
has focus, and extends actionPerformed
to invoke
commitEdit.
JFormattedTextField.CommitAction
JFormattedTextField.CommitAction()
actionPerformed
public void actionPerformed(ActionEvent e)
- Description copied from interface:
ActionListener
- Invoked when an action occurs.
- Specified by:
actionPerformed
in interface ActionListener
- Overrides:
actionPerformed
in class JTextField.NotifyAction
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 JTextField.NotifyAction