com.extentech.ExtenXLS.eventui.event
Class EditStartEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.extentech.ExtenXLS.eventui.event.EditStartEvent
All Implemented Interfaces:
java.io.Serializable

public class EditStartEvent
extends java.util.EventObject

Event indicating that the user has started to edit a cell.

Author:
Sam Hanes
See Also:
Serialized Form

Constructor Summary
EditStartEvent(ExtenXLSTable source, int row, int col, java.lang.String value)
          Creates a new EditStartEvent.
 
Method Summary
 java.lang.String getCell()
          Gets the address of the cell being edited.
 int getColumn()
          Gets the column of the cell being edited.
 int getRow()
          Gets the row of the cell being edited.
 java.lang.String getValue()
          Gets the initial value that will be presented to the user for editing.
 boolean isCanceled()
          Whether this edit event has been canceled.
 void setCanceled(boolean canceled)
          Set whether to cancel this edit event.
 void setValue(java.lang.String value)
          Sets the initial value that will be presented to the user for editing.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EditStartEvent

public EditStartEvent(ExtenXLSTable source,
                      int row,
                      int col,
                      java.lang.String value)
Creates a new EditStartEvent.

Parameters:
source - the ExtenXLSTable that owns the cell being edited
row - the row of the cell being edited
col - the column of the cell being edited
value - the initial value to be displayed in the editor
Method Detail

getCell

public java.lang.String getCell()
Gets the address of the cell being edited.


getRow

public int getRow()
Gets the row of the cell being edited.


getColumn

public int getColumn()
Gets the column of the cell being edited.


getValue

public java.lang.String getValue()
Gets the initial value that will be presented to the user for editing.


setValue

public void setValue(java.lang.String value)
Sets the initial value that will be presented to the user for editing.

Parameters:
value - the initial value that will be shown in the editor

isCanceled

public boolean isCanceled()
Whether this edit event has been canceled.


setCanceled

public void setCanceled(boolean canceled)
Set whether to cancel this edit event.



Copyright © 2011 Extentech Inc. All Rights Reserved.