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
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault PresentationModelCreates aPresentationModel.default PresentationModelcreatePresentationModel(Object instanceRole) Creates aPresentationModelwith a single role.createPresentationModel(Collection<Object> instanceRoles) Creates aPresentationModelwith some roles.static PresentableCreates a defaultPresentablefor the given object.
-
Field Details
-
_Presentable_
-
-
Method Details
-
createPresentationModel
Creates aPresentationModel.- Returns:
- the
PresentationModel - Since:
- 3.2-ALPHA-3 (refactored)
-
createPresentationModel
Creates aPresentationModelwith some roles.- Parameters:
instanceRoles- the roles- Returns:
- the
PresentationModel - Since:
- 3.2-ALPHA-3 (refactored)
-
createPresentationModel
Creates aPresentationModelwith a single role.- Parameters:
instanceRole- the role- Returns:
- the
PresentationModel - Since:
- 3.2-ALPHA-3
-
of
Creates a defaultPresentablefor the given object.- Parameters:
owner- the object- Returns:
- the new instance
- Since:
- 3.2-ALPHA-2
-