net.sourceforge.nite.gui.actions
Class ChangeAttributeValueOptionPane

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

public class ChangeAttributeValueOptionPane
extends JComponentHandler

Author:
judyr This component is specifically for displaying an option pane which asks a user to type in new text to enter a new value for a specified a attribute selected xml element

Constructor Summary
ChangeAttributeValueOptionPane(JDomParser p)
           
ChangeAttributeValueOptionPane(ObjectModelElement e, java.lang.String m, java.lang.String attribute)
           
ChangeAttributeValueOptionPane(OutputComponent o)
           
 
Method Summary
 void addChild(NDisplayObjectHandler nah)
          Attempts to add a child to this should fail, as it is a self containted display
 void createPeer()
           
 java.lang.String getAttributeName()
          Returns the attributeName
 java.lang.String getNewContent()
          Returns the newContent.
 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 setAttributeName(java.lang.String attributeName)
          Sets the attributeName.
 void setNewContent(java.lang.String newContent)
          Sets the newContent.
 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

ChangeAttributeValueOptionPane

public ChangeAttributeValueOptionPane(JDomParser p)

ChangeAttributeValueOptionPane

public ChangeAttributeValueOptionPane(OutputComponent o)

ChangeAttributeValueOptionPane

public ChangeAttributeValueOptionPane(ObjectModelElement e,
                                      java.lang.String m,
                                      java.lang.String attribute)
Method Detail

createPeer

public void createPeer()

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

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

getAttributeName

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

Returns:
String

setAttributeName

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

Parameters:
attributeName - The attributeName to set