de.mospace.swing.event
Class DataChangeEvent
java.lang.Object
java.util.EventObject
de.mospace.swing.event.DataChangeEvent
- All Implemented Interfaces:
- Serializable
public class DataChangeEvent
- extends EventObject
An event that informs listeners of one or more changes in the data
of the source.
- Version:
- $Revision: 12 $ ($Date: 2007-07-27 11:48:53 +0200 (Fr, 27 Jul 2007) $)
- Author:
- Moritz Ringler
- See Also:
- Serialized Form
|
Constructor Summary |
DataChangeEvent(Object source)
Creates a new DataChangeEvent for a single change in the data of the
source. |
DataChangeEvent(Object source,
int changeCount)
Creates a new DataChangeEvent for one or more changes in the data of the
source. |
|
Method Summary |
int |
getChangeCount()
Returns the change count for this DataChangeEvent. |
DataChangeEvent
public DataChangeEvent(Object source)
- Creates a new DataChangeEvent for a single change in the data of the
source.
- Parameters:
source - the event source
DataChangeEvent
public DataChangeEvent(Object source,
int changeCount)
- Creates a new DataChangeEvent for one or more changes in the data of the
source.
- Parameters:
source - the event sourcechangeCount - the number of changes in the data
getChangeCount
public int getChangeCount()
- Returns the change count for this DataChangeEvent.
- Returns:
- the number of changes in the data