com.mindfusion.diagramming
Class EditCellTextEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.mindfusion.diagramming.EditCellTextEvent
All Implemented Interfaces:
java.io.Serializable

public class EditCellTextEvent
extends java.util.EventObject

Contains the arguments passed to the DiagramListener.cellTextEdited(com.mindfusion.diagramming.EditCellTextEvent) event handlers.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
EditCellTextEvent(java.lang.Object source, Cell cell, java.lang.String oldText, java.lang.String newText, int column, int row)
          Initializes a new instance of the EditCellTextEvent class.
 
Method Summary
 Cell getCell()
          Get the cell whose text has been edited.
 int getColumn()
          Gets the index of the table's column that contains the Cell object.
 java.lang.String getNewText()
          Gets the text that has just been entered by the user.
 java.lang.String getOldText()
          Gets the text that had been displayed in the cell before the user edited it.
 int getRow()
          Gets the index of the table's row that contains the Cell object.
 
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
 

Constructor Detail

EditCellTextEvent

public EditCellTextEvent(java.lang.Object source,
                         Cell cell,
                         java.lang.String oldText,
                         java.lang.String newText,
                         int column,
                         int row)
Initializes a new instance of the EditCellTextEvent class.

Parameters:
source - The source of the event.
cell - The Cell related to the event.
oldText - The old text of the cell.
newText - The new text of the cell.
column - The zero-based index of the table column related to the event.
row - The zero-based index of the table row related to the event.
Method Detail

getCell

public Cell getCell()
Get the cell whose text has been edited.

Returns:
A Cell object.

getColumn

public int getColumn()
Gets the index of the table's column that contains the Cell object.

Returns:
An integer value specifying the zero-based index of the column.

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

getOldText

public java.lang.String getOldText()
Gets the text that had been displayed in the cell before the user edited it.

Returns:
A string specifying the old text of the cell.

getRow

public int getRow()
Gets the index of the table's row that contains the Cell object.

Returns:
An integer value specifying the zero-based index of the row.