net.sourceforge.nite.gui.util
Class SetCommentAction
java.lang.Object
javax.swing.AbstractAction
net.sourceforge.nite.gui.util.SetCommentAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class SetCommentAction
- extends javax.swing.AbstractAction
A button designed to add a comment to the current NOMWriteElement of the
NOMWriteElementContainer passed at construction.
Example:
DialogueActEditPanel is an NOMWriteElementContainer, i.e. it implements an 'getCurrentElement' function.
You can pass this panel to the constructor of SetCommentAction; resulting actions will be usable for example for
a button on that same panel that, when pressed, allows user to add/change the comment for the current element of the panel.
- Author:
- Dennis Reidsma, UTwente
- See Also:
- Serialized Form
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetCommentAction
public SetCommentAction(java.lang.String title,
NOMWriteElementContainer container)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)