N
- the native widgetpublic interface WToolItem<N> extends WWidget<org.eclipse.e4.ui.model.application.ui.menu.MToolItem>
WWidget.WidgetState
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG_CHECKBOX
Tag used to mark a tool item to be a checkbox
|
Modifier and Type | Method and Description |
---|---|
void |
setHandled(boolean handled)
Inform the widget that it is backed by a handler
|
void |
setOnActionCallback(@NonNull java.lang.Runnable onActionCallback)
The callback invoked when the item is clicked
|
activate, addStyleClasses, addStyleClasses, deactivate, getDomElement, getWidget, getWidgetState, isActive, registerActivationCallback, removeStyleClasses, removeStyleClasses, setDomElement, setPropertyChangeHandler, setStyleId, setWidgetState
static final java.lang.String TAG_CHECKBOX
void setOnActionCallback(@NonNull java.lang.Runnable onActionCallback)
onActionCallback
- the callbackvoid setHandled(boolean handled)
handled
- true
if handled