intarsys runtime library

de.intarsys.tools.event
Class GenericEventFacade

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

public class GenericEventFacade
extends AbstractEventFacade


Field Summary
 
Fields inherited from interface de.intarsys.tools.event.IFunctorEvent
ARG_EVENT, ARG_JEVENT, DEPR_ARG_JEVENT
 
Constructor Summary
GenericEventFacade(GenericEvent 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.
 Object getArgs()
           
 EventType getEventType()
          A type for this event.
 String getName()
          A name for this event.
 boolean getRc()
           
 Object getSource()
          The object originating the event instance.
 Object getTarget()
           
 String getType()
           
 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(Object target)
           
 void setValue(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
getImpl
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericEventFacade

public GenericEventFacade(GenericEvent 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 Object getArgs()

getEventType

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

Returns:
A type for this event.

getName

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

Returns:
A name for this event.

getRc

public boolean getRc()

getSource

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

Returns:
The object originating the event instance.

getTarget

public Object getTarget()

getType

public String getType()
Specified by:
getType in class AbstractEventFacade

getValue

public 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(Object target)

setValue

public void setValue(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.


intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.