public class Question extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_ANSWER
Property name used to set the answer value.
|
static String |
PROPERTY_QUESTION
Property name used to set the question value.
|
static String |
PROPERTY_RESPONSE
Property name used to set the response value.
|
Modifier and Type | Method and Description |
---|---|
static ObjectProperty |
getAnswerProperty()
Gets the answerProperty, which represents the correct answer, as a ObjectProperty.
|
static StringProperty |
getQuestionProperty()
Gets the questionProperty as a StringProperty.
|
static ObjectProperty |
getResponseProperty()
Gets the responseProperty, which represents the given response of a user, as an ObjectProperty.
|
static void |
setAnswer(Node node,
Object answer)
Helper Method to set the answer of a element trial.
|
static void |
setAnswerProperty(ObjectProperty answerProperty)
Sets the answerProperty, which represents the correct answer, as an ObjectProperty.
|
static void |
setQuestionAnswer(Node node,
String question,
Object answer)
Helper Method to set the question and answer of a element trial.
|
static void |
setQuestionProperty(StringProperty questionProperty)
Sets the questionProperty as a StringProperty.
|
static void |
setResponseProperty(ObjectProperty responseProperty)
Sets the responseProperty, which represents the given response of a user, as an ObjectProperty.
|
public static final String PROPERTY_QUESTION
public static final String PROPERTY_ANSWER
public static final String PROPERTY_RESPONSE
public static StringProperty getQuestionProperty()
public static ObjectProperty getAnswerProperty()
public static ObjectProperty getResponseProperty()
public static void setQuestionProperty(StringProperty questionProperty)
questionProperty
- the StringProperty that will be setpublic static void setAnswerProperty(ObjectProperty answerProperty)
answerProperty
- the ObjectProperty that will be setpublic static void setResponseProperty(ObjectProperty responseProperty)
responseProperty
- the ObjectProperty that will be setpublic static void setQuestionAnswer(Node node, String question, Object answer)
node
- question
- answer
- Copyright © 2013. All Rights Reserved.