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 aQALinkQuestions can also be links or image capture events- Author:
- SGSystems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuestion.CustomResponseTypestatic classQuestion.QATypeThe type of question to be asked.
-
Field Summary
Fields Modifier and Type Field Description intallowCustomBoolean indicating whether a custom response can be provided (typed and not selected)java.lang.StringqaGroupThe group of questions that this belongs tojava.lang.StringquestionThe question to be askedjava.lang.StringtextColorOverrides the color of the textinttypeTheQuestion.QATypefor 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.ColorgetActualTextColor()intgetAllowCustom()Question.CustomResponseTypegetAllowCustomEnum()java.util.DategetDeleted()java.lang.StringgetQaGroup()java.lang.StringgetQuestion()java.lang.StringgetTextColor()intgetType()Question.QATypegetTypeEnum()voidsetActualTextColor(java.awt.Color color)voidsetAllowCustom(int allowCustom)voidsetDeleted(java.util.Date deleted)voidsetQaGroup(java.lang.String qaGroup)voidsetQuestion(java.lang.String question)voidsetTextColor(java.lang.String textColor)voidsetType(int type)java.lang.StringtoString()-
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.QATypefor 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:
toStringin 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)
-
-