Package org.jdesktop.swingx.plaf.basic
Class BasicDatePickerUI.EditorCancelAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.jdesktop.swingx.plaf.basic.BasicDatePickerUI.EditorCancelAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
- Enclosing class:
- BasicDatePickerUI
public class BasicDatePickerUI.EditorCancelAction extends javax.swing.AbstractAction
The wrapper for the editor cancel action. PENDING: Need to extend TestAction?- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.Action
cancelAction
private javax.swing.JFormattedTextField
editor
static java.lang.String
TEXT_CANCEL_KEY
-
Constructor Summary
Constructors Constructor Description EditorCancelAction(javax.swing.JFormattedTextField field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
private void
install(javax.swing.JFormattedTextField editor)
void
uninstall()
Resets the contained editors actionMap to original and nulls all fields.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
editor
private javax.swing.JFormattedTextField editor
-
cancelAction
private javax.swing.Action cancelAction
-
TEXT_CANCEL_KEY
public static final java.lang.String TEXT_CANCEL_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
uninstall
public void uninstall()
Resets the contained editors actionMap to original and nulls all fields.NOTE: after calling this method the action must not be used! Create a new one for the same or another editor.
-
install
private void install(javax.swing.JFormattedTextField editor)
- Parameters:
editor
-
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
-