com.objectplanet.survey.event.events
Class ResponseEvent

java.lang.Object
  extended by com.objectplanet.survey.event.Event
      extended by com.objectplanet.survey.event.events.SurveyEvent
          extended by com.objectplanet.survey.event.events.ResponseEvent

public class ResponseEvent
extends SurveyEvent

Represents an event that is fired when a new response is created, after the response has been responded to and the object has been populated. This gives the plugin designer the ability to do validation on the question responses, for example.

Author:
Torgeir Lund
Created:
16 November 2005

Nested Class Summary
 
Nested classes/interfaces inherited from class com.objectplanet.survey.event.Event
Event.NonVetoable
 
Constructor Summary
ResponseEvent(IEventListener source)
          Creates a new event.
 
Method Summary
 int getQuestionNo()
          Gets the questionNo attribute of the ResponseBeforePopulateEvent object
 long getRespondentId()
          Gets the respondentId attribute of the RespondentCompleteEvent object
 void setQuestionNo(int questionNo)
          Sets the questionNo attribute of the ResponseBeforePopulateEvent object
 void setRespondentId(long respondentId)
          Sets the respondentId attribute of the RespondentCompleteEvent object
 
Methods inherited from class com.objectplanet.survey.event.events.SurveyEvent
getSurveyId, setSurveyId
 
Methods inherited from class com.objectplanet.survey.event.Event
getSource, isVetoed, paramString, toString, veto
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResponseEvent

public ResponseEvent(IEventListener source)
Creates a new event.

Parameters:
source - The event source
Method Detail

setRespondentId

public void setRespondentId(long respondentId)
Sets the respondentId attribute of the RespondentCompleteEvent object

Parameters:
respondentId - The new respondentId value

getRespondentId

public long getRespondentId()
Gets the respondentId attribute of the RespondentCompleteEvent object

Returns:
The respondentId value

setQuestionNo

public void setQuestionNo(int questionNo)
Sets the questionNo attribute of the ResponseBeforePopulateEvent object

Parameters:
questionNo - The new questionNo value

getQuestionNo

public int getQuestionNo()
Gets the questionNo attribute of the ResponseBeforePopulateEvent object

Returns:
The questionNo value

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016