Interface VTViewTemplateProvider
-
- All Known Implementing Classes:
ViewTemplateProviderImpl
public interface VTViewTemplateProvider
This interface defines a service capable of providing an instance of theVTViewTemplate
.- Author:
- Eugen Neufeld
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.Set<VTStyleProperty>
getStyleProperties(VElement vElement, ViewModelContext viewModelContext)
Return allStyleProperties
which are applicable to the providedVElement
.VTViewTemplate
getViewTemplate()
Deprecated.UsegetStyleProperties(VElement, ViewModelContext)
instead of using theVTViewTemplate
directlyboolean
hasControlValidationTemplate()
Deprecated.The usage ofVTControlValidationTemplates
is deprecated.
-
-
-
Method Detail
-
getStyleProperties
java.util.Set<VTStyleProperty> getStyleProperties(VElement vElement, ViewModelContext viewModelContext)
Return allStyleProperties
which are applicable to the providedVElement
. The returned values might be cached by the caller. Therefore on the same arguments, theVTViewTemplateProvider
is expected to return the same set of VTStyleProperty- Parameters:
vElement
- theVElement
to get theStyleProperties
forviewModelContext
- theViewModelContext
currently in use- Returns:
- the collection of all
StyleProperties
which are applicable to the providedVElement
or an empty set
-
getViewTemplate
@Deprecated VTViewTemplate getViewTemplate()
Deprecated.UsegetStyleProperties(VElement, ViewModelContext)
instead of using theVTViewTemplate
directlyReturns a copy of the view template. Modifications on this copy will not influence any future calls on theVTViewTemplateProvider
- Returns:
- a copy of the
VTViewTemplate
-
hasControlValidationTemplate
@Deprecated boolean hasControlValidationTemplate()
Deprecated.The usage ofVTControlValidationTemplates
is deprecated. UseVTValidationStyleProperties
instead.- Returns:
- whether the
VTViewTemplateProvider
provides aVTControlValidationTemplate
-
-