com.knowgate.surveys
Class Choice
java.lang.Object
com.knowgate.surveys.Question
com.knowgate.surveys.Choice
- Direct Known Subclasses:
- MultiChoice
public class Choice
- extends Question
| Methods inherited from class com.knowgate.surveys.Question |
getCaption, getCaptStyle, getIllegalVal, getName, getStyle, mustAnswer, mustAnswer, setCaption, setCaptStyle, setIllegalVal, setName, setStyle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
otherfield
protected java.lang.String otherfield
choiceelements
protected java.util.ArrayList choiceelements
selectedindex
protected int selectedindex
ClassId
public static final short ClassId
- See Also:
- Constant Field Values
Choice
public Choice()
getOtherField
public java.lang.String getOtherField()
setOtherField
public void setOtherField(java.lang.String sOtherField)
getChoiceElements
public java.util.ArrayList getChoiceElements()
addChoiceElement
public void addChoiceElement(ChoiceElement oElement)
getChoiceElement
public ChoiceElement getChoiceElement(int iIndex)
getChoiceElementCount
public int getChoiceElementCount()
removeChoiceElement
public void removeChoiceElement(int iIndex)
selectedIndex
public int selectedIndex()
selectedIndex
public void selectedIndex(int iIndex)
stringValue
public java.lang.String stringValue()
getValue
public java.lang.Object getValue()
- Specified by:
getValue in class Question
getClassId
public short getClassId()
- Specified by:
getClassId in class Question