org.xnap.commons.gui
Class EraseTextFieldAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.xnap.commons.gui.action.AbstractXNapAction
          extended by org.xnap.commons.gui.EraseTextFieldAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class EraseTextFieldAction
extends AbstractXNapAction

Erases the text of a JTextField.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.xnap.commons.gui.action.AbstractXNapAction
ICON_FILENAME
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
EraseTextFieldAction()
          Constructs an erase action, that has no text field set.
EraseTextFieldAction(JTextField textField)
          Constructs an erase action, that has its text field set to jtf.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Erases the text field.
 JTextField getTextField()
           
 void setTextField(JTextField newValue)
          Sets the text field to newValue.
 
Methods inherited from class org.xnap.commons.gui.action.AbstractXNapAction
getIcon, initialize, setEnabledLater, tr, tr
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EraseTextFieldAction

public EraseTextFieldAction(JTextField textField)
Constructs an erase action, that has its text field set to jtf.

Parameters:
textField - the text field to erase

EraseTextFieldAction

public EraseTextFieldAction()
Constructs an erase action, that has no text field set. Use setTextField to set a text field.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Erases the text field.


getTextField

public JTextField getTextField()

setTextField

public void setTextField(JTextField newValue)
Sets the text field to newValue.



Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.