net.sourceforge.nite.gui.actions
Class ChangeTextualContent
java.lang.Object
javax.swing.AbstractAction
net.sourceforge.nite.gui.actions.NiteAction
net.sourceforge.nite.gui.actions.XMLAction
net.sourceforge.nite.gui.actions.ChangeTextualContent
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class ChangeTextualContent
- extends XMLAction
- Author:
- judyr
This action is used to change the textual content of an xml element
- 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 |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
When this action is executed, collect the user input from the source,
and initiate the action. |
java.lang.String |
getNewContent()
Returns the newContent. |
void |
setNewContent(java.lang.String newContent)
Sets the newContent. |
Methods inherited from class net.sourceforge.nite.gui.actions.NiteAction |
addComponentID, addInputComponent, addInputComponentID, addIntermediateComponent, addOutputComponent, addPopupContext, addXmlAction, getActionType, getAttributeName, getComponentsIDs, getDescription, getDisplayer, getId, getInputComponentIDs, getInputComponents, getOptionValues, getOutputComponentIDs, getOutputComponents, getParser, setActionType, setAttributeName, setComponentsIDs, setDescription, setDisplayer, setId, setInputComponents, setOutputComponents, setParser |
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 |
ChangeTextualContent
public ChangeTextualContent(JDomParser p,
ObjectModelElement e,
java.lang.String c)
ChangeTextualContent
public ChangeTextualContent(OutputComponent o,
ObjectModelElement e,
java.lang.String c)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Description copied from class:
NiteAction
- When this action is executed, collect the user input from the source,
and initiate the action.
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Overrides:
actionPerformed
in class NiteAction
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
getNewContent
public java.lang.String getNewContent()
- Returns the newContent.
- Returns:
- String
setNewContent
public void setNewContent(java.lang.String newContent)
- Sets the newContent.
- Parameters:
newContent
- The newContent to set