public class DateTimePickerControl extends DataBoundControl
ButtonControl
Modifier and Type | Field and Description |
---|---|
protected String |
dateFormat |
protected String |
defaultDateFormat |
protected String |
defaultTimeFormat |
protected SimpleDateFormat |
sdfDate |
protected SimpleDateFormat |
sdfDateTime |
protected SimpleDateFormat |
sdfDay |
protected SimpleDateFormat |
sdfHour |
protected SimpleDateFormat |
sdfMinute |
protected SimpleDateFormat |
sdfMonth |
protected SimpleDateFormat |
sdfTime |
protected SimpleDateFormat |
sdfYear |
protected String |
timeFormat |
FORCE_CASE_LOWER, FORCE_CASE_NONE, FORCE_CASE_UPPER, forceCase, requestParameterName, UNKNOWN_DATA_TYPE, value, valuePreviouslySet
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 and Description |
---|
DateTimePickerControl() |
Modifier and Type | Method and Description |
---|---|
void |
buildSubControls() |
protected boolean |
fixedIdentifierRequired() |
IResource |
getControlResource() |
protected Object |
getParameterValue(String parameterName)
Returns the value for this control, reading from request the parameters
based on the specified name.
|
IDataControlRequestHelpDefinition |
getRequestHelpDefinition()
Returns the request parameters help definition.
|
protected Map<String,String> |
getStringsToLocalize() |
protected Class<? extends Date> |
getValueClass()
Returns the class the possible values of this control are assignable to.
|
void |
init(Node controlDefinitionNode,
ControlContainer controlContainer,
IControl parentControl) |
void |
setRenderData() |
autoAddDateTimeValueValidator, autoAddDoubleValueValidator, autoAddFileSizeValidator, autoAddIntegerValueValidator, autoAddLengthValidator, autoAddLongValueValidator, autoAddRequiredValueValidator, autoAddValidators, createConverter, createDataType, getDataId, getFieldName, getProcessActionHandlerParameterName, getReload, getRuntimeDefaultSource, getSource, getSourceById, getSourceContext, getUnboundedConverter, loadFromRequest, setDefaultValue, setRawValue, setReload, setSourceParameter, setValid, setValueFromSource, setValueFromSource, update
convertValueToControlValue, getConverter, getDataType, getDefaultValue, getProcessActionIds, getRequestParameterName, getValue, getValue, initProcessActionIds, isTrim, loadSubControlFromRequest, loadSubControlsFromRequest, setProcessActionHandlerParameter, setProcessActionHandlerParameter, setProcessActionHandlerParameters, setSourceParameter, setSourceParameters, setTrim, setValue, valueIsArray
appendSubControl, appendSubControls, applyOnEventScripts, convertToStandardValue, createContainer, disconnect, generateControlId, generateControlIdPrefix, getAdditionalParameters, getAdditionalParameters, getAncestor, getChildControls, getClientEventHandlerScript, getId, getLocale, getName, getNamespace, getParentControl, getPrepareForReadScript, getRenderData, getResources, getScriptActionValidation, getType, getValidationScript, getWindowProperties, getWindowProperties, isRequired, isValid, localize, localizeStrings, processCustomTags, registerOnEventScript, removeChild, removeChildren, resolveVariable, setName, setRuntimeAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConverter, getProcessActionIds, getValue, getValue, setProcessActionHandlerParameters, setValue
createContainer, disconnect, getChildControls, getId, getName, getParentControl, getPrepareForReadScript, getRenderData, getResources, getType, isValid, registerOnEventScript, removeChild, removeChildren, setRuntimeAttributes
getResources
protected String defaultDateFormat
protected String defaultTimeFormat
protected String dateFormat
protected String timeFormat
protected SimpleDateFormat sdfDateTime
protected SimpleDateFormat sdfDate
protected SimpleDateFormat sdfTime
protected SimpleDateFormat sdfDay
protected SimpleDateFormat sdfMonth
protected SimpleDateFormat sdfYear
protected SimpleDateFormat sdfHour
protected SimpleDateFormat sdfMinute
protected Class<? extends Date> getValueClass() throws PortalException
DataControl
This default implementation uses IDouiDataType.getValueClass()
of the data type of this control.
getValueClass
in class DataControl
PortalException
public void init(Node controlDefinitionNode, ControlContainer controlContainer, IControl parentControl) throws PortalException
init
in interface IControl
init
in class DataBoundControl
PortalException
protected boolean fixedIdentifierRequired()
fixedIdentifierRequired
in class Control
protected Object getParameterValue(String parameterName) throws PortalException
DataControl
DataControl.loadFromRequest()
calls this method when necessary,
to read the value to be set in the control.
getParameterValue
in class DataControl
parameterName
- the parameter name where the value is to be read from.
For controls that require multiple request parameters,
it is recommended to use the control's identifier as a prefix to
its parameter names during render, and then can implement this method
as using the given parameter name as the prefix.PortalException
public void setRenderData() throws PortalException
setRenderData
in interface IControl
setRenderData
in class DataBoundControl
PortalException
public void buildSubControls() throws PortalException
buildSubControls
in interface IControl
buildSubControls
in class DataBoundControl
PortalException
protected Map<String,String> getStringsToLocalize()
getStringsToLocalize
in class Control
public IResource getControlResource() throws PortalException
getControlResource
in interface IControl
getControlResource
in class Control
PortalException
public IDataControlRequestHelpDefinition getRequestHelpDefinition() throws PortalException
IDataControl
getRequestHelpDefinition
in interface IDataControl
getRequestHelpDefinition
in class DataBoundControl
PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.