com.droplets.api.event
Class TableCellValueChangeEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.droplets.api.event.TableCellValueChangeEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class TableCellValueChangeEvent
- extends java.util.EventObject
Event triggered when the end-user has modified a value in a
Table
. The application developer should
use this event to update their data model, and then perform any
application specific actions.
This class maintains a wide
interface to access all possible types of values, the application
developer is responsible for remembering what type of data should
be expected for a given EditId
.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
TableCellValueChangeEvent(Table source,
java.lang.String editId,
java.lang.String newStringValue)
Constructs a new TableCellValueChangeEvent object. |
Method Summary |
boolean |
getBooleanValue()
Gets the new value for the cell as a boolean . |
java.lang.String |
getEditId()
Gets the EditId for the cell that was changed. |
int |
getSelectedChoice()
Gets the new index of the selection in the Choice
in the table's cell. |
java.lang.String |
getStringValue()
Gets the new value for the cell as a String . |
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 |
TableCellValueChangeEvent
public TableCellValueChangeEvent(Table source,
java.lang.String editId,
java.lang.String newStringValue)
- Constructs a new
TableCellValueChangeEvent
object.
- Parameters:
source
- The Table
that is sending this event.editId
- The EditId
of the cell that was changed.newStringValue
- The new value, encoded as a String.
getEditId
public java.lang.String getEditId()
- Gets the
EditId
for the cell that was changed.
Every cell that can be editted should have a unique EditId
so
this event can be properly dispatched.
getStringValue
public java.lang.String getStringValue()
- Gets the new value for the cell as a
String
. If the
new value was not a String
, the results are
unspecified.
getBooleanValue
public boolean getBooleanValue()
- Gets the new value for the cell as a
boolean
. If
this new value was not a boolean
, the results are
unspecified.
getSelectedChoice
public int getSelectedChoice()
- Gets the new index of the selection in the
Choice
in the table's cell. If the cell does not contain a
Choice
, then the results are unspecified.
Copyright © Droplets, 2001. All Rights Reserved.