org.jsurveylib.model.question
Class CheckboxQuestion

java.lang.Object
  extended by org.jsurveylib.model.question.Question
      extended by org.jsurveylib.model.question.OneChoiceQuestion
          extended by org.jsurveylib.model.question.CheckboxQuestion
All Implemented Interfaces:
Template, SurveyElement, Visitable

public class CheckboxQuestion
extends OneChoiceQuestion

FOR INTERNAL USE ONLY.

Copyright (c)2007, Daniel Kaplan

Since:
7.10.4
Author:
Daniel Kaplan

Method Summary
 void accept(Visitor visitor)
           
 boolean isAnswered()
          Return true if an answer has been set for this question
 boolean isCheckboxOnRight()
           
 boolean isChecked()
           
 void setCheckboxOnRight(boolean checkboxOnRight)
           
 
Methods inherited from class org.jsurveylib.model.question.OneChoiceQuestion
getAnswer, getChoices, getSelectedIndex, setAnswer
 
Methods inherited from class org.jsurveylib.model.question.Question
addAnswerListener, addEnableListener, addValidationListener, addVisibilityListener, fireAnswerChanged, fireAnswerChanged, getCurrentValidationMessage, getId, getLabel, getOnAnswerChanged, isAnswerable, isEnabled, isMandatory, isValid, isVisible, populateTemplate, removeAnswerListener, removeEnableListener, removeValidationListener, removeVisibilityListener, setEnabled, setLabel, setLabel, setMandatory, setOnAnswerChanged, setValid, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isAnswered

public boolean isAnswered()
Return true if an answer has been set for this question

Specified by:
isAnswered in class Question

isChecked

public boolean isChecked()

isCheckboxOnRight

public boolean isCheckboxOnRight()

setCheckboxOnRight

public void setCheckboxOnRight(boolean checkboxOnRight)

accept

public void accept(Visitor visitor)