|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.jwalk.QuestionEvent
public class QuestionEvent
QuestionEvent is a kind of event that notifies about a Question. A QuestionEvent is generated every time a JWalker wishes to ask a question. This event wraps up a Question and the JWalker source which asked the question. Client programs should register an object satisfying the QuestionListener interface with JWalker's Channels API. The registered object will then accept QuestionEvents raised by the JWalker.
Field Summary | |
---|---|
protected Question |
question
The question that is being asked in this QuestionEvent. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
QuestionEvent(JWalker source,
Question question)
Creates a QuestionEvent with a dispatching source and a question. |
Method Summary | |
---|---|
Question |
getQuestion()
Returns the Question being asked in this event. |
JWalker |
getSource()
Returns the JWalker source which dispatched this event. |
java.lang.String |
toString()
Returns a printable representation of this event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Question question
Constructor Detail |
---|
public QuestionEvent(JWalker source, Question question)
source
- the source object dispatching this QuestionEvent.question
- the Question being asked by this QuestionEvent.Method Detail |
---|
public JWalker getSource()
getSource
in class java.util.EventObject
public Question getQuestion()
public java.lang.String toString()
toString
in class java.util.EventObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |