public class FormGroupElement
extends com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
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 |
|---|
FormGroupElement() |
| Modifier and Type | Method and Description |
|---|---|
FormGroupElement |
addAttributes(Map<String,Object> attributes) |
FormGroupElement |
addChild(com.foreach.across.modules.web.ui.ViewElement element) |
FormGroupElement |
addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements) |
FormGroupElement |
addCssClass(String... cssClass) |
FormGroupElement |
addFirstChild(com.foreach.across.modules.web.ui.ViewElement element) |
FormGroupElement |
apply(Consumer<com.foreach.across.modules.web.ui.elements.ContainerViewElement> consumer) |
<U extends com.foreach.across.modules.web.ui.ViewElement> |
applyUnsafe(Consumer<U> consumer) |
FormGroupElement |
clearChildren() |
Stream<com.foreach.across.modules.web.ui.ViewElement> |
elementStream() |
<V extends com.foreach.across.modules.web.ui.ViewElement> |
getControl(Class<V> elementType) |
<V extends com.foreach.across.modules.web.ui.ViewElement> |
getDescriptionBlock(Class<V> elementType) |
<V extends com.foreach.across.modules.web.ui.ViewElement> |
getHelpBlock(Class<V> elementType) |
<V extends com.foreach.across.modules.web.ui.ViewElement> |
getLabel(Class<V> elementType) |
<V extends com.foreach.across.modules.web.ui.ViewElement> |
getTooltip(Class<V> elementType) |
FormGroupElement |
remove(com.foreach.across.modules.web.ui.ViewElement.WitherRemover... functions) |
FormGroupElement |
removeAttribute(String attributeName) |
boolean |
removeChild(com.foreach.across.modules.web.ui.ViewElement element) |
FormGroupElement |
removeCssClass(String... cssClass) |
FormGroupElement |
set(com.foreach.across.modules.web.ui.ViewElement.WitherSetter... setters) |
FormGroupElement |
setAttribute(String attributeName,
Object attributeValue) |
FormGroupElement |
setAttributes(Map<String,Object> attributes) |
FormGroupElement |
setCustomTemplate(String customTemplate) |
protected FormGroupElement |
setElementType(String elementType) |
FormGroupElement |
setFieldErrorsToShow(String... fieldNames)
Additional field names for which errors should be detected from the bound object.
|
FormGroupElement |
setHtmlId(String htmlId) |
FormGroupElement |
setName(String name) |
protected FormGroupElement |
setTagName(String tagName) |
get, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, returnIfTypefind, find, findAll, findAll, findAll, findOrSelf, findOrSelf, flatStream, getChildren, getCustomTemplate, getElementType, getName, hasChildren, removeAllFromTree, removeFromTree, removeFromTreepublic static final String ELEMENT_TYPE
public <V extends com.foreach.across.modules.web.ui.ViewElement> V getLabel(Class<V> elementType)
public <V extends com.foreach.across.modules.web.ui.ViewElement> V getControl(Class<V> elementType)
public <V extends com.foreach.across.modules.web.ui.ViewElement> V getHelpBlock(Class<V> elementType)
public <V extends com.foreach.across.modules.web.ui.ViewElement> V getDescriptionBlock(Class<V> elementType)
public <V extends com.foreach.across.modules.web.ui.ViewElement> V getTooltip(Class<V> elementType)
public FormGroupElement setFieldErrorsToShow(String... fieldNames)
#isDetectFieldErrors().
The latter will only auto-detect the field errors for the attached control.
The Errors object attached to the bound object
will be queried for the field errors with the given names.fieldNames - field namespublic Stream<com.foreach.across.modules.web.ui.ViewElement> elementStream()
elementStream in class com.foreach.across.modules.web.ui.elements.ContainerViewElementpublic boolean removeChild(com.foreach.across.modules.web.ui.ViewElement element)
removeChild in class com.foreach.across.modules.web.ui.elements.ContainerViewElementpublic FormGroupElement addCssClass(String... cssClass)
addCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementaddCssClass in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormGroupElement removeCssClass(String... cssClass)
removeCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveCssClass in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormGroupElement 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.AbstractNodeViewElementpublic FormGroupElement 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.AbstractNodeViewElementpublic FormGroupElement 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.AbstractNodeViewElementpublic FormGroupElement removeAttribute(String attributeName)
removeAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveAttribute in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormGroupElement setName(String name)
setName in interface com.foreach.across.modules.web.ui.MutableViewElementsetName in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormGroupElement setCustomTemplate(String customTemplate)
setCustomTemplate in interface com.foreach.across.modules.web.ui.MutableViewElementsetCustomTemplate in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementprotected FormGroupElement setElementType(String elementType)
setElementType in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormGroupElement addChild(com.foreach.across.modules.web.ui.ViewElement element)
addChild in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormGroupElement addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements)
addChildren in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormGroupElement addFirstChild(com.foreach.across.modules.web.ui.ViewElement element)
addFirstChild in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormGroupElement clearChildren()
clearChildren in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormGroupElement apply(Consumer<com.foreach.across.modules.web.ui.elements.ContainerViewElement> consumer)
apply in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic <U extends com.foreach.across.modules.web.ui.ViewElement> FormGroupElement applyUnsafe(Consumer<U> consumer)
applyUnsafe in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementprotected FormGroupElement setTagName(String tagName)
setTagName in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormGroupElement setHtmlId(String htmlId)
setHtmlId in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementsetHtmlId in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormGroupElement 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.AbstractNodeViewElementpublic FormGroupElement 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.AbstractNodeViewElementCopyright © 2020. All rights reserved.