org.openbp.jaspira.event
Class AskEvent
java.lang.Object
java.util.EventObject
org.openbp.jaspira.event.JaspiraEvent
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
| 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 |
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 eventobject - An additional data object. Can be null.
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.