Protected
Readonly
commandProtected
Readonly
contextProtected
Readonly
contributionProtected
fireProtected
itemsProtected
menuProtected
Readonly
menuReadonly
onProtected
Readonly
onProtected
isQuery whether a conditional toolbar item
should be shown in the toolbar.
This implementation delegates to the item
's own intrinsic conditionality.
a menu toolbar item
the widget that is updating the toolbar
false
if the item
should be suppressed, otherwise true
Protected
isQuery whether a toolbar item
should be shown in the toolbar.
This implementation delegates to item-specific checks according to their type.
a menu toolbar item
the widget that is updating the toolbar
false
if the item
should be suppressed, otherwise true
Query whether a menu toolbar item
should be shown in the toolbar.
This implementation returns false
if the item
does not have any actual menu to show.
a menu toolbar item
the widget that is updating the toolbar
false
if the item
should be suppressed, otherwise true
Registers the given item. Throws an error, if the corresponding command cannot be found or an item has been already registered for the desired command.
the item to register.
Optional
when: ((widget) => boolean)Generate a single ID string from a menu path that is likely to be unique amongst the items in the toolbar.
a menubar path
a likely unique ID based on the path
Returns an array of tab-bar toolbar items which are visible when the widget
argument is the current one.
By default returns with all items where the command is enabled and item.isVisible
is true
.
Main, shared registry for tab-bar toolbar items.