T - the (basic) Java type used by this model type@Id mapping and the component
API or the element API with property synchronization instead.
Polymer template support is deprecated - we recommend you to use
LitTemplate instead. Read more details from the
Vaadin blog.@Deprecated public abstract class AbstractBasicModelType<T> extends Object implements ModelType
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBasicModelType(Class<T> type)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Type applicationType)
Deprecated.
Checks whether this type can accept application values of the given type.
|
protected Object |
convertToApplication(Serializable modelValue)
Deprecated.
Converts the given model value to the application type of this model
type.
|
void |
createInitialValue(StateNode node,
String property)
Deprecated.
Create initial value for the given
property and set it for the
node. |
Class<T> |
getJavaType()
Deprecated.
Gets the Java
Type that this model encapsulates. |
protected static <M> Map<Class<?>,M> |
loadBasicTypes(Function<Class<?>,M> factory)
Deprecated.
|
elemental.json.JsonValue |
toJson()
Deprecated.
Creates a JSON representation of this model type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationToModel, getSupportedTypesString, modelToApplicationpublic boolean accepts(Type applicationType)
ModelTypepublic Class<T> getJavaType()
ModelTypeType that this model encapsulates.getJavaType in interface ModelTypepublic elemental.json.JsonValue toJson()
ModelTypepublic void createInitialValue(StateNode node, String property)
ModelTypeproperty and set it for the
node.createInitialValue in interface ModelTypenode - the node where the initial value should be set the
propertyproperty - the property in the node whose initial value needs to
be createdprotected Object convertToApplication(Serializable modelValue)
modelValue - the model value to convertnull if the application
type is a primitiveCopyright © 2021. All rights reserved.