wt.clients.beans.query
Class WTQueryEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bywt.clients.beans.query.WTQueryEvent
All Implemented Interfaces:
Serializable

public class WTQueryEvent
extends EventObject

The query event emitted by WTQuery objects when an item is selected, a status message is available or a button is clicked.

Supported API: true

Extendable: false

See Also:
WTQuery, Serialized Form

Field Summary
static String CLOSE
          For internal use only.
static String COMMAND
          The command type.
static String DESELECT
          The deselect type.
private  WTObject myDetail
           
private  WTQuery myQuery
           
private  String myString
           
private  String myType
           
static String NULL
          For internal use only.
static String OPEN
          For internal use only.
static String SELECT
          The select type.
static String STATUS
          The status type.
private static String versionID
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
WTQueryEvent(WTQuery aQuery, String aType, String a_string)
          Constructs a WTQueryEvent object with the specified source component, type, and value.
WTQueryEvent(WTQuery aQuery, String aType, WTObject aDetail)
          Constructs a WTQueryEvent object with the specified source component, type, and object.
 
Method Summary
 String getCommand()
          Returns the button clicked.
 WTObject getDetail()
          Returns the target object.
 WTQuery getQuery()
          For internal use only.
 String getStatus()
          Returns the status message.
 String getType()
          Returns the type of WTQueryEvent.
 void setCommand(String aValue)
          For internal use only.
 void setDetail(WTObject aValue)
          For internal use only.
 void setQuery(WTQuery aValue)
          For internal use only.
 void setStatus(String aValue)
          For internal use only.
 void setType(String aValue)
          For internal use only.
 String toString()
          Returns a string representation of this object.
 
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

versionID

private static final String versionID
See Also:
Constant Field Values

COMMAND

public static final String COMMAND
The command type.

Supported API: true

See Also:
Constant Field Values

SELECT

public static final String SELECT
The select type.

Supported API: true

See Also:
Constant Field Values

DESELECT

public static final String DESELECT
The deselect type.

Supported API: true

See Also:
Constant Field Values

STATUS

public static final String STATUS
The status type.

Supported API: true

See Also:
Constant Field Values

OPEN

public static final String OPEN
For internal use only.

Supported API: false

See Also:
Constant Field Values

NULL

public static final String NULL
For internal use only.

Supported API: false

See Also:
Constant Field Values

CLOSE

public static final String CLOSE
For internal use only.

Supported API: false

See Also:
Constant Field Values

myQuery

private WTQuery myQuery

myDetail

private WTObject myDetail

myType

private String myType

myString

private String myString
Constructor Detail

WTQueryEvent

public WTQueryEvent(WTQuery aQuery,
                    String aType,
                    String a_string)
Constructs a WTQueryEvent object with the specified source component, type, and value. For COMMAND type events, the value will be a button as defined in WTQuery. For STATUS type events, the value will be the status message string.

Supported API: false

Parameters:
aQuery - The WTQuery object where the event originated.
aType - The COMMAND or STATUS event type.
a_string - The value represented by the specified type.

WTQueryEvent

public WTQueryEvent(WTQuery aQuery,
                    String aType,
                    WTObject aDetail)
Constructs a WTQueryEvent object with the specified source component, type, and object.

Supported API: false

Parameters:
aQuery - The WTQuery object where the event originated.
aType - The event type.
aDetail - The object affected by the event.
Method Detail

getQuery

public WTQuery getQuery()
For internal use only.

Supported API: false


setQuery

public void setQuery(WTQuery aValue)
For internal use only.

Supported API: false


getType

public String getType()
Returns the type of WTQueryEvent.

Supported API: true

Returns:
the type of WTQueryEvent.

setType

public void setType(String aValue)
For internal use only.

Supported API: false


getCommand

public String getCommand()
Returns the button clicked.

Returns:
the button clicked.
See Also:
WTQuery

setCommand

public void setCommand(String aValue)
For internal use only.

Supported API: false


getStatus

public String getStatus()
Returns the status message.

Returns:
the status message.

setStatus

public void setStatus(String aValue)
For internal use only.

Supported API: false


getDetail

public WTObject getDetail()
Returns the target object.

Returns:
the target object.

setDetail

public void setDetail(WTObject aValue)
For internal use only.

Supported API: false


toString

public String toString()
Returns a string representation of this object.

Supported API: false