Interface ToggleableToolbarItem
- All Superinterfaces:
Item<ToolbarContext>,JavaClientToolbarItem,ToggleablePluginItem<ToolbarContext>
public interface ToggleableToolbarItem
extends JavaClientToolbarItem, ToggleablePluginItem<ToolbarContext>
A toggleable item to be used in a toolbar.
- Since:
- 5.0.204
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.client.plugin.ToggleablePluginItem
ToggleablePluginItem.SelectionListener -
Method Summary
Modifier and TypeMethodDescription@Nullable IcongetSelectedIcon(@NotNull ToolbarContext context) Returns the icon of this item in selected state ornullif thepressed iconshould be used.
The recommended dimensions for this icon is within25x25 px.voidsetSelected(@NotNull ToolbarContext context, boolean selected) Sets the selection mode of this item.Methods inherited from interface de.espirit.firstspirit.client.plugin.toolbar.JavaClientToolbarItem
getIcon, getLabel, getPressedIcon, getRollOverIcon, isEnabled, isVisibleMethods inherited from interface de.espirit.firstspirit.client.plugin.ToggleablePluginItem
setSelectionListener
-
Method Details
-
setSelected
Sets the selection mode of this item.- Specified by:
setSelectedin interfaceToggleablePluginItem<ToolbarContext>- Parameters:
context- The context operating in.selected-true, if selected.- Since:
- 5.0.204
-
getSelectedIcon
Returns the icon of this item in selected state ornullif thepressed iconshould be used.
The recommended dimensions for this icon is within25x25 px. Ensure to deliver icons of the same dimension in all methods delivering icons (selected,icon,pressed,roll over)- Parameters:
context- The context to be considered for providing the icon.- Returns:
- The icon of this item in selected state or
null, if thepressed iconshould be used. - Since:
- 5.0.204
-