com.sptci.echo2.table
Class EventObject<D,S>
java.lang.Object
java.util.EventObject
com.sptci.echo2.table.EventObject<D,S>
- Type Parameters:
D - The class of the model object displayed in the table.S - The source component from which the event was triggered.
- All Implemented Interfaces:
- Serializable
public class EventObject<D,S>
- extends EventObject
A genericised EventObject used to represent the
objects that are displayed in a Table.
© Copyright 2007 Sans Pareil Technologies, Inc.
- Version:
- $Id: EventObject.java 4553 2008-12-24 10:34:16Z rakesh $
- Author:
- Rakesh Vidyadharan 2007-09-19
- See Also:
- Serialized Form
|
Constructor Summary |
EventObject(D data,
S source)
Create a new event on the data specified in the table specified. |
|
Method Summary |
D |
getData()
Returns the data on which the event was triggered. |
S |
getSource()
Returns the properly type-cast source object that triggered this
event. |
EventObject
public EventObject(D data,
S source)
- Create a new event on the data specified in the table specified.
- Parameters:
data - The data object on which the event was raised.source - The source table on which the event was triggered.
getData
public D getData()
- Returns the
data on which the event was triggered.
- Returns:
- The value/reference of/to data.
getSource
public S getSource()
- Returns the properly type-cast source object that triggered this
event.
- Overrides:
getSource in class EventObject
- Returns:
- The source object.