Interface TethysUILabel
- All Superinterfaces:
TethysUIComponent
- All Known Implementing Classes:
TethysUICoreLabel
Label.
-
Method Summary
Modifier and TypeMethodDescriptionintObtain icon size.getWidth()Obtain the width.voidsetAlignment(TethysUIAlignment pAlign) Set Alignment.voidsetContextMenu(TethysUIScrollMenu<?> pMenu) Set context menu.voidSet error text colour.voidsetIcon(TethysUIArrowIconId pIcon) Set icon for label.voidsetIcon(TethysUIIcon pIcon) Set icon for label.voidsetIcon(TethysUIIconId pId) Set icon for label.voidSet Icon and Text.voidSet Icon only.voidsetIconSize(int pSize) Set the icon size.voidSet Text.voidSet Text And Icon.voidSet Text Only.Methods inherited from interface io.github.tonywasher.joceanus.tethys.api.base.TethysUIComponent
getBorderPadding, getBorderTitle, getId, getNode, getUnderlying, setBorderPadding, setBorderTitle, setEnabled, setPreferredHeight, setPreferredWidth, setVisible
-
Method Details
-
setText
Set Text.- Parameters:
pText- the text
-
setErrorText
void setErrorText()Set error text colour. -
getWidth
Integer getWidth()Obtain the width.- Returns:
- the width
-
setAlignment
Set Alignment.- Parameters:
pAlign- the alignment
-
setIconOnly
void setIconOnly()Set Icon only. -
setTextAndIcon
void setTextAndIcon()Set Text And Icon. -
setIconAndText
void setIconAndText()Set Icon and Text. -
setTextOnly
void setTextOnly()Set Text Only. -
setIcon
Set icon for label.- Parameters:
pId- the icon Id
-
setIcon
Set icon for label.- Parameters:
pIcon- the icon
-
setIcon
Set icon for label.- Parameters:
pIcon- the icon
-
getIconSize
int getIconSize()Obtain icon size.- Returns:
- the size
-
setIconSize
void setIconSize(int pSize) Set the icon size.- Parameters:
pSize- the size to set
-