org.jsurveylib.model.question
Class RadioButtonsQuestion

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

public class RadioButtonsQuestion
extends OneChoiceQuestion

FOR INTERNAL USE ONLY.

The Motherclass for Multiple Choice Selections


Method Summary
 void accept(Visitor visitor)
           
 java.lang.String getLeftLabel()
          Left Range Label
 java.lang.String getRightLabel()
          Right Range Label
 boolean isAnswered()
          Return true if an answer has been set for this question
 boolean isVertical()
           
 
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

isVertical

public boolean isVertical()

isAnswered

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

Specified by:
isAnswered in class Question

getLeftLabel

public java.lang.String getLeftLabel()
Left Range Label

Returns:
The left label of this radio button question

getRightLabel

public java.lang.String getRightLabel()
Right Range Label

Returns:
The right label of this radio button question

accept

public void accept(Visitor visitor)