Package com.vaadin.flow.templatemodel
Interface ComplexModelType<T>
-
- Type Parameters:
T
- the proxy type used by this type
- All Superinterfaces:
ModelType
,Serializable
- All Known Implementing Classes:
BasicComplexModelType
,BeanModelType
,ListModelType
,ModelDescriptor
@Deprecated public interface ComplexModelType<T> extends ModelType
Deprecated.Template model and model types are not supported for lit template, but you can use@Id
mapping and the component API or the element API with property synchronization instead. Polymer template support is deprecated - we recommend you to useLitTemplate
instead. Read more details from the Vaadin blog.A complex model type (represents either a list or a bean).For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StateNode
applicationToModel(Object applicationValue, PropertyFilter filter)
Deprecated.Creates a model value representation of the provided application value.<C> ComplexModelType<C>
cast(Class<C> proxyType)
Deprecated.Checks that this type uses the provided proxy type and returns this type as a model type with that proxy type.-
Methods inherited from interface com.vaadin.flow.templatemodel.ModelType
accepts, createInitialValue, getJavaType, modelToApplication, toJson
-
-
-
-
Method Detail
-
applicationToModel
StateNode applicationToModel(Object applicationValue, PropertyFilter filter)
Deprecated.Description copied from interface:ModelType
Creates a model value representation of the provided application value.For application values that contain properties (i.e. beans), the provided filter is used to determine which properties from the bean should be included in the model representation.
- Specified by:
applicationToModel
in interfaceModelType
- Parameters:
applicationValue
- the user value to convertfilter
- the filter to use to determine which properties to include, notnull
- Returns:
- a model value representation of the provided user value.
-
cast
<C> ComplexModelType<C> cast(Class<C> proxyType)
Deprecated.Checks that this type uses the provided proxy type and returns this type as a model type with that proxy type.- Type Parameters:
C
- the proxy type- Parameters:
proxyType
- the proxy type to cast to- Returns:
- this model type
-
-