Interface EntityViewElementBuilderService
- All Known Implementing Classes:
EntityViewElementBuilderServiceImpl
public interface EntityViewElementBuilderService
Central service interface for retrieving or creating
ViewElementBuilder
instances for EntityPropertyDescriptor
s.- Author:
- Arne Vandamme
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncom.foreach.across.modules.web.ui.ViewElementBuilder
createElementBuilder
(EntityPropertyDescriptor descriptor, ViewElementMode mode) Creates a newViewElementBuilder
instance for the given property descriptor.com.foreach.across.modules.web.ui.ViewElementBuilder
createElementBuilder
(EntityPropertyDescriptor descriptor, ViewElementMode mode, String elementType) Creates a newViewElementBuilder
instance of the given elementType for the specific property descriptor.com.foreach.across.modules.web.ui.ViewElementBuilder
getElementBuilder
(EntityPropertyDescriptor descriptor, ViewElementMode mode) Retrieves aViewElementBuilder
for a property descriptor.
-
Method Details
-
createElementBuilder
com.foreach.across.modules.web.ui.ViewElementBuilder createElementBuilder(EntityPropertyDescriptor descriptor, ViewElementMode mode) Creates a newViewElementBuilder
instance for the given property descriptor. The type of the builder will be determined automatically based on the descriptor and requested mode.- Parameters:
descriptor
- of the specific propertymode
- for which we are requesting the builder- Returns:
- newly created builder instance
-
createElementBuilder
com.foreach.across.modules.web.ui.ViewElementBuilder createElementBuilder(EntityPropertyDescriptor descriptor, ViewElementMode mode, String elementType) Creates a newViewElementBuilder
instance of the given elementType for the specific property descriptor.- Parameters:
descriptor
- of the specific propertymode
- for which we are requesting the builderelementType
- of the builder that should be created- Returns:
- newly created builder instance
-
getElementBuilder
com.foreach.across.modules.web.ui.ViewElementBuilder getElementBuilder(EntityPropertyDescriptor descriptor, ViewElementMode mode) Retrieves aViewElementBuilder
for a property descriptor. Depending on the backing strategy a new or reusable instance will be returned.- Parameters:
descriptor
- of the specific propertymode
- for which we are requesting the builder- Returns:
- builder instance
-