|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
org.xnap.commons.gui.action.AbstractXNapAction
org.xnap.commons.gui.EraseTextFieldAction
public class EraseTextFieldAction
Erases the text of a JTextField.
| 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 |
|---|
public EraseTextFieldAction(JTextField textField)
jtf.
textField - the text field to erasepublic EraseTextFieldAction()
setTextField to set a text field.
| Method Detail |
|---|
public void actionPerformed(ActionEvent event)
public JTextField getTextField()
public void setTextField(JTextField newValue)
newValue.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||