wt.inf.container
Class WTContainerServiceEvent

java.lang.Object
  extended bywt.events.KeyedEvent
      extended bywt.inf.container.WTContainerServiceEvent
Direct Known Subclasses:
WTContainerMoveEvent

public class WTContainerServiceEvent
extends KeyedEvent

Fired by the WTContainerService.create API.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
static String POST_CREATE
          

Supported API: false
static String PRE_CREATE
          

Supported API: false
private static String RESOURCE
           
 
Fields inherited from class wt.events.KeyedEvent
 
Constructor Summary
WTContainerServiceEvent(WTCollection target, String event_type)
          Constructs multi object WTContainerServiceEvent

Supported API: false
WTContainerServiceEvent(WTContained target, String event_type)
          

Supported API: false
 
Method Summary
static String generateEventKey(String event_type)
          

Supported API: false
 WTContained getTarget()
          Returns WTContained target object.
 WTCollection getTargets()
          Returns collection of target objects for a multi object event.
 KeyedEvent toMultiObjectEvent()
          Converts a single-object event to a multi-object event.
 KeyedEvent[] toSingleObjectEvents()
          Converts a multi-object event to an array of single-object events.
 
Methods inherited from class wt.events.KeyedEvent
generateEventKey, generateEventKey, getConceptualClassname, getEventKey, getEventTarget, getEventType, toString
 
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

PRE_CREATE

public static final String PRE_CREATE


Supported API: false

See Also:
Constant Field Values

POST_CREATE

public static final String POST_CREATE


Supported API: false

See Also:
Constant Field Values
Constructor Detail

WTContainerServiceEvent

public WTContainerServiceEvent(WTContained target,
                               String event_type)


Supported API: false

Parameters:
target -
event_type -

WTContainerServiceEvent

public WTContainerServiceEvent(WTCollection target,
                               String event_type)
Constructs multi object WTContainerServiceEvent

Supported API: false

Parameters:
target -
event_type -
Method Detail

generateEventKey

public static String generateEventKey(String event_type)


Supported API: false

Parameters:
event_type -
Returns:
String

getTargets

public WTCollection getTargets()
Returns collection of target objects for a multi object event. The return type is WTCollection

Supported API: false

Returns:
WTCollection

getTarget

public WTContained getTarget()
Returns WTContained target object.

Supported API: false

Returns:
WTContained

toMultiObjectEvent

public KeyedEvent toMultiObjectEvent()
Description copied from class: KeyedEvent
Converts a single-object event to a multi-object event. This occurs when an event is dispatched as singlei-object (via KeyedEventDispatcher#dispatchVetoabletEvent and KeyedEventDispatcher.dispatchEvent(java.lang.Object, java.lang.String)), but multi-object listeners (listeners implementing KeyedEventListener.notifyVetoableMultiObjectEvent(java.lang.Object) and KeyedEventListener.notifyMultiObjectEvent(java.lang.Object)) are registered. It is necessary to convert the single-object event to a multi-object event to properly notify the multi-object listeners.

Note: This API is called internally and only when needed by the event dispatch mechanism.

Supported API: false

Overrides:
toMultiObjectEvent in class KeyedEvent
Returns:
KeyedEvent

toSingleObjectEvents

public KeyedEvent[] toSingleObjectEvents()
Description copied from class: KeyedEvent
Converts a multi-object event to an array of single-object events. This occurs when an event is dispatched as multi-object (via KeyedEventDispatcher.dispatchVetoableMultiObjectEvent(java.lang.Object, java.lang.String) and KeyedEventDispatcher.dispatchMultiObjectEvent(java.lang.Object, java.lang.String)), but single-object listeners (listeners implementing KeyedEventListener.notifyVetoableEvent(java.lang.Object) and KeyedEventListener.notifyEvent(java.lang.Object)) are registered. It is necessary to convert the multi-object event to an array of single-object events to properly notify the single-object listeners.

Note: This API is called internally and only when needed by the event dispatch mechanism.

Supported API: false

Overrides:
toSingleObjectEvents in class KeyedEvent
Returns:
KeyedEvent[]