Package net.moewes.cloudui.ui5
Class Ui5Button
- java.lang.Object
-
- net.moewes.cloudui.UiComponent
-
- net.moewes.cloudui.ui5.Ui5Button
-
public class Ui5Button extends net.moewes.cloudui.UiComponentJava wrapper for UI5 web component ui5-buttonthe attributes icon-size and submits are not supported
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUi5Button.Designpossible values of design attribute of ui5-button
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClickHandler(Consumer<net.moewes.cloudui.UiEvent> handler)adds a handler that reacts to a click event of ui5-buttonvoidsetDesign(Ui5Button.Design design)sets the design of a buttonvoidsetDisabled(boolean disabled)disable the buttonvoidsetIcon(String iconName)sets an icon for the buttonvoidsetIconEnd(boolean iconEnd)sets the icon-end attribute of ui-buttonvoidsetText(String text)sets the text of the button
-
-
-
Constructor Detail
-
Ui5Button
public Ui5Button()
default constructor
-
Ui5Button
public Ui5Button(String text)
constructor- Parameters:
text- text of the button
-
-
Method Detail
-
setText
public void setText(String text)
sets the text of the button- Parameters:
text- text of the button
-
setDesign
public void setDesign(Ui5Button.Design design)
sets the design of a button- Parameters:
design- design
-
setDisabled
public void setDisabled(boolean disabled)
disable the button- Parameters:
disabled- true if button is disabled
-
setIcon
public void setIcon(String iconName)
sets an icon for the button- Parameters:
iconName- icon name - see icon explorer
-
setIconEnd
public void setIconEnd(boolean iconEnd)
sets the icon-end attribute of ui-button- Parameters:
iconEnd- if true the icon is displayed behind to text
-
addClickHandler
public void addClickHandler(Consumer<net.moewes.cloudui.UiEvent> handler)
adds a handler that reacts to a click event of ui5-button- Parameters:
handler- handler
-
-