C
- type of the component being exportedpublic interface WebComponentConfiguration<C extends Component> extends Serializable
WebComponentExporter
. Provides all the necessary information to
generate the web component resources and constructs new
WebComponentBinding
instances with
createWebComponentBinding(com.vaadin.flow.di.Instantiator, com.vaadin.flow.dom.Element, elemental.json.JsonObject)
;for constructing new instances
Modifier and Type | Method and Description |
---|---|
WebComponentBinding<C> |
createWebComponentBinding(Instantiator instantiator,
Element element,
elemental.json.JsonObject newAttributeDefaults)
Creates a new
WebComponentBinding instance. |
Class<C> |
getComponentClass()
Retrieve the type of the component.
|
Class<? extends WebComponentExporter<C>> |
getExporterClass()
Retrieves the type of the
WebComponentExporter from which this
configuration has been generated. |
Set<PropertyData<? extends Serializable>> |
getPropertyDataSet()
Set of all the
PropertyData objects defining the web component's
properties. |
Class<? extends Serializable> |
getPropertyType(String propertyName)
Retrieve the type of a property's value.
|
String |
getTag()
Retrieves the tag name configured by the web component exporter.
|
boolean |
hasProperty(String propertyName)
Check if the configuration has a property identified by the
propertyName . |
boolean hasProperty(String propertyName)
propertyName
.propertyName
- name of the property, not nullClass<? extends Serializable> getPropertyType(String propertyName)
null
propertyName
- name of the property, not nullClass<C> getComponentClass()
Set<PropertyData<? extends Serializable>> getPropertyDataSet()
PropertyData
objects defining the web component's
properties.PropertyData
WebComponentBinding<C> createWebComponentBinding(Instantiator instantiator, Element element, elemental.json.JsonObject newAttributeDefaults)
WebComponentBinding
instance.instantiator
- Instantiator
used to construct
instanceselement
- element which acts as the root element for the exported
component
instancenewAttributeDefaults
- JsonObject
containing default overrides set by the
user defining the component on a web page. These defaults are
set using the web component's attributes.String getTag()
null
Class<? extends WebComponentExporter<C>> getExporterClass()
WebComponentExporter
from which this
configuration has been generated.Copyright © 2023. All rights reserved.