Package net.moewes.cloudui.ui5
Class Ui5Label
- java.lang.Object
-
- net.moewes.cloudui.UiComponent
-
- net.moewes.cloudui.ui5.Ui5Label
-
public class Ui5Label extends net.moewes.cloudui.UiComponent
Java wrapper for UI5 web component ui5-label
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isColonShown()
boolean
isRequired()
boolean
isWrapEnabled()
net.moewes.cloudui.UiElement
render()
void
setFor(String id)
sets the for attribute of ui5-labelvoid
setFor(net.moewes.cloudui.UiComponent element)
sets the for attribute of ui5-labelvoid
setRequired(boolean required)
sets the required attribute of ui5-labelvoid
setShowColon(boolean showColon)
sets showColon attribute of ui5-labelvoid
setText(String text)
sets the text to displayvoid
setWrap(boolean wrap)
sets the wrap attribute of ui5-label
-
-
-
Constructor Detail
-
Ui5Label
public Ui5Label()
default constructor
-
Ui5Label
public Ui5Label(String text)
constructor- Parameters:
text
- text to display
-
-
Method Detail
-
setText
public void setText(String text)
sets the text to display- Parameters:
text
- text to display
-
setFor
public void setFor(net.moewes.cloudui.UiComponent element)
sets the for attribute of ui5-label- Parameters:
element
- component for that this label is for
-
setFor
public void setFor(String id)
sets the for attribute of ui5-labelhint: consider that the id is dynamically generated for UiComponents. Call this method as late as possible
- Parameters:
id
- id of the input this label is for
-
setRequired
public void setRequired(boolean required)
sets the required attribute of ui5-label- Parameters:
required
- flag
-
isRequired
public boolean isRequired()
- Returns:
- true if label is for a required field
-
setShowColon
public void setShowColon(boolean showColon)
sets showColon attribute of ui5-label- Parameters:
showColon
- if true a colon is added
-
isColonShown
public boolean isColonShown()
- Returns:
- true if colon at the end of the label ist added
-
setWrap
public void setWrap(boolean wrap)
sets the wrap attribute of ui5-label- Parameters:
wrap
- if true label could be multiline
-
isWrapEnabled
public boolean isWrapEnabled()
- Returns:
- true if wrap ist enabled
-
render
public net.moewes.cloudui.UiElement render()
- Overrides:
render
in classnet.moewes.cloudui.UiComponent
-
-