Package it.tidalwave.role.ui
Interface Presentable
- All Known Implementing Classes:
SimpleCompositePresentable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The role of an object that can be presented on a UI, thus is capable of creating a
PresentationModel
.- Author:
- Fabrizio Giudici
- Stereotype:
- Role
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault PresentationModel
Creates aPresentationModel
.default PresentationModel
createPresentationModel
(Object instanceRole) Creates aPresentationModel
with a single role.createPresentationModel
(Collection<Object> instanceRoles) Creates aPresentationModel
with some roles.static Presentable
Creates a defaultPresentable
for the given object.
-
Field Details
-
_Presentable_
-
-
Method Details
-
createPresentationModel
Creates aPresentationModel
.- Returns:
- the
PresentationModel
- Since:
- 3.2-ALPHA-3 (refactored)
-
createPresentationModel
Creates aPresentationModel
with some roles.- Parameters:
instanceRoles
- the roles- Returns:
- the
PresentationModel
- Since:
- 3.2-ALPHA-3 (refactored)
-
createPresentationModel
Creates aPresentationModel
with a single role.- Parameters:
instanceRole
- the role- Returns:
- the
PresentationModel
- Since:
- 3.2-ALPHA-3
-
of
Creates a defaultPresentable
for the given object.- Parameters:
owner
- the object- Returns:
- the new instance
- Since:
- 3.2-ALPHA-2
-