org.jcreme.reporting
Class DataChangeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.jcreme.reporting.DataChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class DataChangeEvent
extends java.util.EventObject

This event signals that some data in the datasource has changed.

Version:
$Revision: 1.1 $
Author:
$Author: dbregeon $
See Also:
Serialized Form

Field Summary
static int DELETE
          Signals the change is deletion of Data.
static int NEW
          Signals the change is new Data.
static int UPDATE
          Signals the change is an update of existing Data.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DataChangeEvent(java.lang.Object src, java.lang.Object data)
          Creates a new instance of DataChangeEvent
DataChangeEvent(java.lang.Object src, java.lang.Object data, int t)
          Creates a new instance of DataChangeEvent
 
Method Summary
 java.lang.Object getData()
          This method gives access to the type of the change.
 int getType()
          Gives access to the type of change this event reports.
 
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
 

Field Detail

UPDATE

public static final int UPDATE
Signals the change is an update of existing Data.

See Also:
Constant Field Values

NEW

public static final int NEW
Signals the change is new Data.

See Also:
Constant Field Values

DELETE

public static final int DELETE
Signals the change is deletion of Data.

See Also:
Constant Field Values
Constructor Detail

DataChangeEvent

public DataChangeEvent(java.lang.Object src,
                       java.lang.Object data)
Creates a new instance of DataChangeEvent

Parameters:
src - the source of the event.
data - the data that changed in the source.

DataChangeEvent

public DataChangeEvent(java.lang.Object src,
                       java.lang.Object data,
                       int t)
Creates a new instance of DataChangeEvent

Parameters:
src - the source of the event.
data - the data that changed in the source.
t - the type of the event.
Method Detail

getData

public java.lang.Object getData()
This method gives access to the type of the change.

Returns:
the type of change that occured in the DataSource.

getType

public int getType()
Gives access to the type of change this event reports.

Returns:
the type of the event.


Copyright 2006 null. All Rights Reserved.