Class JXSearchField.ClearAction

java.lang.Object
javax.swing.AbstractAction
org.jdesktop.swingx.JXSearchField.ClearAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
JXSearchField

class JXSearchField.ClearAction extends AbstractAction
Invoked when the the cancel button or the 'Esc' key is pressed. Sets the text in the search field to null.
  • Constructor Details

    • ClearAction

      public ClearAction()
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Calls clear().
    • clear

      public void clear()
      Sets the search field's text to null and requests the focus for the search field.