Package com.sgs.common.database
Class Question
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.Question
-
public class Question extends HibernateObject
This class represents a question which can be asked through aQALink
Questions can also be links or image capture events- Author:
- SGSystems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Question.CustomResponseType
static class
Question.QAType
The type of question to be asked.
-
Field Summary
Fields Modifier and Type Field Description int
allowCustom
Boolean indicating whether a custom response can be provided (typed and not selected)java.lang.String
qaGroup
The group of questions that this belongs tojava.lang.String
question
The question to be askedjava.lang.String
textColor
Overrides the color of the textint
type
TheQuestion.QAType
for this question-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Color
getActualTextColor()
int
getAllowCustom()
Question.CustomResponseType
getAllowCustomEnum()
java.util.Date
getDeleted()
java.lang.String
getQaGroup()
java.lang.String
getQuestion()
java.lang.String
getTextColor()
int
getType()
Question.QAType
getTypeEnum()
void
setActualTextColor(java.awt.Color color)
void
setAllowCustom(int allowCustom)
void
setDeleted(java.util.Date deleted)
void
setQaGroup(java.lang.String qaGroup)
void
setQuestion(java.lang.String question)
void
setTextColor(java.lang.String textColor)
void
setType(int type)
java.lang.String
toString()
-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
question
public java.lang.String question
The question to be asked
-
allowCustom
public int allowCustom
Boolean indicating whether a custom response can be provided (typed and not selected)
-
type
public int type
TheQuestion.QAType
for this question
-
qaGroup
public java.lang.String qaGroup
The group of questions that this belongs to
-
textColor
public java.lang.String textColor
Overrides the color of the text
-
-
Method Detail
-
getQuestion
public java.lang.String getQuestion()
-
setQuestion
public void setQuestion(java.lang.String question)
-
getAllowCustom
public int getAllowCustom()
-
setAllowCustom
public void setAllowCustom(int allowCustom)
-
getAllowCustomEnum
public Question.CustomResponseType getAllowCustomEnum()
-
getDeleted
public java.util.Date getDeleted()
-
setDeleted
public void setDeleted(java.util.Date deleted)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getType
public int getType()
-
setType
public void setType(int type)
-
getTypeEnum
public Question.QAType getTypeEnum()
-
getQaGroup
public java.lang.String getQaGroup()
-
setQaGroup
public void setQaGroup(java.lang.String qaGroup)
-
getTextColor
public java.lang.String getTextColor()
-
setTextColor
public void setTextColor(java.lang.String textColor)
-
getActualTextColor
public java.awt.Color getActualTextColor()
-
setActualTextColor
public void setActualTextColor(java.awt.Color color)
-
-