net.sourceforge.nite.gui.actions
Class ChangeAttributeValue

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by net.sourceforge.nite.gui.actions.NiteAction
          extended by net.sourceforge.nite.gui.actions.XMLAction
              extended by net.sourceforge.nite.gui.actions.ChangeAttributeValue
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ChangeAttributeValue
extends XMLAction

Author:
judyr This action is used to change the attribute value of an xml element
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ChangeAttributeValue(JDomParser p, ObjectModelElement e, java.lang.String c, java.lang.String attribute)
           
ChangeAttributeValue(OutputComponent o, ObjectModelElement e, java.lang.String c, java.lang.String attribute)
           
 
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 getAttributeName()
          Returns the attributeName.
 java.lang.String getNewContent()
          Returns the newContent.
 void setAttributeName(java.lang.String attributeName)
          Sets the attributeName.
 void setNewContent(java.lang.String newContent)
          Sets the newContent.
 
Methods inherited from class net.sourceforge.nite.gui.actions.XMLAction
getElement, setElement
 
Methods inherited from class net.sourceforge.nite.gui.actions.NiteAction
addComponentID, addInputComponent, addInputComponentID, addIntermediateComponent, addOutputComponent, addPopupContext, addXmlAction, getActionType, getComponentsIDs, getDescription, getDisplayer, getId, getInputComponentIDs, getInputComponents, getOptionValues, getOutputComponentIDs, getOutputComponents, getParser, setActionType, 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
 

Constructor Detail

ChangeAttributeValue

public ChangeAttributeValue(JDomParser p,
                            ObjectModelElement e,
                            java.lang.String c,
                            java.lang.String attribute)

ChangeAttributeValue

public ChangeAttributeValue(OutputComponent o,
                            ObjectModelElement e,
                            java.lang.String c,
                            java.lang.String attribute)
Method Detail

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

getAttributeName

public java.lang.String getAttributeName()
Returns the attributeName.

Overrides:
getAttributeName in class NiteAction
Returns:
String

setAttributeName

public void setAttributeName(java.lang.String attributeName)
Sets the attributeName.

Overrides:
setAttributeName in class NiteAction
Parameters:
attributeName - The attributeName to set