|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.EventObject
|
+--com.elegantj.data.dataprovider.DataEvent
The data event is generated by a data provider (such as a SqlDataProvider) when the data provider-specific action occurs (such as data inserted, deleted, updated). The event is passed to every DataListener object that registered to receive such events using the data provider's addDataListener method. The object that implements the DataListener interface gets this DataEvent when the event occurs.
| Field Summary | |
static int |
CHANGEDATA
This event id indicates that data to be viewed has been changed into data provider |
static int |
DELETEDATA
This event id indicates that data has been deleted from data provider |
static int |
INSERTDATA
This event id indicates that data has been inserted into data provider |
static int |
SAVEDATA
This event id indicates that data to be viewed has been saved into data provider |
static int |
UPDATEDATA
This event id indicates that data has been updated into data provider |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
DataEvent(java.lang.Object source,
java.util.Hashtable oldValue,
java.util.Hashtable newValue)
Creates a DataEvent with specified source object and data values(old and new). |
|
| Method Summary | |
java.util.Hashtable |
getNewValue()
Returns the new data value for which the event occurred. |
java.util.Hashtable |
getOldValue()
Returns the old data value before the event occurred. |
java.lang.String |
toString()
Returns the string representation of this EventObject |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int INSERTDATA
public static final int DELETEDATA
public static final int UPDATEDATA
public static final int CHANGEDATA
public static final int SAVEDATA
| Constructor Detail |
public DataEvent(java.lang.Object source,
java.util.Hashtable oldValue,
java.util.Hashtable newValue)
source - the object on which the Event initially occurredoldValue - the hashtable contains the data before the event occurrednewValue - the hashtable contains the data for which the event occurred| Method Detail |
public java.util.Hashtable getOldValue()
public java.util.Hashtable getNewValue()
public java.lang.String toString()
toString in class java.util.EventObject
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||