public class ViewTemplateProviderImpl extends Object implements VTViewTemplateProvider
ViewTemplateSupplier to offer an
extensible mechanism of gathering VTStyleProperties from different sources.| Constructor and Description |
|---|
ViewTemplateProviderImpl() |
| Modifier and Type | Method and Description |
|---|---|
Set<VTStyleProperty> |
getStyleProperties(VElement vElement,
ViewModelContext viewModelContext)
Return all
StyleProperties which are applicable to the provided VElement. |
VTViewTemplate |
getViewTemplate()
Deprecated.
|
boolean |
hasControlValidationTemplate()
Deprecated.
|
@Deprecated public VTViewTemplate getViewTemplate()
VTViewTemplateProvider
This implementation returns a new VTViewTemplate merged from all view templates known to the
ViewTemplateSuppliers. If multiple view templates provide a
VTControlValidationTemplate, it is not specified which one is used.
getViewTemplate in interface VTViewTemplateProviderVTViewTemplate which might be empty but never null.VTViewTemplateProvider.getViewTemplate()public Set<VTStyleProperty> getStyleProperties(VElement vElement, ViewModelContext viewModelContext)
VTViewTemplateProviderStyleProperties which are applicable to the provided VElement.
The returned values might be cached by the caller. Therefore on the same arguments, the
VTViewTemplateProvider is expected to return the same set of VTStylePropertygetStyleProperties in interface VTViewTemplateProvidervElement - the VElement to get the StyleProperties forviewModelContext - the ViewModelContext currently in useStyleProperties which are applicable to the provided
VElement or an empty set@Deprecated public boolean hasControlValidationTemplate()
hasControlValidationTemplate in interface VTViewTemplateProviderVTViewTemplateProvider provides a VTControlValidationTemplateCopyright © 2018. All rights reserved.