|
||||||||
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.QuestionRating
public class QuestionRating
This class represents a rating question. Subclasses Question, and adds functionality to create/edit/delete a rating type question. In rating/scale question type respondent must choose a value from 1 to N, where N is the number of levels in the scale. This question type also allows a non-selection answer (N/A).
Field Summary |
---|
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 | |
---|---|
java.lang.String |
getMaxText()
Gets the maximum text |
java.lang.String |
getMinText()
Gets the minimum text |
java.lang.String |
getNALabel()
Gets the label of the N/A field |
int |
getRatingLevel()
Gets the rating level |
int |
getRatingStartLevel()
Gets the rating start level |
boolean |
getShowNA()
Gets the showNA attribute |
void |
keepBusinessObject()
Get and keep business object. |
void |
releaseBusinessObject()
Release business object. |
void |
setMaxText(java.lang.String maxText)
Sets the maximum text |
void |
setMinText(java.lang.String minText)
Sets the minimum text |
void |
setNALabel(java.lang.String NALabel)
Sets the label of the N/A field |
void |
setRatingLevel(int ratingLevel)
Sets the rating level |
void |
setRatingStartLevel(int ratingStartLevel)
Sets the rating start level |
void |
setShowNA(boolean showNA)
Sets the value for showNA attribute. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setMinText(java.lang.String minText) throws LockException, RespondentsExistException, SurveySecurityException, SurveySystemException
minText
- the minimum text
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 setMaxText(java.lang.String maxText) throws LockException, RespondentsExistException, SurveySecurityException, SurveySystemException
maxText
- the maximum text
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 setRatingLevel(int ratingLevel) throws LockException, RespondentsExistException, SurveySecurityException, SurveySystemException
ratingLevel
- The rating level
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 setRatingStartLevel(int ratingStartLevel) throws LockException, RespondentsExistException, SurveySecurityException, SurveySystemException
ratingStartLevel
- The rating start level
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 setShowNA(boolean showNA) throws LockException, RespondentsExistException, SurveySecurityException, SurveySystemException
showNA
- true if N/A field is used
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 setNALabel(java.lang.String NALabel) throws LockException, RespondentsExistException, SurveySecurityException, SurveySystemException
NALabel
- The label for the N/A field
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 java.lang.String getMinText() throws SurveySystemException
SurveySystemException
- If an error occurs in the system.public java.lang.String getMaxText() throws SurveySystemException
SurveySystemException
- If an error occurs in the system.public int getRatingLevel() throws SurveySystemException
SurveySystemException
- If an error occurs in the system.public int getRatingStartLevel() throws SurveySystemException
SurveySystemException
- If an error occurs in the system.public boolean getShowNA() throws SurveySystemException
SurveySystemException
- If an error occurs in the system.public java.lang.String getNALabel() 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 |