Package net.moewes.cloudui.ui5
Class Ui5Card
- java.lang.Object
-
- net.moewes.cloudui.UiComponent
-
- net.moewes.cloudui.ui5.Ui5Card
-
public class Ui5Card extends net.moewes.cloudui.UiComponent
Java wrapper for UI5 web component ui5-card
-
-
Constructor Summary
Constructors Constructor Description Ui5Card()
default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addActionElement(net.moewes.cloudui.UiComponent... components)
add components to the up right corner of the headervoid
addIcon(String iconName)
add an icon to the headervoid
interactiveHeader(boolean interactiveHeader)
Defines if the ui5-card header would be interactive, e.g gets hover effect, gets focused and headerPress event is fired, when it is pressed.net.moewes.cloudui.UiElement
render()
overridden to support late binding of boolean attributesvoid
setHeading(String text)
sets the header text of the cardvoid
setStatustext(String text)
sets a status text in up right corner of the header of the card.void
setSubHeading(String text)
sets the second text line in the header of the card
-
-
-
Method Detail
-
setHeading
public void setHeading(String text)
sets the header text of the card- Parameters:
text
- text to display as header
-
setSubHeading
public void setSubHeading(String text)
sets the second text line in the header of the card- Parameters:
text
- text to display as subheader
-
setStatustext
public void setStatustext(String text)
sets a status text in up right corner of the header of the card. When component are added to the action slot this is ignored- Parameters:
text
- text to display
-
addIcon
public void addIcon(String iconName)
add an icon to the header- Parameters:
iconName
- name of the icon
-
interactiveHeader
public void interactiveHeader(boolean interactiveHeader)
Defines if the ui5-card header would be interactive, e.g gets hover effect, gets focused and headerPress event is fired, when it is pressed.- Parameters:
interactiveHeader
- when true header ist interactive
-
addActionElement
public void addActionElement(net.moewes.cloudui.UiComponent... components)
add components to the up right corner of the header- Parameters:
components
- one or more ui components
-
render
public net.moewes.cloudui.UiElement render()
overridden to support late binding of boolean attributes- Overrides:
render
in classnet.moewes.cloudui.UiComponent
-
-