Package it.tidalwave.role.ui.spi
Class ToolBarModelSupport<B,T>
java.lang.Object
it.tidalwave.role.ui.spi.ToolBarModelSupport<B,T>
- Type Parameters:
B
- the concrete type of the binderT
- the concrete type of the toolbar
- All Implemented Interfaces:
ToolBarModel
,it.tidalwave.util.As
A support implementation for
ToolBarModel
.- Since:
- 1.1-ALPHA-6
- Author:
- Fabrizio Giudici
-
Nested Class Summary
Nested classes/interfaces inherited from interface it.tidalwave.util.As
it.tidalwave.util.As.Type<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Supplier
<Collection<? extends it.tidalwave.role.ui.UserAction>> The default supplier ofUserAction
s, can be injected for testing. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.tidalwave.util.As
as, as, asMany, asMany, maybeAs, maybeAs
-
Field Details
-
userActionsSupplier
@Nonnull protected final Supplier<Collection<? extends it.tidalwave.role.ui.UserAction>> userActionsSupplierThe default supplier ofUserAction
s, can be injected for testing.
-
-
Constructor Details
-
ToolBarModelSupport
protected ToolBarModelSupport()Default constructor.
-
-
Method Details
-
populate
Populates the toolbar with buttons.- Specified by:
populate
in interfaceToolBarModel
- Parameters:
binder
- the bindertoolBar
- the toolbar
-
populateImpl
Populates the menu bar with menus.- Parameters:
binder
- the bindertoolBar
- the toolbar
-