gov.sandia.ccaffeine.dc.user_iface.MVC.event
Class QueryEvent

java.lang.Object
  extended by java.util.EventObject
      extended by gov.sandia.ccaffeine.dc.user_iface.MVC.event.QueryEvent
All Implemented Interfaces:
java.io.Serializable

public class QueryEvent
extends java.util.EventObject

Used to notify components that an entity wants to send a query. A view entity might respond by sending back a ResultSetEvent.

See Also:
Serialized Form

Field Summary
protected  java.lang.Object query
           
protected  ResultSetListener requester
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
QueryEvent(java.lang.Object source, java.lang.Object query, ResultSetListener requester)
          Create a QueryEvent.
 
Method Summary
 java.lang.Object getQuery()
          Retrieve the query.
 ResultSetListener getRequester()
          Retrieve the entity that sent the query.
 
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

query

protected java.lang.Object query

requester

protected ResultSetListener requester
Constructor Detail

QueryEvent

public QueryEvent(java.lang.Object source,
                  java.lang.Object query,
                  ResultSetListener requester)
Create a QueryEvent. Used to notify components that an entity wants to send a query. A view entity might respond by sending back a ResultSetEvent.

Parameters:
source - The entity that created this event.
query - The query
requester - The entity that sent the query. The response to the query will be sent to the requester of the query.
Method Detail

getQuery

public java.lang.Object getQuery()
Retrieve the query.

Returns:
The query.

getRequester

public ResultSetListener getRequester()
Retrieve the entity that sent the query. The response to the query will be sent to the requester of the query.

Returns:
The entity that sent the query.