Interface TethysUIButton
- All Superinterfaces:
OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>,TethysUIComponent
- All Known Implementing Classes:
TethysUICoreButton
public interface TethysUIButton
extends OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>, TethysUIComponent
Tethys Button.
The EventProvider fires the following events.
- TethysUIEvent.PRESSED is fired when a button is pressed
-
Method Summary
Modifier and TypeMethodDescriptionintObtain icon size.voidsetIcon(TethysUIArrowIconId pIcon) Set icon for button.voidsetIcon(TethysUIIcon pIcon) Set icon for button.voidsetIcon(TethysUIIconId pId) Set icon for button.voidSet Icon and Text.voidSet Icon only.voidsetIconSize(int pSize) Set the icon size.voidSet Null Margins.voidSet text for button.voidSet Text And Icon.voidSet Text Only.voidsetToolTip(String pTip) Set toolTip for button.Methods inherited from interface io.github.tonywasher.joceanus.oceanus.event.OceanusEventRegistrar.OceanusEventProvider
getEventRegistrarMethods inherited from interface io.github.tonywasher.joceanus.tethys.api.base.TethysUIComponent
getBorderPadding, getBorderTitle, getId, getNode, getUnderlying, setBorderPadding, setBorderTitle, setEnabled, setPreferredHeight, setPreferredWidth, setVisible
-
Method Details
-
getIconSize
int getIconSize()Obtain icon size.- Returns:
- the size
-
setIconSize
void setIconSize(int pSize) Set the icon size.- Parameters:
pSize- the size to set
-
setText
Set text for button.- Parameters:
pText- the text
-
setIcon
Set icon for button.- Parameters:
pId- the icon Id
-
setIcon
Set icon for button.- Parameters:
pIcon- the icon
-
setIcon
Set icon for button.- Parameters:
pIcon- the icon
-
setToolTip
Set toolTip for button.- Parameters:
pTip- the toolTip
-
setNullMargins
void setNullMargins()Set Null Margins. -
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.
-