Package it.tidalwave.role.ui.spi
Class DefaultPresentationModelFactory
java.lang.Object
it.tidalwave.role.ui.spi.DefaultPresentationModelFactory
- All Implemented Interfaces:
PresentationModelFactory
An implementation of
PresentationModelFactory
that creates instances of DefaultPresentationModel
.- Author:
- Fabrizio Giudici
-
Field Summary
Fields inherited from interface it.tidalwave.role.ui.PresentationModelFactory
_PresentationModelFactory_
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreatePresentationModel
(Object owner, Collection<Object> localRoles) Creates a new instance ofPresentationModel
with some roles or role factories.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.tidalwave.role.ui.PresentationModelFactory
createPresentationModel
-
Constructor Details
-
DefaultPresentationModelFactory
public DefaultPresentationModelFactory()
-
-
Method Details
-
createPresentationModel
@Nonnull public PresentationModel createPresentationModel(@Nonnull Object owner, @Nonnull Collection<Object> localRoles) Creates a new instance ofPresentationModel
with some roles or role factories.- Specified by:
createPresentationModel
in interfacePresentationModelFactory
- Parameters:
owner
- the related datumlocalRoles
- roles orRoleFactory
instances to put in the presentation model- Returns:
- the new instance
-