public class SelectFormElement extends FormControlElementSupport
SelectFormElementConfiguration using setConfiguration(SelectFormElementConfiguration).SelectFormElementConfiguration| Modifier and Type | Class and Description |
|---|---|
static class |
SelectFormElement.Option
Single option.
|
static class |
SelectFormElement.OptionGroup
Optgroup.
|
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_SELECT |
static String |
ELEMENT_TYPE |
| Constructor and Description |
|---|
SelectFormElement() |
| Modifier and Type | Method and Description |
|---|---|
SelectFormElement |
addAttributes(Map<String,Object> attributes) |
SelectFormElement |
addChild(com.foreach.across.modules.web.ui.ViewElement element) |
SelectFormElement |
addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements) |
SelectFormElement |
addCssClass(String... cssClass) |
SelectFormElement |
addFirstChild(com.foreach.across.modules.web.ui.ViewElement element) |
SelectFormElement |
apply(Consumer<com.foreach.across.modules.web.ui.elements.ContainerViewElement> consumer) |
<U extends com.foreach.across.modules.web.ui.ViewElement> |
applyUnsafe(Consumer<U> consumer) |
SelectFormElement |
clearChildren() |
SelectFormElementConfiguration |
getConfiguration()
Get the attached bootstrap-select configuration if there is any.
|
SelectFormElement |
remove(com.foreach.across.modules.web.ui.ViewElement.WitherRemover... functions) |
SelectFormElement |
removeAttribute(String attributeName) |
SelectFormElement |
removeCssClass(String... cssClass) |
SelectFormElement |
set(com.foreach.across.modules.web.ui.ViewElement.WitherSetter... setters) |
SelectFormElement |
setAttribute(String attributeName,
Object attributeValue) |
SelectFormElement |
setAttributes(Map<String,Object> attributes) |
SelectFormElement |
setConfiguration(SelectFormElementConfiguration configuration)
Set a bootstrap-select configuration.
|
SelectFormElement |
setControlName(String controlName) |
SelectFormElement |
setCustomTemplate(String customTemplate) |
SelectFormElement |
setDisabled(boolean disabled) |
protected SelectFormElement |
setElementType(String elementType) |
SelectFormElement |
setHtmlId(String htmlId) |
SelectFormElement |
setName(String name) |
SelectFormElement |
setReadonly(boolean readonly) |
SelectFormElement |
setRequired(boolean required) |
protected SelectFormElement |
setTagName(String tagName) |
getControlNameget, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, returnIfTypeelementStream, find, find, findAll, findAll, findAll, findOrSelf, findOrSelf, flatStream, getChildren, getCustomTemplate, getElementType, getName, hasChildren, removeAllFromTree, removeChild, removeFromTree, removeFromTreeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisReadonly, isRequiredisDisabledpublic static final String ELEMENT_TYPE
public static final String ATTRIBUTE_DATA_SELECT
public SelectFormElementConfiguration getConfiguration()
null in case of a simple HTML selectpublic SelectFormElement setConfiguration(SelectFormElementConfiguration configuration)
configuration - to usepublic SelectFormElement setDisabled(boolean disabled)
public SelectFormElement setReadonly(boolean readonly)
public SelectFormElement setRequired(boolean required)
public SelectFormElement setName(String name)
setName in interface com.foreach.across.modules.web.ui.MutableViewElementsetName in class FormControlElementSupportpublic SelectFormElement setControlName(String controlName)
setControlName in interface FormInputElementsetControlName in class FormControlElementSupportpublic SelectFormElement setHtmlId(String htmlId)
setHtmlId in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementsetHtmlId in class FormControlElementSupportpublic SelectFormElement addCssClass(String... cssClass)
addCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementaddCssClass in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic SelectFormElement removeCssClass(String... cssClass)
removeCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveCssClass in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic SelectFormElement 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 SelectFormElement 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 SelectFormElement 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 SelectFormElement removeAttribute(String attributeName)
removeAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveAttribute in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic SelectFormElement setCustomTemplate(String customTemplate)
setCustomTemplate in interface com.foreach.across.modules.web.ui.MutableViewElementsetCustomTemplate in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementprotected SelectFormElement setElementType(String elementType)
setElementType in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic SelectFormElement addChild(com.foreach.across.modules.web.ui.ViewElement element)
addChild in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic SelectFormElement addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements)
addChildren in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic SelectFormElement addFirstChild(com.foreach.across.modules.web.ui.ViewElement element)
addFirstChild in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic SelectFormElement clearChildren()
clearChildren in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic SelectFormElement 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> SelectFormElement applyUnsafe(Consumer<U> consumer)
applyUnsafe in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementprotected SelectFormElement setTagName(String tagName)
setTagName in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic SelectFormElement 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 SelectFormElement 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.