Package de.intarsys.tools.event
Class RequestEventFacade
- java.lang.Object
-
- de.intarsys.tools.facade.Facade
-
- de.intarsys.tools.event.AbstractEventFacade
-
- de.intarsys.tools.event.RequestEventFacade
-
- All Implemented Interfaces:
IEvent,IRequestEvent,IFacade
public class RequestEventFacade extends AbstractEventFacade
-
-
Field Summary
-
Fields inherited from interface de.intarsys.tools.event.IRequestEvent
ARG_EVENT, ARG_JEVENT, DEPR_ARG_JEVENT
-
-
Constructor Summary
Constructors Constructor Description RequestEventFacade(RequestEvent event)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume()Indicate that this event does not need to be propagated any further as it is already processed by some listener.java.lang.ObjectgetArgs()EventTypegetEventType()A type for this event.java.lang.StringgetName()A name for this event.booleangetRc()java.lang.ObjectgetSource()The object originating the event instance.java.lang.ObjectgetTarget()java.lang.StringgetType()java.lang.ObjectgetValue()booleangetVeto()booleanisConsumed()trueif this event is already consumed by some listener.booleanisVetoed()trueif this event is already vetoed by some listener.voidsetRc(boolean value)voidsetTarget(java.lang.Object target)voidsetValue(java.lang.Object value)voidsetVeto(boolean value)voidveto()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
-
-
-
-
Constructor Detail
-
RequestEventFacade
public RequestEventFacade(RequestEvent event)
-
-
Method Detail
-
consume
public void consume()
Description copied from interface:IEventIndicate 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:IEventA type for this event.- Returns:
- A type for this event.
-
getName
public java.lang.String getName()
Description copied from interface:IEventA name for this event.- Returns:
- A name for this event.
-
getRc
public boolean getRc()
-
getSource
public java.lang.Object getSource()
Description copied from interface:IEventThe 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:
getTypein classAbstractEventFacade
-
getValue
public java.lang.Object getValue()
-
getVeto
public boolean getVeto()
- Specified by:
getVetoin classAbstractEventFacade
-
isConsumed
public boolean isConsumed()
Description copied from interface:IEventtrueif this event is already consumed by some listener.- Returns:
trueif this event is already consumed by some listener.
-
isVetoed
public boolean isVetoed()
Description copied from interface:IEventtrueif this event is already vetoed by some listener.- Returns:
trueif 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:
setVetoin classAbstractEventFacade
-
veto
public void veto()
Description copied from interface:IEventIndicate that the behavior associated with this event should not be performed by the source.
-
-