Package org.kuali.rice.krad.web.form
Class DialogResponse
java.lang.Object
org.kuali.rice.krad.web.form.DialogResponse
- All Implemented Interfaces:
Serializable
Holds response data for a basic dialog that has been triggered from a server call.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDialogResponse(String dialogId, String response, String explanation) Constructor taking dialog id, response, and explanation. -
Method Summary
Modifier and TypeMethodDescriptionId for the dialog whose response has been captured.If the dialog contained an explanation field that binds to the generic form property, the value (if any) given by the user.String response for the dialog action (button) that was chosen.booleanReturns the response for the dialog as a boolean.voidsetDialogId(String dialogId) voidsetExplanation(String explanation) voidsetResponse(String response)
-
Field Details
-
TRUE_VALUES
- See Also:
-
-
Constructor Details
-
DialogResponse
public DialogResponse() -
DialogResponse
Constructor taking dialog id, response, and explanation.
-
-
Method Details
-
getDialogId
Id for the dialog whose response has been captured.- Returns:
- dialog id
-
setDialogId
- See Also:
-
getResponse
String response for the dialog action (button) that was chosen.- Returns:
- String dialog response
-
getResponseAsBoolean
public boolean getResponseAsBoolean()Returns the response for the dialog as a boolean.- Returns:
- boolean dialog response
- See Also:
-
setResponse
- See Also:
-
getExplanation
If the dialog contained an explanation field that binds to the generic form property, the value (if any) given by the user.Note if the explanation field was found to a different model property, its contents will not be available here. It should be retrieved from the corresponding model property.
- Returns:
- string explanation value
-
setExplanation
- See Also:
-