net.sourceforge.nite.gui.actions
Class ChangeTextualContentOptionPane

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

public class ChangeTextualContentOptionPane
extends JComponentHandler

Author:
judyr This component is specifically for displaying an option pane which asks a user to type in new text to change the textual content of a selected xml element

Constructor Summary
ChangeTextualContentOptionPane(JDomParser p)
           
ChangeTextualContentOptionPane(ObjectModelElement e, java.lang.String m)
           
ChangeTextualContentOptionPane(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 getNewContent()
          Returns the newContent.
 ObjectModelElement getSelectedElement()
          Returns the selectedElement.
 void registerAction(NiteAction a)
          This method does nothing, as the same action is always carried out from this class
 void registerAction(java.lang.String binding, NiteAction a)
          This is used to register an action listener for the action; well, in fact it's overridden by every class that extends this, so it's not really!
 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

ChangeTextualContentOptionPane

public ChangeTextualContentOptionPane(JDomParser p)

ChangeTextualContentOptionPane

public ChangeTextualContentOptionPane(OutputComponent o)

ChangeTextualContentOptionPane

public ChangeTextualContentOptionPane(ObjectModelElement e,
                                      java.lang.String m)
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(NiteAction a)
This method does nothing, as the same action is always carried out from this class

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

registerAction

public void registerAction(java.lang.String binding,
                           NiteAction a)
Description copied from class: JComponentHandler
This is used to register an action listener for the action; well, in fact it's overridden by every class that extends this, so it's not really!

Overrides:
registerAction in class JComponentHandler
See Also:
JComponentHandler.registerAction(java.lang.String, net.sourceforge.nite.gui.actions.NiteAction)