Uses of Interface
it.tidalwave.role.ui.PresentationModel
-
Uses of PresentationModel in it.tidalwave.role.ui
Modifier and TypeFieldDescriptionstatic final As.Type
<SimpleComposite<PresentationModel>> PresentationModel._SimpleCompositeOfPresentationModel_
static final Class
<PresentationModel> PresentationModel.PresentationModel
Modifier and TypeMethodDescriptiondefault PresentationModel
Presentable.createPresentationModel()
Creates aPresentationModel
.default PresentationModel
Presentable.createPresentationModel
(Object instanceRole) Creates aPresentationModel
with a single role.Presentable.createPresentationModel
(Collection<Object> instanceRoles) Creates aPresentationModel
with some roles.default PresentationModel
PresentationModelFactory.createPresentationModel
(Object datum) Creates a new instance ofPresentationModel
.PresentationModelFactory.createPresentationModel
(Object datum, Collection<Object> roles) Creates a new instance ofPresentationModel
with some roles or role factories.static PresentationModel
PresentationModel.empty()
Returns an empty instance (no roles, with the exception of a dummyDisplayable
).static PresentationModel
Creates an instance given an owner and no roles.static PresentationModel
Creates an instance given an owner and a single role.static PresentationModel
PresentationModel.of
(Object owner, Collection<Object> roles) Creates an instance given an owner and multiple roles.static PresentationModel
PresentationModel.ofMaybePresentable
(As owner) Creates an instance from an owner which might have thePresentable
role.static PresentationModel
PresentationModel.ofMaybePresentable
(As owner, Collection<Object> roles) Creates an instance from an owner which might have thePresentable
role.Modifier and TypeMethodDescriptionReturns an object given its name. -
Uses of PresentationModel in it.tidalwave.role.ui.spi
Modifier and TypeMethodDescriptionDefaultPresentationModelFactory.createPresentationModel
(Object owner, Collection<Object> localRoles) Creates a new instance ofPresentationModel
with some roles or role factories.SimpleCompositePresentable.createPresentationModel
(Collection<Object> roles) Creates aPresentationModel
with some roles.static <T extends As>
PresentationModelPresentationModelCollectors.toCompositePresentationModel
(Iterable<? extends T> i, Function<? super T, Object> roleCreator) A facility method that creates a compositePresentationModel
out of an iterable (which means an array, a collection or a stream) of objects implementingAs
.static <T extends As>
PresentationModelPresentationModelCollectors.toCompositePresentationModel
(Iterable<T> i) A facility simplified version ofPresentationModelCollectors.toCompositePresentationModel(java.lang.Iterable, java.util.function.Function)
.