public class HiddenFormElement extends com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement implements FormInputElement
com.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 |
ELEMENT_TYPE |
| Constructor and Description |
|---|
HiddenFormElement() |
get, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, returnIfTypegetCustomTemplate, getElementType, getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final String ELEMENT_TYPE
public String getControlName()
getControlName in interface FormInputElementpublic HiddenFormElement setControlName(String controlName)
setControlName in interface FormInputElementpublic boolean isDisabled()
isDisabled in interface FormInputElementpublic HiddenFormElement setDisabled(boolean disabled)
setDisabled in interface FormInputElementpublic HiddenFormElement 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 com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElementpublic HiddenFormElement 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 com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElementpublic Object getValue()
public <V> V getValue(Class<V> expectedType)
public HiddenFormElement setValue(Object value)
public FormControlElement toFormControl()
FormControlElement matching this hidden element.
Will be detected by BootstrapElementUtils.getFormControl(ViewElement),
whereas the regular HiddenFormElement will not.
Can be used to provide a (disabled) errors holder in a FormGroupElement for example.public HiddenFormElement addCssClass(String... cssClass)
addCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementaddCssClass in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElementpublic HiddenFormElement removeCssClass(String... cssClass)
removeCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveCssClass in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElementpublic HiddenFormElement setAttributes(Map<String,Object> attributes)
setAttributes in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementsetAttributes in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElementpublic HiddenFormElement setAttribute(String attributeName, Object attributeValue)
setAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementsetAttribute in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElementpublic HiddenFormElement addAttributes(Map<String,Object> attributes)
addAttributes in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementaddAttributes in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElementpublic HiddenFormElement removeAttribute(String attributeName)
removeAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveAttribute in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElementprotected HiddenFormElement setTagName(String tagName)
setTagName in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElementpublic HiddenFormElement setHtmlId(String htmlId)
setHtmlId in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementsetHtmlId in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElementpublic HiddenFormElement setName(String name)
setName in interface com.foreach.across.modules.web.ui.MutableViewElementsetName in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElementpublic HiddenFormElement setCustomTemplate(String customTemplate)
setCustomTemplate in interface com.foreach.across.modules.web.ui.MutableViewElementsetCustomTemplate in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElementprotected HiddenFormElement setElementType(String elementType)
setElementType in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElementCopyright © 2020. All rights reserved.