cmu.survey.objects.renderers.text.questiontextrenderers
Class QuestionRendererStub
java.lang.Object
cmu.survey.objects.renderers.text.questiontextrenderers.QuestionRendererStub
- Direct Known Subclasses:
- AbstractQuestionRenderer, CheckboxRenderer, RadioButtonRenderer, ScaleAndRadioHeaderRenderer, TextAreaRenderer, TextQuestionRenderer, TitleRenderer
public class QuestionRendererStub
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
question
protected QuestionDataBitSet question
selectedAnswerChoicesToAbbreviate
protected java.util.Vector selectedAnswerChoicesToAbbreviate
showVariableNames
protected boolean showVariableNames
showVariableTypes
protected boolean showVariableTypes
showIndexNotBullets
protected boolean showIndexNotBullets
abbreviateAnswerChoices
protected boolean abbreviateAnswerChoices
convertScalesToRadioButtons
protected boolean convertScalesToRadioButtons
hideRadioHeaders
protected boolean hideRadioHeaders
hideNumberScales
protected boolean hideNumberScales
compressNumberScales
protected boolean compressNumberScales
QuestionRendererStub
public QuestionRendererStub()
initialize
public void initialize(java.util.Vector selectedAnswerChoicesToAbbreviate,
boolean showVariableNames,
boolean showVariableTypes,
boolean showIndexNotBullets,
boolean abbreviateAnswerChoices,
boolean convertToRadioButtons,
boolean hideRadioHeaders,
boolean hideNumberScales,
boolean compressNumberScales)
renderQuestion
public java.lang.String renderQuestion(QuestionDataBitSet question)
replaceHTML
public static java.lang.String replaceHTML(java.lang.String text,
boolean inSingleRow)
- Parameters:
text
- inSingleRow
- assumed to be in a single row in the output -- removes ALL carriage returns.
- Returns:
replaceHTML
public static java.lang.String replaceHTML(java.lang.String text)
renderQuestionStartText
public java.lang.String renderQuestionStartText()
renderQuestionEndText
public java.lang.String renderQuestionEndText()
renderQuestionText
public java.lang.String renderQuestionText()
renderVariable
public java.lang.String renderVariable(VariableDataBitSet variable)
renderAnswerNameAndType
public java.lang.String renderAnswerNameAndType()
renderHelpText
public java.lang.String renderHelpText()
isInitialized
public boolean isInitialized()