Package org.jdesktop.swingx
Class JXSearchField.ClearAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.jdesktop.swingx.JXSearchField.ClearAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
- Enclosing class:
- JXSearchField
class JXSearchField.ClearAction extends javax.swing.AbstractAction
Invoked when the the cancel button or the 'Esc' key is pressed. Sets the text in the search field tonull
.
-
-
Constructor Summary
Constructors Constructor Description ClearAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
Callsclear()
.void
clear()
Sets the search field's text tonull
and requests the focus for the search field.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
Callsclear()
.
-
clear
public void clear()
Sets the search field's text tonull
and requests the focus for the search field.
-
-