com.objectplanet.survey.event
Class Event

java.lang.Object
  extended by com.objectplanet.survey.event.Event
Direct Known Subclasses:
AdminEvent, Event.NonVetoable, SurveyEvent

public abstract class Event
extends java.lang.Object

The base class of all EventBus events.

Author:
Torgeir Lund
Created:
03. November 2005

Nested Class Summary
static class Event.NonVetoable
          An BusEvent implementation that cannot be vetoed.
 
Constructor Summary
Event(IEventListener source)
          Creates a new BusEvent.
 
Method Summary
 IEventListener getSource()
          Returns the sender of this BusEvent.
 boolean isVetoed()
          Returns if this BusEvent has been vetoed by another bus component.
 java.lang.String paramString()
          Returns a string representation of this BusEvent's parameters.
 java.lang.String toString()
          Returns a string representation of this BusEvent.
 void veto()
          Vetoes this BusEvent.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event(IEventListener source)
Creates a new BusEvent.

Parameters:
source - The BusEvent source
Method Detail

getSource

public IEventListener getSource()
Returns the sender of this BusEvent.


veto

public void veto()
Vetoes this BusEvent. It will not be passed on further on the bus, and instead will be returned directly to the sender with the vetoed flag on.


isVetoed

public boolean isVetoed()
Returns if this BusEvent has been vetoed by another bus component.


toString

public java.lang.String toString()
Returns a string representation of this BusEvent.

Overrides:
toString in class java.lang.Object

paramString

public java.lang.String paramString()
Returns a string representation of this BusEvent's parameters.


Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016