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.AbstractActionInvoked 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 voidactionPerformed(java.awt.event.ActionEvent e)Callsclear().voidclear()Sets the search field's text tonulland 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 tonulland requests the focus for the search field.
-
-