Class DateTimeFormElement
java.lang.Object
com.foreach.across.modules.web.ui.elements.ContainerViewElement
com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
com.foreach.across.modules.bootstrapui.elements.InputGroupFormElement
com.foreach.across.modules.bootstrapui.elements.DateTimeFormElement
- All Implemented Interfaces:
ConfigurablePlaceholderText
,FormControlElement
,FormControlElement.Proxy
,FormInputElement
,com.foreach.across.modules.web.ui.elements.HtmlViewElement
,com.foreach.across.modules.web.ui.MutableViewElement
,com.foreach.across.modules.web.ui.ViewElement
Extension of an
InputGroupFormElement
that represents a date/time picker.
By default this is an input group with a calendar icon after the control element,
and a TextboxFormElement
as control.- Author:
- Arne Vandamme
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.foreach.across.modules.bootstrapui.elements.FormControlElement
FormControlElement.Proxy
Nested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
com.foreach.across.modules.web.ui.elements.HtmlViewElement.Functions
Nested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.MutableViewElement
com.foreach.across.modules.web.ui.MutableViewElement.Functions
Nested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.ViewElement
com.foreach.across.modules.web.ui.ViewElement.Wither<T extends com.foreach.across.modules.web.ui.ViewElement>, com.foreach.across.modules.web.ui.ViewElement.WitherGetter<T extends com.foreach.across.modules.web.ui.ViewElement,
U extends Object>, com.foreach.across.modules.web.ui.ViewElement.WitherRemover<T extends com.foreach.across.modules.web.ui.ViewElement>, com.foreach.across.modules.web.ui.ViewElement.WitherSetter<T extends com.foreach.across.modules.web.ui.ViewElement> -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com.foreach.across.modules.web.ui.elements.ContainerViewElement
ELEMENT_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttributes
(Map<String, Object> attributes) addChild
(com.foreach.across.modules.web.ui.ViewElement element) addChildren
(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements) addCssClass
(String... cssClass) addFirstChild
(com.foreach.across.modules.web.ui.ViewElement element) <U extends com.foreach.across.modules.web.ui.ViewElement>
DateTimeFormElementapplyUnsafe
(Consumer<U> consumer) List<com.foreach.across.modules.web.ui.ViewElement>
getValue()
Deprecated.remove
(com.foreach.across.modules.web.ui.ViewElement.WitherRemover... functions) removeAttribute
(String attributeName) removeCssClass
(String... cssClass) set
(com.foreach.across.modules.web.ui.ViewElement.WitherSetter... setters) setAppend
(com.foreach.across.modules.web.ui.ViewElement append) setAttribute
(String attributeName, Object attributeValue) setAttributes
(Map<String, Object> attributes) void
setConfiguration
(@NonNull DateTimeFormElementConfiguration configuration) setControl
(com.foreach.across.modules.web.ui.ViewElement control) setControlName
(String controlName) setCustomTemplate
(String customTemplate) setDisabled
(boolean disabled) protected DateTimeFormElement
setElementType
(String elementType) setLocalDate
(LocalDate value) setLocalDateTime
(LocalDateTime value) setLocalTime
(LocalTime value) setPlaceholder
(String placeholder) setPrepend
(com.foreach.across.modules.web.ui.ViewElement prepend) setReadonly
(boolean readonly) setRequired
(boolean required) protected DateTimeFormElement
setTagName
(String tagName) Deprecated.Methods inherited from class com.foreach.across.modules.bootstrapui.elements.InputGroupFormElement
append, control, getAppend, getAppend, getControl, getControl, getPlaceholder, getPrepend, getPrepend, hasChildren, isDisabled, isReadonly, isRequired, prepend, setHtmlId
Methods inherited from class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
get, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, returnIfType
Methods inherited from class com.foreach.across.modules.web.ui.elements.ContainerViewElement
elementStream, find, find, findAll, findAll, findAll, findOrSelf, findOrSelf, flatStream, getCustomTemplate, getElementType, getName, removeAllFromTree, removeChild, removeFromTree, removeFromTree
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass
Methods inherited from interface com.foreach.across.modules.web.ui.ViewElement
get, getCustomTemplate, getElementType, getName, matches
-
Field Details
-
ATTRIBUTE_DATA_DATEPICKER
- See Also:
-
ATTRIBUTE_DATA_TARGET
- See Also:
-
ATTRIBUTE_DATA_TOGGLE
- See Also:
-
ATTRIBUTE_DATA_TARGET_INPUT
- See Also:
-
CSS_JS_CONTROL
- See Also:
-
CSS_DATE
- See Also:
-
CSS_DATETIMEPICKER_INPUT
- See Also:
-
-
Constructor Details
-
DateTimeFormElement
public DateTimeFormElement()
-
-
Method Details
-
getConfiguration
-
setConfiguration
-
getControlName
- Specified by:
getControlName
in interfaceFormInputElement
- Overrides:
getControlName
in classInputGroupFormElement
-
setControlName
- Specified by:
setControlName
in interfaceFormInputElement
- Overrides:
setControlName
in classInputGroupFormElement
-
getValue
Deprecated. -
setValue
Deprecated. -
setLocalDate
-
getLocalDate
-
setLocalTime
-
getLocalTime
-
setLocalDateTime
-
getLocalDateTime
-
getChildren
- Overrides:
getChildren
in classInputGroupFormElement
-
setPrepend
- Overrides:
setPrepend
in classInputGroupFormElement
- Returns:
this
.
-
setAppend
- Overrides:
setAppend
in classInputGroupFormElement
- Returns:
this
.
-
setControl
- Overrides:
setControl
in classInputGroupFormElement
- Returns:
this
.
-
setPlaceholder
- Specified by:
setPlaceholder
in interfaceConfigurablePlaceholderText
- Overrides:
setPlaceholder
in classInputGroupFormElement
-
setDisabled
- Specified by:
setDisabled
in interfaceFormInputElement
- Overrides:
setDisabled
in classInputGroupFormElement
-
setReadonly
- Specified by:
setReadonly
in interfaceFormControlElement
- Overrides:
setReadonly
in classInputGroupFormElement
-
setRequired
- Specified by:
setRequired
in interfaceFormControlElement
- Overrides:
setRequired
in classInputGroupFormElement
-
addCssClass
- Specified by:
addCssClass
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Overrides:
addCssClass
in classInputGroupFormElement
-
removeCssClass
- Specified by:
removeCssClass
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Overrides:
removeCssClass
in classInputGroupFormElement
-
setAttributes
- Specified by:
setAttributes
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Overrides:
setAttributes
in classInputGroupFormElement
-
setAttribute
- Specified by:
setAttribute
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Overrides:
setAttribute
in classInputGroupFormElement
-
addAttributes
- Specified by:
addAttributes
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Overrides:
addAttributes
in classInputGroupFormElement
-
removeAttribute
- Specified by:
removeAttribute
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Overrides:
removeAttribute
in classInputGroupFormElement
-
setName
- Specified by:
setName
in interfacecom.foreach.across.modules.web.ui.MutableViewElement
- Overrides:
setName
in classInputGroupFormElement
-
setCustomTemplate
- Specified by:
setCustomTemplate
in interfacecom.foreach.across.modules.web.ui.MutableViewElement
- Overrides:
setCustomTemplate
in classInputGroupFormElement
-
setElementType
- Overrides:
setElementType
in classInputGroupFormElement
-
addChild
- Overrides:
addChild
in classInputGroupFormElement
-
addChildren
public DateTimeFormElement addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements) - Overrides:
addChildren
in classInputGroupFormElement
-
addFirstChild
- Overrides:
addFirstChild
in classInputGroupFormElement
-
clearChildren
- Overrides:
clearChildren
in classInputGroupFormElement
-
apply
public DateTimeFormElement apply(Consumer<com.foreach.across.modules.web.ui.elements.ContainerViewElement> consumer) - Overrides:
apply
in classInputGroupFormElement
-
applyUnsafe
public <U extends com.foreach.across.modules.web.ui.ViewElement> DateTimeFormElement applyUnsafe(Consumer<U> consumer) - Overrides:
applyUnsafe
in classInputGroupFormElement
-
setTagName
- Overrides:
setTagName
in classInputGroupFormElement
-
set
public DateTimeFormElement set(com.foreach.across.modules.web.ui.ViewElement.WitherSetter... setters) - Specified by:
set
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Specified by:
set
in interfacecom.foreach.across.modules.web.ui.MutableViewElement
- Specified by:
set
in interfacecom.foreach.across.modules.web.ui.ViewElement
- Overrides:
set
in classInputGroupFormElement
-
remove
public DateTimeFormElement remove(com.foreach.across.modules.web.ui.ViewElement.WitherRemover... functions) - Specified by:
remove
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Specified by:
remove
in interfacecom.foreach.across.modules.web.ui.MutableViewElement
- Specified by:
remove
in interfacecom.foreach.across.modules.web.ui.ViewElement
- Overrides:
remove
in classInputGroupFormElement
-