de.intarsys.tools.event
Class RequestEventFacade

java.lang.Object
  extended by de.intarsys.tools.facade.Facade
      extended by de.intarsys.tools.event.AbstractEventFacade
          extended by de.intarsys.tools.event.RequestEventFacade
All Implemented Interfaces:
IEvent, IRequestEvent, IFacade

public class RequestEventFacade
extends AbstractEventFacade


Field Summary
 
Fields inherited from class de.intarsys.tools.facade.Facade
object
 
Fields inherited from interface de.intarsys.tools.event.IRequestEvent
ARG_EVENT, ARG_JEVENT, DEPR_ARG_JEVENT
 
Constructor Summary
RequestEventFacade(RequestEvent event)
           
 
Method Summary
 void consume()
          Indicate that this event does not need to be propagated any further as it is already processed by some listener.
 java.lang.Object getArgs()
           
 EventType getEventType()
          A type for this event.
 java.lang.String getName()
          A name for this event.
 boolean getRc()
           
 java.lang.Object getSource()
          The object originating the event instance.
 java.lang.Object getTarget()
           
 java.lang.String getType()
           
 java.lang.Object getValue()
           
 boolean getVeto()
           
 boolean isConsumed()
          true if this event is already consumed by some listener.
 boolean isVetoed()
          true if this event is already vetoed by some listener.
 void setRc(boolean value)
           
 void setTarget(java.lang.Object target)
           
 void setValue(java.lang.Object value)
           
 void setVeto(boolean value)
           
 void veto()
          Indicate that the behavior associated with this event should not be performed by the source.
 
Methods inherited from class de.intarsys.tools.facade.Facade
createFacade, getImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestEventFacade

public RequestEventFacade(RequestEvent event)
Method Detail

consume

public void consume()
Description copied from interface: IEvent
Indicate that this event does not need to be propagated any further as it is already processed by some listener.


getArgs

public java.lang.Object getArgs()

getEventType

public EventType getEventType()
Description copied from interface: IEvent
A type for this event.

Returns:
A type for this event.

getName

public java.lang.String getName()
Description copied from interface: IEvent
A name for this event.

Returns:
A name for this event.

getRc

public boolean getRc()

getSource

public java.lang.Object getSource()
Description copied from interface: IEvent
The object originating the event instance.

Returns:
The object originating the event instance.

getTarget

public java.lang.Object getTarget()

getType

public java.lang.String getType()
Specified by:
getType in class AbstractEventFacade

getValue

public java.lang.Object getValue()

getVeto

public boolean getVeto()
Specified by:
getVeto in class AbstractEventFacade

isConsumed

public boolean isConsumed()
Description copied from interface: IEvent
true if this event is already consumed by some listener.

Returns:
true if this event is already consumed by some listener.

isVetoed

public boolean isVetoed()
Description copied from interface: IEvent
true if this event is already vetoed by some listener.

Returns:
true if this event is already vetoed by some listener.

setRc

public void setRc(boolean value)

setTarget

public void setTarget(java.lang.Object target)

setValue

public void setValue(java.lang.Object value)

setVeto

public void setVeto(boolean value)
Specified by:
setVeto in class AbstractEventFacade

veto

public void veto()
Description copied from interface: IEvent
Indicate that the behavior associated with this event should not be performed by the source.