public class QuestionNumeric extends Question
setValidator()
method). If you forget to update the validators for min and max values,
parameters to these validators will be set to 0.Modifier and Type | Field and Description |
---|---|
static int |
DECIMAL
Numeric type decimal is allowed for response input
|
static int |
INTEGER
Numeric type integer is allowed for response input (default)
|
ESSAY_FIELD_CHECKBOX, ESSAY_FIELD_DROPDOWN, ESSAY_FIELD_NUMERIC_DEC, ESSAY_FIELD_NUMERIC_INT, ESSAY_FIELD_TEXT, ESSAYFIELD_LENGTH, INTEXT_TYPE_CHECKBOX, INTEXT_TYPE_DROPDOWN, INTEXT_TYPE_NUMERIC_DEC, INTEXT_TYPE_NUMERIC_INT, INTEXT_TYPE_TEXT, QUESTION_DROPDOWN, QUESTION_MATRIX, QUESTION_MULTIPLE, QUESTION_NO_TYPE, QUESTION_NUMERIC, QUESTION_RATING, TAG_END, TAG_START, UPLOAD_IMAGE, UPLOAD_NONE
Modifier and Type | Method and Description |
---|---|
int |
getFieldSize()
Gets the field size
|
int |
getNumericType()
Gets the type of this numeric question
|
java.lang.String |
getPostfixLabel()
Gets the postfix label.
|
java.lang.String |
getPrefixLabel()
Gets the prefix label.
|
void |
keepBusinessObject()
Get and keep business object.
|
void |
releaseBusinessObject()
Release business object.
|
void |
setFieldSize(int fieldSize)
Sets the input field size.
|
void |
setNumericType(int numericType)
Sets the numeric type attribute
|
void |
setPostfixLabel(java.lang.String postfixLabel)
Sets the postfix label for the numeric input.
|
void |
setPrefixLabel(java.lang.String prefixLabel)
Sets the prefix label for the numeric input.
|
addEssayFieldCheckbox, addEssayFieldDecimal, addEssayFieldDropdown, addEssayFieldInteger, addEssayFieldText, addIntextCheckbox, addIntextDecimal, addIntextDropdown, addIntextInteger, addIntextText, deleteEssayField, deleteIntext, deleteValidator, deleteValidator, deleteValidator, deleteValidator, getAnswerRotation, getCustomId, getDisplayNo, getEssayFieldCount, getEssayFieldDropdownItems, getEssayFieldDropdownLabel, getEssayFieldDropdownSortOn, getEssayFieldSize, getEssayFieldType, getFreeTextColumns, getFreeTextLabel, getFreeTextMaxLength, getFreeTextRows, getHiddenQuestion, getIntextCount, getIntextDropdownItems, getIntextDropdownLabel, getIntextDropdownSortOn, getIntextIndex, getIntextName, getIntextSize, getIntextType, getQuestionId, getQuestionLayout, getQuestionText, getQuestionType, getTextAfter, getTextBefore, getUploadType, getValidatorErrorMessage, getValidatorErrorMessage, getValidatorErrorMessage, getValidatorErrorMessage, getValidatorParameter, getValidatorParameter, getValidatorParameter, getValidatorParameter, getWeight, hasBusinessObject, isFreeTextOn, isValidatorOn, isValidatorOn, isValidatorOn, isValidatorOn, setAnswerRotation, setDisplayNo, setFreeTextColumns, setFreeTextLabel, setFreeTextMaxLength, setFreeTextOn, setFreeTextRows, setHiddenQuestion, setQuestionLayout, setQuestionText, setTextAfter, setTextBefore, setUploadType, setValidator, setValidator, setValidator, setValidator, setWeight, updateAttribute, validate
public static final int DECIMAL
public static final int INTEGER
public void setFieldSize(int fieldSize) throws LockException, RespondentsExistException, SurveySecurityException, SurveySystemException
fieldSize
- The new field size valueLockException
- Thrown if the survey is locked and
can't be edited. Not yet implemented. Use survey.isLocked()
to be sure that the survey can be updated.RespondentsExistException
- Thrown if the survey has responses and
can't be edited. Not yet implemented. Use survey.hasRespondents()
to be sure that the survey can be updated.SurveySecurityException
- Thrown if the user is not authorized
to call this method.SurveySystemException
- If an error occurs in the system.public void setNumericType(int numericType) throws LockException, RespondentsExistException, SurveySecurityException, SurveySystemException
numericType
- The new numeric typeLockException
- Thrown if the survey is locked and
can't be edited. Not yet implemented. Use survey.isLocked()
to be sure that the survey can be updated.RespondentsExistException
- Thrown if the survey has responses and
can't be edited. Not yet implemented. Use survey.hasRespondents()
to be sure that the survey can be updated.SurveySecurityException
- Thrown if the user is not authorized
to call this method.SurveySystemException
- If an error occurs in the system.public void setPostfixLabel(java.lang.String postfixLabel) throws LockException, RespondentsExistException, SurveySecurityException, SurveySystemException
postfixLabel
- The postfix label valueLockException
- Thrown if the survey is locked and
can't be edited. Not yet implemented. Use survey.isLocked()
to be sure that the survey can be updated.RespondentsExistException
- Thrown if the survey has responses and
can't be edited. Not yet implemented. Use survey.hasRespondents()
to be sure that the survey can be updated.SurveySecurityException
- Thrown if the user is not authorized
to call this method.SurveySystemException
- If an error occurs in the system.public void setPrefixLabel(java.lang.String prefixLabel) throws LockException, RespondentsExistException, SurveySecurityException, SurveySystemException
prefixLabel
- The new prefix label valueLockException
- Thrown if the survey is locked and
can't be edited. Not yet implemented. Use survey.isLocked()
to be sure that the survey can be updated.RespondentsExistException
- Thrown if the survey has responses and
can't be edited. Not yet implemented. Use survey.hasRespondents()
to be sure that the survey can be updated.SurveySecurityException
- Thrown if the user is not authorized
to call this method.SurveySystemException
- If an error occurs in the system.public int getFieldSize() throws SurveySystemException
SurveySystemException
- If an error occurs in the system.public int getNumericType() throws SurveySystemException
SurveySystemException
- If an error occurs in the system.public java.lang.String getPostfixLabel() throws SurveySystemException
SurveySystemException
- If an error occurs in the system.public java.lang.String getPrefixLabel() throws SurveySystemException
SurveySystemException
- If an error occurs in the system.public void keepBusinessObject() throws SurveySystemException
keepBusinessObject
in class Question
SurveySystemException
- If an error occurs in the system.public void releaseBusinessObject()
releaseBusinessObject
in class Question
Built on April 12 2018