|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrsvp.controller.ResponseController
public class ResponseController
A ResponseController mediates interactions between the view layer and a particular Response.
rsvp.model.Reponse| Constructor Summary | |
|---|---|
ResponseController(ResponseInterface response)
Constructs a new ResponseController to act as a proxy to a given Response object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getComment()
Returns this respondent's comment. |
java.lang.String |
getDisplayEmail()
Returns a displayable (i.e. |
java.lang.String |
getStatus()
Returns "yes", "no", or "maybe", depending on the status of the controlled response. |
void |
updateComment(java.lang.String comment,
java.lang.String email)
Updates the comment of the controlled Response. |
void |
updateStatus(int status,
java.lang.String email)
Updates the status of the controlled Response. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResponseController(ResponseInterface response)
Precondition: response must be non-null.
response - | Method Detail |
|---|
public java.lang.String getStatus()
ResponseControllerInterface
getStatus in interface ResponseControllerInterfacepublic java.lang.String getComment()
ResponseControllerInterface
getComment in interface ResponseControllerInterfacepublic java.lang.String getDisplayEmail()
ResponseControllerInterface
getDisplayEmail in interface ResponseControllerInterface
public void updateStatus(int status,
java.lang.String email)
ResponseControllerInterface
updateStatus in interface ResponseControllerInterfacestatus - the new status. Must be either Response.YES, Response.NO, or Response.MAYBE.email - an email address, which must match the email address of this respondent
public void updateComment(java.lang.String comment,
java.lang.String email)
ResponseControllerInterface
updateComment in interface ResponseControllerInterfacecomment - the new commentemail - an email address, which must match the email address of this respondent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||