Class ButtonViewElement
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.ButtonViewElement
- All Implemented Interfaces:
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
public class ButtonViewElement
extends com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
implements com.foreach.across.modules.web.ui.elements.ConfigurableTextViewElement, FormInputElement
Represents a Bootstrap button.
- Author:
- Arne Vandamme
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumNested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
com.foreach.across.modules.web.ui.elements.HtmlViewElement.FunctionsNested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.MutableViewElement
com.foreach.across.modules.web.ui.MutableViewElement.FunctionsNested 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 -
Constructor Summary
Constructors -
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>
ButtonViewElementapplyUnsafe(Consumer<U> consumer) com.foreach.across.modules.web.ui.ViewElementgetIcon()Set the icon to be aligned on the left-hand side of the text (if there is any text).getSize()Deprecated.getState()getStyle()getText()getTitle()@NonNull ButtonViewElement.TypegetType()getUrl()getValue()booleanremove(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) setControlName(String controlName) setCustomTemplate(String customTemplate) setDisabled(boolean disabled) protected ButtonViewElementsetElementType(String elementType) setIcon(com.foreach.across.modules.web.ui.ViewElement icon) Set the icon to be aligned on the left-hand side of the text (if there is any text).Deprecated.setState(ButtonViewElement.State state) setStyleRule(BootstrapStyleRule styleRule) protected ButtonViewElementsetTagName(String tagName) setType(@NonNull ButtonViewElement.Type type) Methods inherited from class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
get, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, returnIfTypeMethods 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, removeFromTreeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClassMethods inherited from interface com.foreach.across.modules.web.ui.ViewElement
get, getCustomTemplate, getElementType, getName, matches
-
Field Details
-
ELEMENT_TYPE
- See Also:
-
-
Constructor Details
-
ButtonViewElement
public ButtonViewElement()
-
-
Method Details
-
setStyle
-
setSize
Deprecated. -
setName
- Specified by:
setNamein interfacecom.foreach.across.modules.web.ui.MutableViewElement- Overrides:
setNamein classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
getControlName
- Specified by:
getControlNamein interfaceFormInputElement
-
setControlName
- Specified by:
setControlNamein interfaceFormInputElement
-
setHtmlId
- Specified by:
setHtmlIdin interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
setHtmlIdin classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
isDisabled
public boolean isDisabled()- Specified by:
isDisabledin interfaceFormInputElement
-
setDisabled
- Specified by:
setDisabledin interfaceFormInputElement
-
addCssClass
- Specified by:
addCssClassin interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
addCssClassin classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
removeCssClass
- Specified by:
removeCssClassin interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
removeCssClassin classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
setAttributes
- Specified by:
setAttributesin interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
setAttributesin classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
setAttribute
- Specified by:
setAttributein interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
setAttributein classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
addAttributes
- Specified by:
addAttributesin interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
addAttributesin classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
removeAttribute
- Specified by:
removeAttributein interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Overrides:
removeAttributein classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
setCustomTemplate
- Specified by:
setCustomTemplatein interfacecom.foreach.across.modules.web.ui.MutableViewElement- Overrides:
setCustomTemplatein classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
setElementType
- Overrides:
setElementTypein classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
addChild
- Overrides:
addChildin classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
addChildren
public ButtonViewElement addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements) - Overrides:
addChildrenin classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
addFirstChild
- Overrides:
addFirstChildin classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
clearChildren
- Overrides:
clearChildrenin classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
apply
public ButtonViewElement apply(Consumer<com.foreach.across.modules.web.ui.elements.ContainerViewElement> consumer) - Overrides:
applyin classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
applyUnsafe
public <U extends com.foreach.across.modules.web.ui.ViewElement> ButtonViewElement applyUnsafe(Consumer<U> consumer) - Overrides:
applyUnsafein classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
setTagName
- Overrides:
setTagNamein classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
set
- Specified by:
setin interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Specified by:
setin interfacecom.foreach.across.modules.web.ui.MutableViewElement- Specified by:
setin interfacecom.foreach.across.modules.web.ui.ViewElement- Overrides:
setin classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
remove
public ButtonViewElement remove(com.foreach.across.modules.web.ui.ViewElement.WitherRemover... functions) - Specified by:
removein interfacecom.foreach.across.modules.web.ui.elements.HtmlViewElement- Specified by:
removein interfacecom.foreach.across.modules.web.ui.MutableViewElement- Specified by:
removein interfacecom.foreach.across.modules.web.ui.ViewElement- Overrides:
removein classcom.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
-
getText
- Specified by:
getTextin interfacecom.foreach.across.modules.web.ui.elements.ConfigurableTextViewElement
-
getTitle
-
getUrl
-
getStyle
-
getStyleRule
-
getType
-
getState
-
getSize
Deprecated. -
getIcon
public com.foreach.across.modules.web.ui.ViewElement getIcon()Set the icon to be aligned on the left-hand side of the text (if there is any text). -
getValue
-
setText
- Specified by:
setTextin interfacecom.foreach.across.modules.web.ui.elements.ConfigurableTextViewElement- Returns:
this.
-
setTitle
- Returns:
this.
-
setUrl
- Returns:
this.
-
setStyleRule
- Returns:
this.
-
setType
- Returns:
this.
-
setState
- Returns:
this.
-
setIcon
Set the icon to be aligned on the left-hand side of the text (if there is any text).- Returns:
this.
-
setValue
- Returns:
this.
-