Class HiddenFormElement
java.lang.Object
com.foreach.across.modules.web.ui.ViewElementSupport
com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
com.foreach.across.modules.bootstrapui.elements.HiddenFormElement
- All Implemented Interfaces:
FormInputElement,com.foreach.across.modules.web.ui.elements.HtmlViewElement,com.foreach.across.modules.web.ui.MutableViewElement,com.foreach.across.modules.web.ui.ViewElement
public class HiddenFormElement
extends com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
implements FormInputElement
- Author:
- Arne Vandamme
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
com.foreach.across.modules.web.ui.elements.HtmlViewElement.FunctionsNested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.MutableViewElement
com.foreach.across.modules.web.ui.MutableViewElement.FunctionsNested 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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributes(Map<String, Object> attributes) addCssClass(String... cssClass) getValue()<V> Vbooleanremove(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) setAttribute(String attributeName, Object attributeValue) setAttributes(Map<String, Object> attributes) setControlName(String controlName) setCustomTemplate(String customTemplate) setDisabled(boolean disabled) protected HiddenFormElementsetElementType(String elementType) protected HiddenFormElementsetTagName(String tagName) Returns a genericFormControlElementmatching this hidden element.Methods inherited from class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
get, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, returnIfTypeMethods inherited from class com.foreach.across.modules.web.ui.ViewElementSupport
getCustomTemplate, getElementType, getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClassMethods inherited from interface com.foreach.across.modules.web.ui.ViewElement
get, getCustomTemplate, getElementType, getName, matches
-
Field Details
-
ELEMENT_TYPE
- See Also:
-
-
Constructor Details
-
HiddenFormElement
public HiddenFormElement()
-
-
Method Details
-
getControlName
- Specified by:
getControlNamein interfaceFormInputElement
-
setControlName
- Specified by:
setControlNamein interfaceFormInputElement
-
isDisabled
public boolean isDisabled()- Specified by:
isDisabledin interfaceFormInputElement
-
setDisabled
- Specified by:
setDisabledin interfaceFormInputElement
-
set
- Specified by:
setin interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Specified by:
setin interfacecom.foreach.across.modules.web.ui.MutableViewElement- Specified by:
setin interfacecom.foreach.across.modules.web.ui.ViewElement- Overrides:
setin classcom.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
-
remove
public HiddenFormElement remove(com.foreach.across.modules.web.ui.ViewElement.WitherRemover... functions) - Specified by:
removein interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Specified by:
removein interfacecom.foreach.across.modules.web.ui.MutableViewElement- Specified by:
removein interfacecom.foreach.across.modules.web.ui.ViewElement- Overrides:
removein classcom.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
-
getValue
-
getValue
-
setValue
-
toFormControl
Returns a genericFormControlElementmatching this hidden element. Will be detected byBootstrapElementUtils.getFormControl(ViewElement), whereas the regularHiddenFormElementwill not. Can be used to provide a (disabled) errors holder in aFormGroupElementfor example.- Returns:
- hidden element as form control
-
addCssClass
- Specified by:
addCssClassin interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
addCssClassin classcom.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
-
removeCssClass
- Specified by:
removeCssClassin interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
removeCssClassin classcom.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
-
setAttributes
- Specified by:
setAttributesin interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
setAttributesin classcom.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
-
setAttribute
- Specified by:
setAttributein interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
setAttributein classcom.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
-
addAttributes
- Specified by:
addAttributesin interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
addAttributesin classcom.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
-
removeAttribute
- Specified by:
removeAttributein interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
removeAttributein classcom.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
-
setTagName
- Overrides:
setTagNamein classcom.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
-
setHtmlId
- Specified by:
setHtmlIdin interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
setHtmlIdin classcom.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
-
setName
- Specified by:
setNamein interfacecom.foreach.across.modules.web.ui.MutableViewElement- Overrides:
setNamein classcom.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
-
setCustomTemplate
- Specified by:
setCustomTemplatein interfacecom.foreach.across.modules.web.ui.MutableViewElement- Overrides:
setCustomTemplatein classcom.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
-
setElementType
- Overrides:
setElementTypein classcom.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
-