public class InputGroupFormElement extends com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement implements FormControlElement.Proxy, ConfigurablePlaceholderText
Represents a bootstrap input group, wrapping a control and allowing left or right addon.
The main control should be added as a child to the input group, the addons can be set through properties
and the corresponding addon class (input-group-addon of input-group-btn will be set.
A default TextboxFormElement control is set for the input group as input groups are usually
expected to be used with textboxes. The InputGroupFormElement itself is also a FormControlElement
that proxies the control. If the control is not of type FormControlElement the specific
FormControlElement method calls will fail.
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>| Constructor and Description |
|---|
InputGroupFormElement() |
| Modifier and Type | Method and Description |
|---|---|
InputGroupFormElement |
addAttributes(Map<String,Object> attributes) |
InputGroupFormElement |
addChild(com.foreach.across.modules.web.ui.ViewElement element) |
InputGroupFormElement |
addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements) |
InputGroupFormElement |
addCssClass(String... cssClass) |
InputGroupFormElement |
addFirstChild(com.foreach.across.modules.web.ui.ViewElement element) |
static com.foreach.across.modules.web.ui.ViewElement.WitherSetter<InputGroupFormElement> |
append(com.foreach.across.modules.web.ui.ViewElement... elements)
Append a number of view elements.
|
InputGroupFormElement |
apply(Consumer<com.foreach.across.modules.web.ui.elements.ContainerViewElement> consumer) |
<U extends com.foreach.across.modules.web.ui.ViewElement> |
applyUnsafe(Consumer<U> consumer) |
InputGroupFormElement |
clearChildren() |
static com.foreach.across.modules.web.ui.ViewElement.WitherSetter<InputGroupFormElement> |
control(com.foreach.across.modules.web.ui.ViewElement... elements)
Set the input group control, replacing the default textbox.
|
<V extends com.foreach.across.modules.web.ui.ViewElement> |
getAppend(Class<V> addonType) |
List<com.foreach.across.modules.web.ui.ViewElement> |
getChildren() |
<V extends com.foreach.across.modules.web.ui.ViewElement> |
getControl(Class<V> controlType) |
String |
getControlName() |
String |
getPlaceholder() |
<V extends com.foreach.across.modules.web.ui.ViewElement> |
getPrepend(Class<V> addonType) |
boolean |
hasChildren() |
boolean |
isDisabled() |
boolean |
isReadonly() |
boolean |
isRequired() |
static com.foreach.across.modules.web.ui.ViewElement.WitherSetter<InputGroupFormElement> |
prepend(com.foreach.across.modules.web.ui.ViewElement... elements)
Prepend a number of view elements.
|
InputGroupFormElement |
remove(com.foreach.across.modules.web.ui.ViewElement.WitherRemover... functions) |
InputGroupFormElement |
removeAttribute(String attributeName) |
InputGroupFormElement |
removeCssClass(String... cssClass) |
InputGroupFormElement |
set(com.foreach.across.modules.web.ui.ViewElement.WitherSetter... setters) |
InputGroupFormElement |
setAttribute(String attributeName,
Object attributeValue) |
InputGroupFormElement |
setAttributes(Map<String,Object> attributes) |
InputGroupFormElement |
setControlName(String controlName) |
InputGroupFormElement |
setCustomTemplate(String customTemplate) |
InputGroupFormElement |
setDisabled(boolean disabled) |
protected InputGroupFormElement |
setElementType(String elementType) |
InputGroupFormElement |
setHtmlId(String htmlId) |
InputGroupFormElement |
setName(String name) |
InputGroupFormElement |
setPlaceholder(String placeholder) |
InputGroupFormElement |
setReadonly(boolean readonly) |
InputGroupFormElement |
setRequired(boolean required) |
protected InputGroupFormElement |
setTagName(String tagName) |
get, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, returnIfTypeelementStream, find, find, findAll, findAll, findAll, findOrSelf, findOrSelf, flatStream, getCustomTemplate, getElementType, getName, removeAllFromTree, removeChild, removeFromTree, removeFromTreeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetControlpublic <V extends com.foreach.across.modules.web.ui.ViewElement> V getPrepend(Class<V> addonType)
public <V extends com.foreach.across.modules.web.ui.ViewElement> V getAppend(Class<V> addonType)
public InputGroupFormElement setPlaceholder(String placeholder)
setPlaceholder in interface ConfigurablePlaceholderTextpublic String getPlaceholder()
getPlaceholder in interface ConfigurablePlaceholderTextpublic <V extends com.foreach.across.modules.web.ui.ViewElement> V getControl(Class<V> controlType)
public boolean isDisabled()
isDisabled in interface FormInputElementpublic InputGroupFormElement setDisabled(boolean disabled)
setDisabled in interface FormInputElementpublic boolean isReadonly()
isReadonly in interface FormControlElementpublic InputGroupFormElement setReadonly(boolean readonly)
setReadonly in interface FormControlElementpublic boolean isRequired()
isRequired in interface FormControlElementpublic InputGroupFormElement setRequired(boolean required)
setRequired in interface FormControlElementpublic String getControlName()
getControlName in interface FormInputElementpublic InputGroupFormElement setControlName(String controlName)
setControlName in interface FormInputElementpublic List<com.foreach.across.modules.web.ui.ViewElement> getChildren()
getChildren in class com.foreach.across.modules.web.ui.elements.ContainerViewElementpublic boolean hasChildren()
hasChildren in class com.foreach.across.modules.web.ui.elements.ContainerViewElementpublic InputGroupFormElement addCssClass(String... cssClass)
addCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementaddCssClass in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic InputGroupFormElement removeCssClass(String... cssClass)
removeCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveCssClass in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic InputGroupFormElement 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 InputGroupFormElement 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 InputGroupFormElement 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 InputGroupFormElement removeAttribute(String attributeName)
removeAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementremoveAttribute in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic InputGroupFormElement setName(String name)
setName in interface com.foreach.across.modules.web.ui.MutableViewElementsetName in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic InputGroupFormElement setCustomTemplate(String customTemplate)
setCustomTemplate in interface com.foreach.across.modules.web.ui.MutableViewElementsetCustomTemplate in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementprotected InputGroupFormElement setElementType(String elementType)
setElementType in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic InputGroupFormElement addChild(com.foreach.across.modules.web.ui.ViewElement element)
addChild in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic InputGroupFormElement addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements)
addChildren in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic InputGroupFormElement addFirstChild(com.foreach.across.modules.web.ui.ViewElement element)
addFirstChild in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic InputGroupFormElement clearChildren()
clearChildren in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic InputGroupFormElement 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> InputGroupFormElement applyUnsafe(Consumer<U> consumer)
applyUnsafe in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementprotected InputGroupFormElement setTagName(String tagName)
setTagName in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic InputGroupFormElement setHtmlId(String htmlId)
setHtmlId in interface com.foreach.across.modules.web.ui.elements.HtmlViewElementsetHtmlId in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElementpublic InputGroupFormElement 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 InputGroupFormElement 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.AbstractNodeViewElementpublic static com.foreach.across.modules.web.ui.ViewElement.WitherSetter<InputGroupFormElement> prepend(com.foreach.across.modules.web.ui.ViewElement... elements)
public static com.foreach.across.modules.web.ui.ViewElement.WitherSetter<InputGroupFormElement> append(com.foreach.across.modules.web.ui.ViewElement... elements)
public static com.foreach.across.modules.web.ui.ViewElement.WitherSetter<InputGroupFormElement> control(com.foreach.across.modules.web.ui.ViewElement... elements)
Copyright © 2020. All rights reserved.