SPT Core API

com.sptci.echo2.table
Class EventObject<D,S>

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
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.
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.

SPT Core API