public class ButtonViewElement extends com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement implements com.foreach.across.modules.web.ui.elements.ConfigurableTextViewElement, FormInputElement
Modifier and Type | Class and Description |
---|---|
static class |
ButtonViewElement.State |
static class |
ButtonViewElement.Type |
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_TYPE |
Constructor and Description |
---|
ButtonViewElement() |
Modifier and Type | Method and Description |
---|---|
String |
getControlName() |
com.foreach.across.modules.web.ui.ViewElement |
getIcon() |
Size |
getSize() |
ButtonViewElement.State |
getState() |
Style |
getStyle() |
String |
getText() |
String |
getTitle() |
ButtonViewElement.Type |
getType() |
String |
getUrl() |
String |
getValue() |
boolean |
isDisabled() |
void |
setControlName(String controlName) |
void |
setDisabled(boolean disabled) |
void |
setHtmlId(String htmlId) |
void |
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).
|
void |
setName(String name) |
void |
setSize(Size size) |
void |
setState(ButtonViewElement.State state) |
void |
setStyle(Style style) |
void |
setText(String text) |
void |
setTitle(String title)
Set the title attribute for the element.
|
void |
setType(ButtonViewElement.Type type) |
void |
setUrl(String url) |
void |
setValue(String value) |
addAttributes, addCssClass, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, removeAttribute, removeCssClass, returnIfType, setAttribute, setAttributes, setTagName
addChild, addChildren, addFirstChild, apply, applyUnsafe, clearChildren, elementStream, find, find, findAll, findAll, findAll, findOrSelf, findOrSelf, flatStream, getChildren, getCustomTemplate, getElementType, getName, hasChildren, removeAllFromTree, removeChild, removeFromTree, removeFromTree, setCustomTemplate, setElementType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttributes, addCssClass, getAttribute, getAttribute, getAttributes, getHtmlId, getTagName, hasAttribute, hasCssClass, removeAttribute, removeCssClass, setAttribute, setAttributes
public static final String ELEMENT_TYPE
public String getText()
getText
in interface com.foreach.across.modules.web.ui.elements.ConfigurableTextViewElement
public void setText(String text)
setText
in interface com.foreach.across.modules.web.ui.elements.ConfigurableTextViewElement
public void setName(String name)
setName
in interface com.foreach.across.modules.web.ui.MutableViewElement
setName
in class com.foreach.across.modules.web.ui.elements.ContainerViewElement
public String getControlName()
getControlName
in interface FormInputElement
public void setControlName(String controlName)
setControlName
in interface FormInputElement
public void setHtmlId(String htmlId)
setHtmlId
in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
setHtmlId
in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
public boolean isDisabled()
isDisabled
in interface FormInputElement
public void setDisabled(boolean disabled)
setDisabled
in interface FormInputElement
public String getValue()
public void setValue(String value)
public String getTitle()
public void setTitle(String title)
title
- textpublic com.foreach.across.modules.web.ui.ViewElement getIcon()
public void setIcon(com.foreach.across.modules.web.ui.ViewElement icon)
icon
- ViewElementpublic ButtonViewElement.Type getType()
public void setType(@NonNull ButtonViewElement.Type type)
public Style getStyle()
public void setStyle(Style style)
public ButtonViewElement.State getState()
public void setState(ButtonViewElement.State state)
public Size getSize()
public void setSize(Size size)
public String getUrl()
public void setUrl(String url)
Copyright © 2019. All rights reserved.