net.sourceforge.nite.gui.actions
Class AddChild

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.AddChild
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class AddChild
extends XMLAction

Author:
judyr This action is used to change the textual content 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
AddChild(JDomParser p, ObjectModelElement old, ObjectModelElement newEl, int i)
           
 
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.
 int getIndex()
          Returns the index.
 void setIndex(int index)
          Sets the index.
 
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, 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
 

Constructor Detail

AddChild

public AddChild(JDomParser p,
                ObjectModelElement old,
                ObjectModelElement newEl,
                int i)
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)

getIndex

public int getIndex()
Returns the index.

Returns:
int

setIndex

public void setIndex(int index)
Sets the index.

Parameters:
index - The index to set