org.jsurveylib.model.question
Class DropdownQuestion

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

public class DropdownQuestion
extends OneChoiceQuestion

FOR INTERNAL USE ONLY.

Copyright (c)2007, Daniel Kaplan

Since:
7.10.12
Author:
Daniel Kaplan

Method Summary
 void accept(Visitor visitor)
           
 boolean isAnswered()
          Return true if an answer has been set for this question
 void setChoices(java.util.List<Choice> choices)
           
 
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

setChoices

public void setChoices(java.util.List<Choice> choices)

accept

public void accept(Visitor visitor)