com.knowgate.surveys
Class Choice

java.lang.Object
  extended by com.knowgate.surveys.Question
      extended by com.knowgate.surveys.Choice
Direct Known Subclasses:
MultiChoice

public class Choice
extends Question


Nested Class Summary
 
Nested classes/interfaces inherited from class com.knowgate.surveys.Question
Question.SubTypes
 
Field Summary
protected  java.util.ArrayList choiceelements
           
static short ClassId
           
protected  java.lang.String otherfield
           
protected  int selectedindex
           
 
Fields inherited from class com.knowgate.surveys.Question
caption, captstyle, illegalval, mustanswer, name, style
 
Constructor Summary
Choice()
           
 
Method Summary
 void addChoiceElement(ChoiceElement oElement)
           
 ChoiceElement getChoiceElement(int iIndex)
           
 int getChoiceElementCount()
           
 java.util.ArrayList getChoiceElements()
           
 short getClassId()
           
 java.lang.String getOtherField()
           
 java.lang.Object getValue()
           
 void removeChoiceElement(int iIndex)
           
 int selectedIndex()
           
 void selectedIndex(int iIndex)
           
 void setOtherField(java.lang.String sOtherField)
           
 java.lang.String stringValue()
           
 
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
 

Field Detail

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
Constructor Detail

Choice

public Choice()
Method Detail

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