Package com.inet.jortho
Class AddWordAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- com.inet.jortho.AddWordAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class AddWordAction extends javax.swing.AbstractAction
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddWordAction(javax.swing.text.JTextComponent jText, java.lang.String word)
Create a action to add a word to the current user dictionary.AddWordAction(javax.swing.text.JTextComponent jText, java.lang.String word, java.lang.String label)
Create a action to add a word to the current user dictionary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent arg0)
Add the word to the current user directory.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
AddWordAction
public AddWordAction(javax.swing.text.JTextComponent jText, java.lang.String word)
Create a action to add a word to the current user dictionary.- Parameters:
jText
- component that need refresh after adding to remove the red zigzag lineword
- the word that can be added
-
AddWordAction
public AddWordAction(javax.swing.text.JTextComponent jText, java.lang.String word, java.lang.String label)
Create a action to add a word to the current user dictionary.- Parameters:
jText
- component that need refresh after adding to remove the red zigzag lineword
- the word that can be addedlabel
- the display text of the action
-
-