com.mindfusion.diagramming
Class EditNodeTextEvent
java.lang.Object
java.util.EventObject
com.mindfusion.diagramming.EditNodeTextEvent
- All Implemented Interfaces:
- java.io.Serializable
public class EditNodeTextEvent
- extends java.util.EventObject
Contains the arguments passed to DiagramListener.nodeTextEdited(com.mindfusion.diagramming.EditNodeTextEvent)
handlers.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
EditNodeTextEvent(java.lang.Object source,
DiagramNode node,
java.lang.String oldText,
java.lang.String newText)
Initializes a new instance of the EditNodeTextEvent class. |
Method Summary |
java.lang.String |
getNewText()
Gets the text that has just been entered by the user. |
DiagramNode |
getNode()
Gets the node whose text has been edited. |
java.lang.String |
getOldText()
Gets the text that had been displayed in the node before the user edited it. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EditNodeTextEvent
public EditNodeTextEvent(java.lang.Object source,
DiagramNode node,
java.lang.String oldText,
java.lang.String newText)
- Initializes a new instance of the EditNodeTextEvent class.
- Parameters:
source
- The source of the event.node
- The DiagramNode
related to the event.oldText
- The old text of the node.newText
- The new text of the node.
getNewText
public java.lang.String getNewText()
- Gets the text that has just been entered by the user.
- Returns:
- A string specifying the new text of the node.
getNode
public DiagramNode getNode()
- Gets the node whose text has been edited.
- Returns:
- An instance of the
DiagramNode
class.
getOldText
public java.lang.String getOldText()
- Gets the text that had been displayed in the node before the user edited it.
- Returns:
- A string specifying the old text of the node.