Package net.moewes.cloudui.ui5
Class Ui5Icon
- java.lang.Object
-
- net.moewes.cloudui.UiComponent
-
- net.moewes.cloudui.ui5.Ui5Icon
-
public class Ui5Icon extends net.moewes.cloudui.UiComponent
Java wrapper for UI5 web component ui5-icon
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasTooltip()
boolean
isInteractive()
net.moewes.cloudui.UiElement
render()
void
setAccessibleName(String text)
sets accessible-name attribute of ui5-iconvoid
setInteractive(boolean interactive)
sets interactive attribute of ui5-iconvoid
setShowTooltip(boolean showTooltip)
sets show-tooltip attribute of ui5-icon
-
-
-
Constructor Detail
-
Ui5Icon
public Ui5Icon(String iconName)
default constructor- Parameters:
iconName
- name of the icon - see icon explorer
-
-
Method Detail
-
setAccessibleName
public void setAccessibleName(String text)
sets accessible-name attribute of ui5-icon- Parameters:
text
- alternative text for screen reader etc.
-
setInteractive
public void setInteractive(boolean interactive)
sets interactive attribute of ui5-icon- Parameters:
interactive
- flag
-
isInteractive
public boolean isInteractive()
- Returns:
- true if icon is selectable
-
setShowTooltip
public void setShowTooltip(boolean showTooltip)
sets show-tooltip attribute of ui5-icon- Parameters:
showTooltip
- flag
-
hasTooltip
public boolean hasTooltip()
- Returns:
- true if tooltip should be shown
-
render
public net.moewes.cloudui.UiElement render()
- Overrides:
render
in classnet.moewes.cloudui.UiComponent
-
-