|
Gaia 2011.2 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecteu.beesoft.gaia.app.AbstractRequestResponse
eu.beesoft.gaia.app.ApplicationResponse
public class ApplicationResponse
Application response from an application server to a client. It supports these properties:
| Constructor Summary | |
|---|---|
ApplicationResponse()
Creates a new instance of application response. |
|
| Method Summary | |
|---|---|
void |
addValidationError(java.lang.Object source,
java.lang.String message)
Adds an error from a form validation to the response parameters. |
void |
disableComponent(java.lang.String id)
Adds a given component id to the response parameters as id of disabled component. |
java.util.List<java.lang.String> |
getDisabledComponents()
Returns the parameter that keeps list of disabled components ids. |
java.lang.String |
getFormId()
Returns the form id. |
java.util.List<java.lang.String> |
getHiddenComponents()
Returns the parameter that keeps list of hidden components ids. |
java.lang.String |
getInstruction()
Returns the instruction. |
ValidationResult |
getValidationErrors()
Returns the parameter that keeps result of validations. |
void |
hideComponent(java.lang.String id)
Adds a given component id to the response parameters as id of hidden component. |
void |
setFormId(java.lang.String formId)
Sets the form id. |
void |
setInstruction(java.lang.String instruction)
Sets the instruction |
| Methods inherited from class eu.beesoft.gaia.app.AbstractRequestResponse |
|---|
addParameter, getData, getParameter, getParameters, removeParameter, setData, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationResponse()
| Method Detail |
|---|
public java.lang.String getInstruction()
public void setInstruction(java.lang.String instruction)
instruction - - the instruction to setpublic java.lang.String getFormId()
public void setFormId(java.lang.String formId)
formId - - the formId to setpublic void hideComponent(java.lang.String id)
id - - id of component to hidepublic java.util.List<java.lang.String> getHiddenComponents()
hideComponent(String).
public void disableComponent(java.lang.String id)
id - - id of component to disablepublic java.util.List<java.lang.String> getDisabledComponents()
disableComponent(String).
public void addValidationError(java.lang.Object source,
java.lang.String message)
source - - source component where validation fails; id of the component
label or id of the component, if there is no label for
validated componentmessage - - message to display as validation error; you should use here
a key to the resource bundlepublic ValidationResult getValidationErrors()
addValidationError(Object, String).
|
Gaia 2011.2 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||