com.objectplanet.survey.plugin.api
Class ResponseDropdown

java.lang.Object
  extended by com.objectplanet.survey.plugin.api.Response
      extended by com.objectplanet.survey.plugin.api.ResponseDropdown

public class ResponseDropdown
extends Response

Represents a response to the dropdown question. Response to a dropdown question is an array of Strings with selected values.

Author:
Irina Brun

Method Summary
 void clearSelectedValue()
          Clear the selected values
 void deleteSelectedValue(java.lang.String value)
          Deletes the chosen item.
 java.util.ArrayList getSelectedValues()
          Gets the selected values.
 void keepBusinessObject()
          Get and keep business object.
 void releaseBusinessObject()
          Release business object.
 void setSelectedValue(java.lang.String value)
          Sets the chosen item (if more than one - set one by one)
 
Methods inherited from class com.objectplanet.survey.plugin.api.Response
deleteEssayResponse, deleteIntextResponse, getErrorMessage, getErrorMessage, getEssayResponse, getFreeText, getIntextResponse, getQuestionNo, getRespondentId, getResponseDate, hasBusinessObject, isPersisted, isValid, isValid, setEssayResponse, setFreeText, setIntextResponse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setSelectedValue

public void setSelectedValue(java.lang.String value)
                      throws SurveySystemException
Sets the chosen item (if more than one - set one by one)

Parameters:
value - The new item value
Throws:
SurveySystemException - If an error occurs in the system.

getSelectedValues

public java.util.ArrayList getSelectedValues()
                                      throws SurveySystemException
Gets the selected values. Return ArrayList of Strings.

Returns:
The selected values
Throws:
SurveySystemException - If an error occurs in the system.

clearSelectedValue

public void clearSelectedValue()
                        throws SurveySystemException
Clear the selected values

Throws:
SurveySystemException - If an error occurs in the system.

deleteSelectedValue

public void deleteSelectedValue(java.lang.String value)
                         throws SurveySystemException
Deletes the chosen item.

Parameters:
value - The item value.
Throws:
SurveySystemException - If an error occurs in the system.

keepBusinessObject

public void keepBusinessObject()
                        throws SurveySystemException
Get and keep business object. See ATTENTION .

Overrides:
keepBusinessObject in class Response
Throws:
SurveySystemException - If an error occurs in the system.

releaseBusinessObject

public void releaseBusinessObject()
Release business object. See ATTENTION .

Overrides:
releaseBusinessObject in class Response

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016