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
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 |
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 |
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 |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent arg0)
- Add the word to the current user directory.
Copyright © 2005 - 2009 i-net software. All Rights Reserved.