org.algernon.kb.okbc.protege.plugins.action
Class ClearAction
java.lang.Object
javax.swing.AbstractAction
org.algernon.kb.okbc.protege.plugins.action.AlgernonTabAction
org.algernon.kb.okbc.protege.plugins.action.ClearAction
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- public class ClearAction
- extends AlgernonTabAction
Executed when the user presses a CLEAR button for a text component.
User: hewett
Date: Mar 7, 2003
Time: 11:50:02 AM
- See Also:
- Serialized Form
f_component
protected JTextComponent f_component
ClearAction
public ClearAction(JTextComponent textComponent,
String name,
String tooltip,
KeyStroke acceleratorKey,
Integer mnemonic)
- Creates a new ClearAction. Pass in the text area or text field to be cleared.
- Parameters:
textComponent
- The TextComponent to be cleared.name
- The name of the menu item corresponding to this action.tooltip
- A string to be displayed as brief user help.acceleratorKey
- The KeyStroke used to access this action as a menu item.mnemonic
- The (int) character used to access this action when it is a button.
actionPerformed
public void actionPerformed(ActionEvent event)