|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objectplanet.survey.plugin.api.Question com.objectplanet.survey.plugin.api.QuestionNumeric
public class QuestionNumeric
This class represents a numeric question. Subclasses Question, and adds
functionality to create/edit/delete a numeric question.
ATTENTION: Update validators when changing numeric type (use setValidator()
method). If you forget to update the validators for min and max values,
parameters to these validators will be set to 0.
Field Summary | |
---|---|
static int |
DECIMAL
Numeric type decimal is allowed for response input |
static int |
INTEGER
Numeric type integer is allowed for response input (default) |
Fields inherited from class com.objectplanet.survey.plugin.api.Question |
---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DECIMAL
public static final int INTEGER
Method Detail |
---|
public void setFieldSize(int fieldSize) throws LockException, RespondentsExistException, SurveySecurityException, SurveySystemException
fieldSize
- The new field size value
LockException
- 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 type
LockException
- 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 value
LockException
- 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 value
LockException
- 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
|
Copyright ? ObjectPlanet Inc. All Rights Reserved. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |