org.openbp.jaspira.event
Class AskEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.openbp.jaspira.event.JaspiraEvent
          extended by org.openbp.jaspira.event.AskEvent
All Implemented Interfaces:
java.io.Serializable

public class AskEvent
extends JaspiraEvent

Event that provides the recepients with the capability to insert a specific answer via the setAnswer mehtod. If this happens, the event counts as consumed.

Author:
Stephan Moritz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openbp.jaspira.event.JaspiraEvent
CONSUMED, HANDELED, STACKABLE, TYPE_BOTTOM_UP, TYPE_DIRECT, TYPE_FLOOD, TYPE_GLOBAL, UNCONSUMABLE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AskEvent(Plugin source, java.lang.String eventName)
          Constructor.
AskEvent(Plugin source, java.lang.String eventName, java.lang.Object object)
          Constructor.
 
Method Summary
 java.lang.Object getAnswer()
          Returns the answer.
 void setAnswer(java.lang.Object answer)
          Sets the answer.
 
Methods inherited from class org.openbp.jaspira.event.JaspiraEvent
brand, getBrand, getEventGroup, getEventName, getFlags, getLevel, getObject, getOriginalEvent, getSourcePlugin, getTargetClassName, getTargetPluginId, getType, isConsumed, isStackable, isUnconsumable, setObject, setTargetClassName, setTargetPluginId, toString, updateFlags, updateFlags
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AskEvent

public AskEvent(Plugin source,
                java.lang.String eventName)
Constructor.

Parameters:
source - The plugin that dispatches this event. Must not be null. Will be converted to lower case.
eventName - The name of the event

AskEvent

public AskEvent(Plugin source,
                java.lang.String eventName,
                java.lang.Object object)
Constructor.

Parameters:
source - The plugin that dispatches this event. Must not be null. Will be converted to lower case.
eventName - The name of the event
object - An additional data object. Can be null.
Method Detail

getAnswer

public java.lang.Object getAnswer()
Returns the answer.


setAnswer

public void setAnswer(java.lang.Object answer)
Sets the answer.



Copyright © 2011. All Rights Reserved.