public class BasicDatePickerUI.EditorCancelAction extends AbstractAction
Modifier and Type | Field and Description |
---|---|
private Action |
cancelAction |
private JFormattedTextField |
editor |
static String |
TEXT_CANCEL_KEY |
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
EditorCancelAction(JFormattedTextField field) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
private void |
install(JFormattedTextField editor) |
void |
uninstall()
Resets the contained editors actionMap to original and
nulls all fields.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
private JFormattedTextField editor
private Action cancelAction
public static final String TEXT_CANCEL_KEY
public EditorCancelAction(JFormattedTextField field)
public void uninstall()
NOTE: after calling this method the action must not be used! Create a new one for the same or another editor.
private void install(JFormattedTextField editor)
editor
- public void actionPerformed(ActionEvent e)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses