Package org.javarosa.core.model
Class SelectChoice
java.lang.Object
org.javarosa.core.model.SelectChoice
- All Implemented Interfaces:
Localizable,Externalizable
public class SelectChoice extends Object implements Externalizable, Localizable
-
Field Summary
Fields Modifier and Type Field Description TreeElementcopyNode -
Constructor Summary
Constructors Constructor Description SelectChoice()SelectChoice(String labelID, String value)SelectChoice(String labelOrID, String Value, boolean isLocalizable)SelectChoice(String labelID, String labelInnerText, String value, boolean isLocalizable) -
Method Summary
Modifier and Type Method Description intgetIndex()StringgetLabelInnerText()StringgetTextID()StringgetValue()booleanisLocalizable()voidlocaleChanged(String locale, Localizer localizer)Updates the current object with the locate given.voidreadExternal(DataInputStream in, PrototypeFactory pf)Selectionselection()voidsetIndex(int index)voidsetLocalizable(boolean localizable)voidsetTextID(String textID)StringtoString()voidwriteExternal(DataOutputStream out)
-
Field Details
-
Constructor Details
-
SelectChoice
public SelectChoice() -
SelectChoice
-
SelectChoice
- Parameters:
labelID- can be nulllabelInnerText- can be nullvalue- should not be nullisLocalizable-- Throws:
XFormParseException- if value is null
-
SelectChoice
-
-
Method Details
-
setIndex
public void setIndex(int index) -
getLabelInnerText
-
getValue
-
getIndex
public int getIndex() -
localeChanged
Description copied from interface:LocalizableUpdates the current object with the locate given.- Specified by:
localeChangedin interfaceLocalizable
-
readExternal
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionDeserializationException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
selection
-
isLocalizable
public boolean isLocalizable() -
setLocalizable
public void setLocalizable(boolean localizable) -
toString
-
getTextID
-
setTextID
-