Class TextareaFormElement
java.lang.Object
com.foreach.across.modules.web.ui.elements.ContainerViewElement
com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
com.foreach.across.modules.bootstrapui.elements.FormControlElementSupport
com.foreach.across.modules.bootstrapui.elements.TextboxFormElement
com.foreach.across.modules.bootstrapui.elements.TextareaFormElement
- All Implemented Interfaces:
ConfigurablePlaceholderText
,FormControlElement
,FormInputElement
,com.foreach.across.modules.web.ui.elements.ConfigurableTextViewElement
,com.foreach.across.modules.web.ui.elements.HtmlViewElement
,com.foreach.across.modules.web.ui.MutableViewElement
,com.foreach.across.modules.web.ui.ViewElement
Represents HTML textarea.
- Author:
- Arne Vandamme
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.foreach.across.modules.bootstrapui.elements.FormControlElement
FormControlElement.Proxy
Nested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
com.foreach.across.modules.web.ui.elements.HtmlViewElement.Functions
Nested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.MutableViewElement
com.foreach.across.modules.web.ui.MutableViewElement.Functions
Nested 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 inherited from class com.foreach.across.modules.bootstrapui.elements.TextboxFormElement
CSS_DISABLE_LINE_BREAKS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttributes
(Map<String, Object> attributes) addChild
(com.foreach.across.modules.web.ui.ViewElement element) addChildren
(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements) addCssClass
(String... cssClass) addFirstChild
(com.foreach.across.modules.web.ui.ViewElement element) <U extends com.foreach.across.modules.web.ui.ViewElement>
TextareaFormElementapplyUnsafe
(Consumer<U> consumer) int
getRows()
boolean
remove
(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) setAutoSize
(boolean autoSize) setControlName
(String controlName) setCustomTemplate
(String customTemplate) setDisabled
(boolean disabled) setDisableLineBreaks
(boolean disableLineBreaks) protected TextareaFormElement
setElementType
(String elementType) setMaxLength
(Integer maxLength) setPlaceholder
(String placeholder) setReadonly
(boolean readonly) setRequired
(boolean required) setRows
(int rows) protected TextareaFormElement
setTagName
(String tagName) Methods inherited from class com.foreach.across.modules.bootstrapui.elements.TextboxFormElement
getMaxLength, getPlaceholder, getText, getType, isDisableLineBreaks
Methods inherited from class com.foreach.across.modules.bootstrapui.elements.FormControlElementSupport
getControlName, isDisabled, isReadonly, isRequired
Methods inherited from class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
get, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, returnIfType
Methods inherited from class com.foreach.across.modules.web.ui.elements.ContainerViewElement
elementStream, find, find, findAll, findAll, findAll, findOrSelf, findOrSelf, flatStream, getChildren, getCustomTemplate, getElementType, getName, hasChildren, removeAllFromTree, removeChild, removeFromTree, removeFromTree
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass
Methods inherited from interface com.foreach.across.modules.web.ui.ViewElement
get, getCustomTemplate, getElementType, getName, matches
-
Field Details
-
ELEMENT_TYPE
- See Also:
-
CSS_AUTOSIZE
- See Also:
-
-
Constructor Details
-
TextareaFormElement
public TextareaFormElement()
-
-
Method Details
-
setType
- Overrides:
setType
in classTextboxFormElement
- Returns:
this
.
-
setPlaceholder
- Specified by:
setPlaceholder
in interfaceConfigurablePlaceholderText
- Overrides:
setPlaceholder
in classTextboxFormElement
- Returns:
this
.
-
setText
- Specified by:
setText
in interfacecom.foreach.across.modules.web.ui.elements.ConfigurableTextViewElement
- Overrides:
setText
in classTextboxFormElement
- Returns:
this
.
-
setMaxLength
- Overrides:
setMaxLength
in classTextboxFormElement
- Returns:
this
.
-
setDisableLineBreaks
- Overrides:
setDisableLineBreaks
in classTextboxFormElement
- Returns:
this
.
-
setDisabled
- Specified by:
setDisabled
in interfaceFormInputElement
- Overrides:
setDisabled
in classTextboxFormElement
- Returns:
this
.
-
setReadonly
- Specified by:
setReadonly
in interfaceFormControlElement
- Overrides:
setReadonly
in classTextboxFormElement
- Returns:
this
.
-
setRequired
- Specified by:
setRequired
in interfaceFormControlElement
- Overrides:
setRequired
in classTextboxFormElement
- Returns:
this
.
-
setName
- Specified by:
setName
in interfacecom.foreach.across.modules.web.ui.MutableViewElement
- Overrides:
setName
in classTextboxFormElement
-
setControlName
- Specified by:
setControlName
in interfaceFormInputElement
- Overrides:
setControlName
in classTextboxFormElement
-
setHtmlId
- Specified by:
setHtmlId
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Overrides:
setHtmlId
in classTextboxFormElement
-
addCssClass
- Specified by:
addCssClass
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Overrides:
addCssClass
in classTextboxFormElement
-
removeCssClass
- Specified by:
removeCssClass
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Overrides:
removeCssClass
in classTextboxFormElement
-
setAttributes
- Specified by:
setAttributes
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Overrides:
setAttributes
in classTextboxFormElement
-
setAttribute
- Specified by:
setAttribute
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Overrides:
setAttribute
in classTextboxFormElement
-
addAttributes
- Specified by:
addAttributes
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Overrides:
addAttributes
in classTextboxFormElement
-
removeAttribute
- Specified by:
removeAttribute
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Overrides:
removeAttribute
in classTextboxFormElement
-
setCustomTemplate
- Specified by:
setCustomTemplate
in interfacecom.foreach.across.modules.web.ui.MutableViewElement
- Overrides:
setCustomTemplate
in classTextboxFormElement
-
setElementType
- Overrides:
setElementType
in classTextboxFormElement
-
addChild
- Overrides:
addChild
in classTextboxFormElement
-
addChildren
public TextareaFormElement addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements) - Overrides:
addChildren
in classTextboxFormElement
-
addFirstChild
- Overrides:
addFirstChild
in classTextboxFormElement
-
clearChildren
- Overrides:
clearChildren
in classTextboxFormElement
-
apply
public TextareaFormElement apply(Consumer<com.foreach.across.modules.web.ui.elements.ContainerViewElement> consumer) - Overrides:
apply
in classTextboxFormElement
-
applyUnsafe
public <U extends com.foreach.across.modules.web.ui.ViewElement> TextareaFormElement applyUnsafe(Consumer<U> consumer) - Overrides:
applyUnsafe
in classTextboxFormElement
-
setTagName
- Overrides:
setTagName
in classTextboxFormElement
-
set
public TextareaFormElement set(com.foreach.across.modules.web.ui.ViewElement.WitherSetter... setters) - Specified by:
set
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Specified by:
set
in interfacecom.foreach.across.modules.web.ui.MutableViewElement
- Specified by:
set
in interfacecom.foreach.across.modules.web.ui.ViewElement
- Overrides:
set
in classTextboxFormElement
-
remove
public TextareaFormElement remove(com.foreach.across.modules.web.ui.ViewElement.WitherRemover... functions) - Specified by:
remove
in interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement
- Specified by:
remove
in interfacecom.foreach.across.modules.web.ui.MutableViewElement
- Specified by:
remove
in interfacecom.foreach.across.modules.web.ui.ViewElement
- Overrides:
remove
in classTextboxFormElement
-
getRows
public int getRows() -
isAutoSize
public boolean isAutoSize() -
setRows
- Returns:
this
.
-
setAutoSize
- Returns:
this
.
-