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.UiComponent
Java 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 class
Ui5Button.Design
possible values of design attribute of ui5-button
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClickHandler(Consumer<net.moewes.cloudui.UiEvent> handler)
adds a handler that reacts to a click event of ui5-buttonvoid
setDesign(Ui5Button.Design design)
sets the design of a buttonvoid
setDisabled(boolean disabled)
disable the buttonvoid
setIcon(String iconName)
sets an icon for the buttonvoid
setIconEnd(boolean iconEnd)
sets the icon-end attribute of ui-buttonvoid
setText(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
-
-