public class DateTimeFormElement extends InputGroupFormElement
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.FormControlElement.Proxycom.foreach.across.modules.web.ui.elements.HtmlViewElement.Functionscom.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>, 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>| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_DATA_DATEPICKER |
static String |
ATTRIBUTE_DATA_TARGET |
static String |
ATTRIBUTE_DATA_TARGET_INPUT |
static String |
ATTRIBUTE_DATA_TOGGLE |
static String |
CSS_DATE |
static String |
CSS_DATETIMEPICKER_INPUT |
static String |
CSS_JS_CONTROL |
| Constructor and Description |
|---|
DateTimeFormElement() |
append, control, getAppend, getControl, getPlaceholder, getPrepend, hasChildren, isDisabled, isReadonly, isRequired, prepend, setHtmlIdget, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, returnIfTypeelementStream, find, find, findAll, findAll, findAll, findOrSelf, findOrSelf, flatStream, getCustomTemplate, getElementType, getName, removeAllFromTree, removeChild, removeFromTree, removeFromTreeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetControlpublic static final String ATTRIBUTE_DATA_DATEPICKER
public static final String ATTRIBUTE_DATA_TARGET
public static final String ATTRIBUTE_DATA_TOGGLE
public static final String ATTRIBUTE_DATA_TARGET_INPUT
public static final String CSS_JS_CONTROL
public static final String CSS_DATE
public static final String CSS_DATETIMEPICKER_INPUT
public DateTimeFormElementConfiguration getConfiguration()
public void setConfiguration(@NonNull
@NonNull DateTimeFormElementConfiguration configuration)
public String getControlName()
getControlName in interface FormInputElementgetControlName in class InputGroupFormElementpublic DateTimeFormElement setControlName(String controlName)
setControlName in interface FormInputElementsetControlName in class InputGroupFormElement@Deprecated public Date getValue()
@Deprecated public DateTimeFormElement setValue(Date value)
public DateTimeFormElement setLocalDate(LocalDate value)
public LocalDate getLocalDate()
public DateTimeFormElement setLocalTime(LocalTime value)
public LocalTime getLocalTime()
public DateTimeFormElement setLocalDateTime(LocalDateTime value)
public LocalDateTime getLocalDateTime()
public List<com.foreach.across.modules.web.ui.ViewElement> getChildren()
getChildren in class InputGroupFormElementpublic DateTimeFormElement setPrepend(com.foreach.across.modules.web.ui.ViewElement prepend)
public DateTimeFormElement setAppend(com.foreach.across.modules.web.ui.ViewElement append)
public DateTimeFormElement setControl(com.foreach.across.modules.web.ui.ViewElement control)
public DateTimeFormElement setPlaceholder(String placeholder)
setPlaceholder in interface ConfigurablePlaceholderTextsetPlaceholder in class InputGroupFormElementpublic DateTimeFormElement setDisabled(boolean disabled)
setDisabled in interface FormInputElementsetDisabled in class InputGroupFormElementpublic DateTimeFormElement setReadonly(boolean readonly)
setReadonly in interface FormControlElementsetReadonly in class InputGroupFormElementpublic DateTimeFormElement setRequired(boolean required)
setRequired in interface FormControlElementsetRequired in class InputGroupFormElementpublic DateTimeFormElement addCssClass(String... cssClass)
addCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementaddCssClass in class InputGroupFormElementpublic DateTimeFormElement removeCssClass(String... cssClass)
removeCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveCssClass in class InputGroupFormElementpublic DateTimeFormElement setAttributes(Map<String,Object> attributes)
setAttributes in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementsetAttributes in class InputGroupFormElementpublic DateTimeFormElement setAttribute(String attributeName, Object attributeValue)
setAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementsetAttribute in class InputGroupFormElementpublic DateTimeFormElement addAttributes(Map<String,Object> attributes)
addAttributes in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementaddAttributes in class InputGroupFormElementpublic DateTimeFormElement removeAttribute(String attributeName)
removeAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveAttribute in class InputGroupFormElementpublic DateTimeFormElement setName(String name)
setName in interface com.foreach.across.modules.web.ui.MutableViewElementsetName in class InputGroupFormElementpublic DateTimeFormElement setCustomTemplate(String customTemplate)
setCustomTemplate in interface com.foreach.across.modules.web.ui.MutableViewElementsetCustomTemplate in class InputGroupFormElementprotected DateTimeFormElement setElementType(String elementType)
setElementType in class InputGroupFormElementpublic DateTimeFormElement addChild(com.foreach.across.modules.web.ui.ViewElement element)
addChild in class InputGroupFormElementpublic DateTimeFormElement addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements)
addChildren in class InputGroupFormElementpublic DateTimeFormElement addFirstChild(com.foreach.across.modules.web.ui.ViewElement element)
addFirstChild in class InputGroupFormElementpublic DateTimeFormElement clearChildren()
clearChildren in class InputGroupFormElementpublic DateTimeFormElement apply(Consumer<com.foreach.across.modules.web.ui.elements.ContainerViewElement> consumer)
apply in class InputGroupFormElementpublic <U extends com.foreach.across.modules.web.ui.ViewElement> DateTimeFormElement applyUnsafe(Consumer<U> consumer)
applyUnsafe in class InputGroupFormElementprotected DateTimeFormElement setTagName(String tagName)
setTagName in class InputGroupFormElementpublic DateTimeFormElement set(com.foreach.across.modules.web.ui.ViewElement.WitherSetter... setters)
set in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementset in interface com.foreach.across.modules.web.ui.MutableViewElementset in interface com.foreach.across.modules.web.ui.ViewElementset in class InputGroupFormElementpublic DateTimeFormElement remove(com.foreach.across.modules.web.ui.ViewElement.WitherRemover... functions)
remove in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremove in interface com.foreach.across.modules.web.ui.MutableViewElementremove in interface com.foreach.across.modules.web.ui.ViewElementremove in class InputGroupFormElementCopyright © 2020. All rights reserved.