|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.doui.control.Control lumis.doui.control.DataControl lumis.doui.control.DataBoundControl<S>
S
- the source class for this control.@StableMinor(version="5.5", sinceVersion="4.0") public abstract class DataBoundControl<S extends Source>
Control whose data is bound to a source.
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 |
Constructor Summary | |
---|---|
DataBoundControl()
|
Method Summary | |
---|---|
protected void |
autoAddDateTimeValueValidator()
Deprecated. may be removed in the future |
protected void |
autoAddDoubleValueValidator()
Deprecated. may be removed in the future. |
protected void |
autoAddFileSizeValidator()
Deprecated. may be removed in the future |
protected void |
autoAddIntegerValueValidator()
Deprecated. may be removed in the future. |
protected void |
autoAddLengthValidator()
Deprecated. may be removed in the future |
protected void |
autoAddLongValueValidator()
Deprecated. may be removed in the future. |
protected void |
autoAddRequiredValueValidator()
Deprecated. may be removed in the future |
protected void |
autoAddValidators()
|
void |
buildSubControls()
|
protected IConverter |
createConverter()
Creates the converter instance for this control. |
protected IDouiDataType |
createDataType()
Creates the data type to be used for this control. |
String |
getDataId()
Returns the fieldId of the source that the data bound control is associated to |
String |
getFieldName()
Returns the field name that the data control is associated to. |
protected String |
getProcessActionHandlerParameterName()
Define the name of the process action parameter to be set. |
protected boolean |
getReload()
|
protected Source |
getRuntimeDefaultSource()
Returns default source to use in the context of the current control when evaluating runtime attributes. |
S |
getSource()
Returns the source object that the current control is associated to |
protected S |
getSourceById(String sourceId)
|
protected IConverter |
getUnboundedConverter()
Deprecated. Since 4.0.10, this method is not used anymore. For best backward compatibility, this implementation delegates to dataType 's IDouiDataType.getConverter() . |
void |
init(Node controlDefinitionNode,
ControlContainer controlContainer,
IControl parentControl)
|
void |
loadFromRequest()
|
protected void |
setDefaultValue()
|
protected void |
setRawValue(Object value)
Sets directly the value in this control. |
void |
setReload(boolean reload)
Sets the reload flag in the control. |
void |
setRenderData()
|
protected void |
setSourceParameter(Source source,
String parameterName)
|
protected void |
setSourceParameters()
|
protected boolean |
setsSourceParameters()
Deprecated. Since 4.2.0, this method is no longer used and may be removed in a future version. |
void |
setValid(boolean isValid)
|
protected void |
setValueFromSource()
|
protected void |
setValueFromSource(S source)
Reads the value corresponding to the current control from the control source. |
void |
update(Observable src,
Object args)
|
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.IDataControl |
---|
getConverter, getProcessActionIds, getValue, getValue, setProcessActionHandlerParameters, setValue |
Methods inherited from interface lumis.doui.control.IControl |
---|
createContainer, disconnect, getChildControls, getControlResource, getId, getParentControl, getPrepareForReadScript, getRenderData, getResources, getType, isValid, registerOnEventScript, removeChild, removeChildren, setRuntimeAttributes |
Methods inherited from interface lumis.doui.render.IRenderer |
---|
getResources, getSourceContext |
Constructor Detail |
---|
public DataBoundControl()
Method Detail |
---|
public void init(Node controlDefinitionNode, ControlContainer controlContainer, IControl parentControl) throws PortalException
init
in interface IControl
init
in class DataControl
PortalException
protected IDouiDataType createDataType() throws PortalException
For a data bound control, if no data type was specified in the control definition, the data type of its associated source field will be used, if any.
createDataType
in class DataControl
PortalException
protected IConverter createConverter() throws PortalException
DataControl
createConverter
in class DataControl
PortalException
protected void setDefaultValue() throws PortalException
setDefaultValue
in class DataControl
PortalException
public void update(Observable src, Object args)
update
in interface Observer
protected void setSourceParameters() throws PortalException
PortalException
@Deprecated protected boolean setsSourceParameters() throws PortalException
PortalException
protected IConverter getUnboundedConverter() throws PortalException
dataType
's IDouiDataType.getConverter()
.
PortalException
createDataType()
,
createConverter()
,
DataControl.getConverter()
protected void setSourceParameter(Source source, String parameterName) throws PortalException
PortalException
protected void setValueFromSource() throws PortalException
PortalException
protected void setValueFromSource(S source) throws PortalException
source
-
PortalException
public S getSource() throws PortalException
IDataBoundControl
getSource
in interface IDataBoundControl
PortalException
protected S getSourceById(String sourceId) throws PortalException
PortalException
protected boolean getReload()
public void setReload(boolean reload) throws PortalException
IDataBoundControl
setReload
in interface IDataBoundControl
reload
- The reload to set.
PortalException
public String getDataId() throws PortalException
IDataBoundControl
getDataId
in interface IDataBoundControl
PortalException
public String getFieldName() throws PortalException
getFieldName
in interface IDataBoundControl
PortalException
public void loadFromRequest() throws PortalException
loadFromRequest
in interface IDataControl
loadFromRequest
in class DataControl
PortalException
protected Source getRuntimeDefaultSource()
Control
getRuntimeDefaultSource
in class Control
public void setRenderData() throws PortalException
setRenderData
in interface IControl
setRenderData
in class Control
PortalException
protected void setRawValue(Object value) throws PortalException
The value is set only if it differs of a previously set value. After
the value is set in this control, the source parameters are set
by calling setSourceParameters()
.
setRawValue
in class DataControl
value
- the value to set.
PortalException
DataControl.valuePreviouslySet
public void setValid(boolean isValid) throws PortalException
setValid
in interface IControl
setValid
in class Control
isValid
- The isValid to set.
PortalException
protected String getProcessActionHandlerParameterName() throws PortalException
getProcessActionHandlerParameterName
in class DataControl
PortalException
public void buildSubControls() throws PortalException
buildSubControls
in interface IControl
buildSubControls
in class Control
PortalException
protected void autoAddValidators() throws PortalException
PortalException
protected void autoAddRequiredValueValidator() throws PortalException
PortalException
protected void autoAddIntegerValueValidator() throws PortalException
PortalException
protected void autoAddLongValueValidator() throws PortalException
PortalException
protected void autoAddDoubleValueValidator() throws PortalException
PortalException
protected void autoAddDateTimeValueValidator() throws PortalException
PortalException
protected void autoAddLengthValidator() throws PortalException
PortalException
protected void autoAddFileSizeValidator() throws PortalException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |