Interface ToggleablePluginItem<C extends BaseContext>
- All Known Subinterfaces:
ToggleableToolbarItem
public interface ToggleablePluginItem<C extends BaseContext>
Definition of an item providing a toggleable state.
- Since:
- 5.0.204
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Listener to inform about selection change events. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setSelected
(C context, boolean selected) Sets the selection mode of this item.void
setSelectionListener
(ToggleablePluginItem.SelectionListener selectionListener) Passes a selection change listener to this plugin item.
-
Method Details
-
setSelectionListener
Passes a selection change listener to this plugin item. Use given listener to inform about selection changes different to selected state passed insetSelected(BaseContext, boolean)
- Since:
- 5.0.204
-
setSelected
Sets the selection mode of this item.- Parameters:
context
- The context operating in.selected
-true
, if selected.- Since:
- 5.0.204
-