public class FormViewElement
extends com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
FormLayout that will automatically
be applied to all controls of the form that do not have a separate layout specified.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 |
static String |
ENCTYPE_MULTIPART |
static String |
ENCTYPE_PLAIN |
static String |
ENCTYPE_URLENCODED |
| Constructor and Description |
|---|
FormViewElement() |
| Modifier and Type | Method and Description |
|---|---|
FormViewElement |
addAttributes(Map<String,Object> attributes) |
FormViewElement |
addChild(com.foreach.across.modules.web.ui.ViewElement element) |
FormViewElement |
addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements) |
FormViewElement |
addCssClass(String... cssClass) |
FormViewElement |
addFirstChild(com.foreach.across.modules.web.ui.ViewElement element) |
FormViewElement |
apply(Consumer<com.foreach.across.modules.web.ui.elements.ContainerViewElement> consumer) |
<U extends com.foreach.across.modules.web.ui.ViewElement> |
applyUnsafe(Consumer<U> consumer) |
FormViewElement |
clearChildren() |
String |
getAcceptCharSet() |
String |
getAction() |
String |
getCommandAttribute() |
String |
getEncType() |
FormLayout |
getFormLayout() |
String |
getFormName() |
org.springframework.http.HttpMethod |
getMethod() |
boolean |
isAutoComplete() |
boolean |
isNoValidate() |
FormViewElement |
remove(com.foreach.across.modules.web.ui.ViewElement.WitherRemover... functions) |
FormViewElement |
removeAttribute(String attributeName) |
FormViewElement |
removeCssClass(String... cssClass) |
FormViewElement |
set(com.foreach.across.modules.web.ui.ViewElement.WitherSetter... setters) |
FormViewElement |
setAcceptCharSet(String charSet) |
FormViewElement |
setAction(String url) |
FormViewElement |
setAttribute(String attributeName,
Object attributeValue) |
FormViewElement |
setAttributes(Map<String,Object> attributes) |
FormViewElement |
setAutoComplete(boolean autoComplete) |
FormViewElement |
setCommandAttribute(String commandAttribute)
Set the attribute name of the command object that this form is for.
|
FormViewElement |
setCustomTemplate(String customTemplate) |
protected FormViewElement |
setElementType(String elementType) |
FormViewElement |
setEncType(String encType)
Set encoding type (enctype attribute) to use for this form.
|
FormViewElement |
setFormLayout(FormLayout formLayout)
Set the
FormLayout that should be applied to all FormGroupElement members
of this form. |
FormViewElement |
setFormName(String name)
Set the HTML name attribute of this form.
|
FormViewElement |
setHtmlId(String htmlId) |
FormViewElement |
setMethod(org.springframework.http.HttpMethod httpMethod) |
FormViewElement |
setName(String name) |
FormViewElement |
setNoValidate(boolean noValidate) |
protected FormViewElement |
setTagName(String tagName) |
get, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, returnIfTypeelementStream, find, find, findAll, findAll, findAll, findOrSelf, findOrSelf, flatStream, getChildren, getCustomTemplate, getElementType, getName, hasChildren, removeAllFromTree, removeChild, removeFromTree, removeFromTreepublic static final String ELEMENT_TYPE
public static final String ENCTYPE_PLAIN
public static final String ENCTYPE_MULTIPART
public static final String ENCTYPE_URLENCODED
public FormLayout getFormLayout()
public FormViewElement setFormLayout(FormLayout formLayout)
FormLayout that should be applied to all FormGroupElement members
of this form. Also set the corresponding class.formLayout - instancepublic String getCommandAttribute()
public FormViewElement setCommandAttribute(String commandAttribute)
th:object attribute on an element in Thymeleaf.commandAttribute - instancepublic org.springframework.http.HttpMethod getMethod()
public FormViewElement setMethod(org.springframework.http.HttpMethod httpMethod)
public String getAction()
public FormViewElement setAction(String url)
public FormViewElement setName(String name)
setName in interface com.foreach.across.modules.web.ui.MutableViewElementsetName in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic String getFormName()
public FormViewElement setFormName(String name)
ContainerViewElement.getName().name - attribute to usepublic String getEncType()
public FormViewElement setEncType(String encType)
encType - valuepublic String getAcceptCharSet()
public FormViewElement setAcceptCharSet(String charSet)
public boolean isAutoComplete()
public FormViewElement setAutoComplete(boolean autoComplete)
public boolean isNoValidate()
public FormViewElement setNoValidate(boolean noValidate)
public FormViewElement addCssClass(String... cssClass)
addCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementaddCssClass in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormViewElement removeCssClass(String... cssClass)
removeCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveCssClass in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormViewElement 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 FormViewElement 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 FormViewElement 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 FormViewElement removeAttribute(String attributeName)
removeAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveAttribute in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormViewElement setCustomTemplate(String customTemplate)
setCustomTemplate in interface com.foreach.across.modules.web.ui.MutableViewElementsetCustomTemplate in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementprotected FormViewElement setElementType(String elementType)
setElementType in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormViewElement addChild(com.foreach.across.modules.web.ui.ViewElement element)
addChild in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormViewElement addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements)
addChildren in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormViewElement addFirstChild(com.foreach.across.modules.web.ui.ViewElement element)
addFirstChild in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormViewElement clearChildren()
clearChildren in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormViewElement 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> FormViewElement applyUnsafe(Consumer<U> consumer)
applyUnsafe in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementprotected FormViewElement setTagName(String tagName)
setTagName in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormViewElement setHtmlId(String htmlId)
setHtmlId in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementsetHtmlId in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic FormViewElement 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 FormViewElement 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.