jview
Class DataChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by jview.DataChangeEvent
All Implemented Interfaces:
Serializable

public class DataChangeEvent
extends EventObject

Signlas that the data observed by a listener has changed. The most natural choice of such a listener is a fast-reacting data analyser. This event is generated normally at user interaction, i.e. by zooming or deleting some points. Thus, different types can be distinguished for adding, deleting or re-loading of the entire data set.

See Also:
Serialized Form

Nested Class Summary
static class DataChangeEvent.Type
          The different types of data events, new, add, delete.
 
Field Summary
private  DataChangeEvent.Type change
          The type of this data change event.
private  List<DataCard> partial
          If the data change was signaled for a partial data change.
private  String set
          The setname.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
private DataChangeEvent(Object src)
          Constructs a new data change event with the default action to re-query the data.
  DataChangeEvent(Object src, DataChangeEvent.Type as, List<DataCard> with, String s)
          Constructs a new data event of the given type with the given partial list.
 
Method Summary
 List<DataCard> getChanges()
          Returns the partial data transmitted with this event.
 DataChangeEvent.Type getChangeType()
          The type of data change.
 String getSet()
          Gets the affected set name.
 String toString()
           
 
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

partial

private List<DataCard> partial
If the data change was signaled for a partial data change.


change

private DataChangeEvent.Type change
The type of this data change event.


set

private String set
The setname.

Constructor Detail

DataChangeEvent

private DataChangeEvent(Object src)
Constructs a new data change event with the default action to re-query the data.


DataChangeEvent

public DataChangeEvent(Object src,
                       DataChangeEvent.Type as,
                       List<DataCard> with,
                       String s)
Constructs a new data event of the given type with the given partial list.

Method Detail

getSet

public String getSet()
Gets the affected set name.


getChanges

public List<DataCard> getChanges()
Returns the partial data transmitted with this event.


getChangeType

public DataChangeEvent.Type getChangeType()
The type of data change.


toString

public String toString()
Overrides:
toString in class EventObject