wt.events
Class StandardKeyedEventBranch

java.lang.Object
  extended bywt.events.StandardKeyedEventBranch
All Implemented Interfaces:
KeyedEventBranch

public class StandardKeyedEventBranch
extends Object
implements KeyedEventBranch

Get the fully qualified type of the event.

Supported API: true

Extendable: false


Field Summary
private static String CLASSNAME
           
private  String eventClassName
           
private  String eventKey
           
private  String eventType
           
private  Vector listeners
           
private static String RESOURCE
           
protected static boolean VERBOSE
           
 
Fields inherited from interface wt.events.KeyedEventBranch
EVENT_CLASS_NAME, EVENT_TYPE, TOSTRING_DELIMITER, TOSTRING_PREFIX
 
Constructor Summary
StandardKeyedEventBranch(String eventKey)
          

Supported API: false
StandardKeyedEventBranch(String eventKey, String eventClassName, String eventType)
          Construct a StandardEventKeyBranch with key and event class name.
 
Method Summary
 void addEventListener(KeyedEventListener listener)
          

Supported API: true
 void dispatchEvent(Object eventObject)
          

Supported API: true
 void dispatchMultiObjectEvent(Object eventObject)
          

Supported API: true
 void dispatchVetoableEvent(Object eventObject)
          Synchronously dispatch event notification to all listeners.
 void dispatchVetoableMultiObjectEvent(Object eventObject)
          Synchronously dispatch event notification to all listeners.
 String getEventClassName()
          Gets the value of the attribute: eventClassName; Return the fully qualified class name for the event, e.g.
 String getEventKey()
          Gets the value of the attribute: eventKey; Return the event key for this branch.
 String getEventType()
          Gets the value of the attribute: eventType; The type of the event, e.g.
 String getQualifiedEventType()
          Get the fully qualified type of the event.
 void intDispatchEvent(Object eventObject, boolean isSingleObjectEvent, boolean isVetoable)
           
 void removeAllEventsListener()
          

Supported API: false
 void removeEventListener(KeyedEventListener listener)
          

Supported API: true
 void setEventClassName(String a_EventClassName)
          Sets the value of the attribute: eventClassName; Return the fully qualified class name for the event, e.g.
 void setEventType(String a_EventType)
          Sets the value of the attribute: eventType; The type of the event, e.g.
 String toString()
          Return a String representation of the event branch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

eventKey

private String eventKey

eventType

private String eventType

eventClassName

private String eventClassName

listeners

private Vector listeners

VERBOSE

protected static final boolean VERBOSE
Constructor Detail

StandardKeyedEventBranch

public StandardKeyedEventBranch(String eventKey)


Supported API: false

Parameters:
eventKey -

StandardKeyedEventBranch

public StandardKeyedEventBranch(String eventKey,
                                String eventClassName,
                                String eventType)
Construct a StandardEventKeyBranch with key and event class name.

Supported API: false

Parameters:
eventKey -
eventClassName -
eventType -
Method Detail

getQualifiedEventType

public String getQualifiedEventType()
Get the fully qualified type of the event.

Supported API: false

Returns:
the fully qualified event type, may be null.

toString

public String toString()
Return a String representation of the event branch.

Supported API: false

Returns:
the String representation of the event

getEventKey

public String getEventKey()
Gets the value of the attribute: eventKey; Return the event key for this branch.

Supported API: false

Specified by:
getEventKey in interface KeyedEventBranch
Returns:
String

getEventType

public String getEventType()
Gets the value of the attribute: eventType; The type of the event, e.g. "PRE_DELETE".

Supported API: false

Specified by:
getEventType in interface KeyedEventBranch
Returns:
String

setEventType

public void setEventType(String a_EventType)
                  throws PropertyVetoException
Sets the value of the attribute: eventType; The type of the event, e.g. "PRE_DELETE".

Supported API: false

Specified by:
setEventType in interface KeyedEventBranch
Parameters:
a_EventType -
Throws:
PropertyVetoException

getEventClassName

public String getEventClassName()
Gets the value of the attribute: eventClassName; Return the fully qualified class name for the event, e.g. "wt.events.KeyedEvent".

Supported API: false

Specified by:
getEventClassName in interface KeyedEventBranch
Returns:
String

setEventClassName

public void setEventClassName(String a_EventClassName)
                       throws PropertyVetoException
Sets the value of the attribute: eventClassName; Return the fully qualified class name for the event, e.g. "wt.events.KeyedEvent".

Supported API: false

Specified by:
setEventClassName in interface KeyedEventBranch
Parameters:
a_EventClassName -
Throws:
PropertyVetoException

addEventListener

public void addEventListener(KeyedEventListener listener)


Supported API: true

Specified by:
addEventListener in interface KeyedEventBranch
Parameters:
listener -

removeEventListener

public void removeEventListener(KeyedEventListener listener)


Supported API: true

Specified by:
removeEventListener in interface KeyedEventBranch
Parameters:
listener -

removeAllEventsListener

public void removeAllEventsListener()


Supported API: false

Specified by:
removeAllEventsListener in interface KeyedEventBranch

dispatchEvent

public void dispatchEvent(Object eventObject)


Supported API: true

Specified by:
dispatchEvent in interface KeyedEventBranch
Parameters:
eventObject -

dispatchVetoableEvent

public void dispatchVetoableEvent(Object eventObject)
                           throws WTException
Synchronously dispatch event notification to all listeners.

Supported API: true

Specified by:
dispatchVetoableEvent in interface KeyedEventBranch
Parameters:
eventObject -
Throws:
WTException

dispatchMultiObjectEvent

public void dispatchMultiObjectEvent(Object eventObject)


Supported API: true

Specified by:
dispatchMultiObjectEvent in interface KeyedEventBranch
Parameters:
eventObject -

dispatchVetoableMultiObjectEvent

public void dispatchVetoableMultiObjectEvent(Object eventObject)
                                      throws WTException
Synchronously dispatch event notification to all listeners.

Supported API: true

Specified by:
dispatchVetoableMultiObjectEvent in interface KeyedEventBranch
Parameters:
eventObject -
Throws:
WTException

intDispatchEvent

public void intDispatchEvent(Object eventObject,
                             boolean isSingleObjectEvent,
                             boolean isVetoable)
                      throws WTException
Throws:
WTException