net.sourceforge.nite.gui.actions
Class AddSiblingOptionPane

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.AddSiblingOptionPane

public class AddSiblingOptionPane
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 sibling for the currently selected xml element

Constructor Summary
AddSiblingOptionPane(JDomParser p)
           
AddSiblingOptionPane(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

AddSiblingOptionPane

public AddSiblingOptionPane(JDomParser p)

AddSiblingOptionPane

public AddSiblingOptionPane(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