public interface ToggleableToolbarItem extends JavaClientToolbarItem, ToggleablePluginItem<ToolbarContext>
ToggleablePluginItem.SelectionListener| Modifier and Type | Method and Description |
|---|---|
Icon |
getSelectedIcon(ToolbarContext context)
Returns the icon of this item in selected state or
null if the
pressed icon should be used. |
void |
setSelected(ToolbarContext context,
boolean selected)
Sets the selection mode of this item.
|
getIcon, getLabel, getPressedIcon, getRollOverIcon, isEnabled, isVisiblesetSelectionListenervoid setSelected(@NotNull ToolbarContext context, boolean selected)
setSelected in interface ToggleablePluginItem<ToolbarContext>context - The context operating in.selected - true, if selected.@Nullable Icon getSelectedIcon(@NotNull ToolbarContext context)
null if the
pressed icon should be used.25x25 px.
Ensure to deliver icons of the same dimension in all methods delivering icons
(selected, icon, pressed,
roll over)context - The context to be considered for providing the icon.null, if the pressed icon should be used.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500