net.sourceforge.nite.gui.actions
Class AddChildOptionPane

java.lang.Object
  extended by net.sourceforge.nite.nstyle.handler.NDisplayObjectHandler
      extended by net.sourceforge.nite.nstyle.handler.JComponentHandler
          extended by net.sourceforge.nite.gui.actions.AddChildOptionPane

public class AddChildOptionPane
extends JComponentHandler

Author:
judyr This component is specifically for displaying an option pane which asks a user to type in entries which specify a new child for the currently selected xml element. Note that it is not possible to infer which attributes should be present in a child, unless the element has other children which you can copy

Constructor Summary
AddChildOptionPane(JDomParser p)
           
AddChildOptionPane(ObjectModelElement e, java.lang.String m, int index)
           
 
Method Summary
 void addChild(NDisplayObjectHandler nah)
          Attempts to add a child to this should fail, as it is a self containted display
 void createPeer()
           
 int getIndex()
          Returns the index.
 ObjectModelElement getSelectedElement()
          Returns the selectedElement.
 void registerAction(java.lang.String s, NiteAction a)
          This method does nothing, as the same action is always carried out from this class
 void setIndex(int index)
          Sets the index.
 void setSelectedElement(ObjectModelElement selectedElement)
          Sets the selectedElement.
 
Methods inherited from class net.sourceforge.nite.nstyle.handler.JComponentHandler
addActionReference, getImage, getJComponent, setImage, setUpBackgroundColour, setUpFont, setUpForegroundColour, setUpImage, setUpToolTip
 
Methods inherited from class net.sourceforge.nite.nstyle.handler.NDisplayObjectHandler
addActionReference, getActionReferences, getChildren, getClock, getElement, getEndTime, getID, getParent, getSourceID, getStartTime, init, setChildren, setClock, setElement, setEndTime, setID, setParent, setSourceID, setStartTime, setUpTimes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddChildOptionPane

public AddChildOptionPane(JDomParser p)

AddChildOptionPane

public AddChildOptionPane(ObjectModelElement e,
                          java.lang.String m,
                          int index)
Method Detail

createPeer

public void createPeer()

registerAction

public void registerAction(java.lang.String s,
                           NiteAction a)
This method does nothing, as the same action is always carried out from this class

Overrides:
registerAction in class JComponentHandler
See Also:
net.sourceforge.nite.nstyle.handler.JComponentHandler#registerAction(NiteAction)

addChild

public void addChild(NDisplayObjectHandler nah)
Attempts to add a child to this should fail, as it is a self containted display

Overrides:
addChild in class JComponentHandler
Parameters:
nah - The child to add.
See Also:
NDisplayObjectHandler.addChild(NDisplayObjectHandler)

getSelectedElement

public ObjectModelElement getSelectedElement()
Returns the selectedElement.

Returns:
ObjectModelElement

setSelectedElement

public void setSelectedElement(ObjectModelElement selectedElement)
Sets the selectedElement.

Parameters:
selectedElement - The selectedElement to set

getIndex

public int getIndex()
Returns the index.

Returns:
int

setIndex

public void setIndex(int index)
Sets the index.

Parameters:
index - The index to set