ElegantJCharts Java API Specification v2.0

com.elegantj.data.dataprovider
Class DataEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.elegantj.data.dataprovider.DataEvent
All Implemented Interfaces:
java.io.Serializable

public class DataEvent
extends java.util.EventObject

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.

See Also:
Serialized Form

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

INSERTDATA

public static final int INSERTDATA
This event id indicates that data has been inserted into data provider

See Also:
Constant Field Values

DELETEDATA

public static final int DELETEDATA
This event id indicates that data has been deleted from data provider

See Also:
Constant Field Values

UPDATEDATA

public static final int UPDATEDATA
This event id indicates that data has been updated into data provider

See Also:
Constant Field Values

CHANGEDATA

public static final int CHANGEDATA
This event id indicates that data to be viewed has been changed into data provider

See Also:
Constant Field Values

SAVEDATA

public static final int SAVEDATA
This event id indicates that data to be viewed has been saved into data provider

See Also:
Constant Field Values
Constructor Detail

DataEvent

public 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).

Parameters:
source - the object on which the Event initially occurred
oldValue - the hashtable contains the data before the event occurred
newValue - the hashtable contains the data for which the event occurred
Method Detail

getOldValue

public java.util.Hashtable getOldValue()
Returns the old data value before the event occurred.


getNewValue

public java.util.Hashtable getNewValue()
Returns the new data value for which the event occurred.


toString

public java.lang.String toString()
Returns the string representation of this EventObject

Overrides:
toString in class java.util.EventObject
Returns:
the string

ElegantJCharts Java API Specification v2.0

For any feedback, suggestion, or query, please revert back to support@elegantcharts.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.