Package lumis.doui.control
Class ErrorSummaryControl
- java.lang.Object
-
- lumis.doui.control.Control
-
- lumis.doui.control.DataControl
-
- lumis.doui.control.ErrorSummaryControl
-
- All Implemented Interfaces:
javax.servlet.jsp.el.VariableResolver
,IControl
,IDataControl
,IErrorSummaryControl
,IRenderer
public class ErrorSummaryControl extends DataControl implements IErrorSummaryControl
Control that renders the error message to the end user- Since:
- 4.0.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
-
Fields inherited from class lumis.doui.control.DataControl
FORCE_CASE_LOWER, FORCE_CASE_NONE, FORCE_CASE_UPPER, forceCase, requestParameterName, UNKNOWN_DATA_TYPE, value, valuePreviouslySet
-
Fields inherited from class lumis.doui.control.Control
childControls, controlContainer, controlDefinitionNode, controlResource, douiContext, hasValidatorSubControls, isValid, locale, ON_EVENT_CLOSE_WINDOW, ON_EVENT_LINK, ON_EVENT_POPUP_LINK_OR_RUNTIME_INTERFACE, ON_EVENT_POPUP_RUNTIME_INTERFACE, ON_EVENT_PROCESS_ACTION, ON_EVENT_RENDER_ACTION, ON_EVENT_REPLACE_INTERFACE, ON_EVENT_SCRIPT, ON_EVENT_VALIDATE, onEventScripts, PARAMETER_TYPE_FIRST_SELECTED, PARAMETER_TYPE_GET_VALUE, parentControl, resources, type, VALIDATION_SELECTED_MANY, VALIDATION_SELECTED_ONE
-
-
Constructor Summary
Constructors Constructor Description ErrorSummaryControl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addErrorMessage(java.lang.String errorMessage)
Add an error message on the server side.IDataControlRequestHelpDefinition
getRequestHelpDefinition()
Returns the request parameters help definition.java.lang.String
getScriptAddErrorMessage(java.lang.String errorMessage)
Returns the script that will add the given message to the error message list on the client side.java.lang.String
getScriptClear()
Returns the script that will clear the error summaryjava.lang.String
getScriptShow()
Returns a client side script that shows the error summaryvoid
init(org.w3c.dom.Node controlDefinitionNode, ControlContainer controlContainer, IControl parentControl)
void
loadFromRequest()
void
setRenderData()
-
Methods inherited from class lumis.doui.control.DataControl
convertValueToControlValue, createConverter, createDataType, getConverter, getDataType, getDefaultValue, getParameterValue, getProcessActionHandlerParameterName, getProcessActionIds, getRequestParameterName, getValue, getValue, getValueClass, initProcessActionIds, isTrim, loadSubControlFromRequest, loadSubControlsFromRequest, setDefaultValue, setProcessActionHandlerParameter, setProcessActionHandlerParameter, setProcessActionHandlerParameters, setRawValue, setSourceParameter, setSourceParameter, setSourceParameters, setTrim, setValue, valueIsArray
-
Methods inherited from class lumis.doui.control.Control
appendSubControl, appendSubControls, applyOnEventScripts, buildSubControls, convertToStandardValue, createContainer, disconnect, fixedIdentifierRequired, generateControlId, generateControlIdPrefix, getAdditionalParameters, getAdditionalParameters, getAncestor, getChildControls, getClientEventHandlerScript, getControlResource, getId, getLocale, getName, getNamespace, getParentControl, getPrepareForReadScript, getRenderData, getResources, getRuntimeDefaultSource, getScriptActionValidation, getSourceContext, getStringsToLocalize, getType, getValidationScript, getWindowProperties, getWindowProperties, isRequired, isValid, localize, localizeStrings, processCustomTags, registerOnEventScript, removeChild, removeChildren, resolveVariable, setName, setRuntimeAttributes, setValid
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.doui.control.IControl
buildSubControls, createContainer, disconnect, getChildControls, getControlResource, getId, getName, getParentControl, getPrepareForReadScript, getRenderData, getResources, getType, isValid, registerOnEventScript, removeChild, removeChildren, setRuntimeAttributes, setValid
-
Methods inherited from interface lumis.doui.render.IRenderer
getResources, getSourceContext
-
-
-
-
Constructor Detail
-
ErrorSummaryControl
public ErrorSummaryControl() throws PortalException
- Throws:
PortalException
-
-
Method Detail
-
getScriptShow
public java.lang.String getScriptShow() throws PortalException
Description copied from interface:IErrorSummaryControl
Returns a client side script that shows the error summary- Specified by:
getScriptShow
in interfaceIErrorSummaryControl
- Returns:
- a String.
- Throws:
PortalException
-
getScriptAddErrorMessage
public java.lang.String getScriptAddErrorMessage(java.lang.String errorMessage) throws PortalException
Description copied from interface:IErrorSummaryControl
Returns the script that will add the given message to the error message list on the client side.- Specified by:
getScriptAddErrorMessage
in interfaceIErrorSummaryControl
- Returns:
- a String.
- Throws:
PortalException
-
getScriptClear
public java.lang.String getScriptClear() throws PortalException
Description copied from interface:IErrorSummaryControl
Returns the script that will clear the error summary- Specified by:
getScriptClear
in interfaceIErrorSummaryControl
- Returns:
- a String.
- Throws:
PortalException
-
addErrorMessage
public void addErrorMessage(java.lang.String errorMessage) throws PortalException
Description copied from interface:IErrorSummaryControl
Add an error message on the server side.- Specified by:
addErrorMessage
in interfaceIErrorSummaryControl
- Throws:
PortalException
-
setRenderData
public void setRenderData() throws PortalException
- Specified by:
setRenderData
in interfaceIControl
- Overrides:
setRenderData
in classControl
- Throws:
PortalException
-
loadFromRequest
public void loadFromRequest() throws PortalException
- Specified by:
loadFromRequest
in interfaceIDataControl
- Overrides:
loadFromRequest
in classDataControl
- Throws:
PortalException
-
init
public void init(org.w3c.dom.Node controlDefinitionNode, ControlContainer controlContainer, IControl parentControl) throws PortalException
- Specified by:
init
in interfaceIControl
- Overrides:
init
in classDataControl
- Throws:
PortalException
-
getRequestHelpDefinition
public IDataControlRequestHelpDefinition getRequestHelpDefinition() throws PortalException
Description copied from interface:IDataControl
Returns the request parameters help definition. Used in process action REST API help. Must not return null.- Specified by:
getRequestHelpDefinition
in interfaceIDataControl
- Returns:
- the request parameters help definition. Used in process action REST API help. Must not return null.
- Throws:
PortalException
-
-