Interface TethysUIToolBarManager.TethysUIToolElement
- All Superinterfaces:
OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>
- All Known Implementing Classes:
TethysUICoreToolBarManager.TethysUICoreToolElement
- Enclosing interface:
TethysUIToolBarManager
public static interface TethysUIToolBarManager.TethysUIToolElement
extends OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>
ToolElement.
-
Method Summary
Modifier and TypeMethodDescriptiongetId()Obtain the id.booleanIs the icon enabled?voidsetEnabled(boolean pEnabled) Set the enabled state of the menu.voidSet Icon only.voidSet text for icon.voidSet Text And Icon.voidSet Text Only.voidsetToolTip(String pTip) Set toolTip for icon.Methods inherited from interface io.github.tonywasher.joceanus.oceanus.event.OceanusEventRegistrar.OceanusEventProvider
getEventRegistrar
-
Method Details
-
setText
Set text for icon.- Parameters:
pText- the text
-
setToolTip
Set toolTip for icon.- Parameters:
pTip- the toolTip
-
getId
Obtain the id.- Returns:
- the id
-
isEnabled
boolean isEnabled()Is the icon enabled?- Returns:
- true/false
-
setEnabled
void setEnabled(boolean pEnabled) Set the enabled state of the menu.- Parameters:
pEnabled- true/false
-
setIconOnly
void setIconOnly()Set Icon only. -
setTextAndIcon
void setTextAndIcon()Set Text And Icon. -
setTextOnly
void setTextOnly()Set Text Only.
-