Class PolymerPublishedEventRpcHandler
- java.lang.Object
-
- com.vaadin.flow.component.polymertemplate.rpc.PolymerPublishedEventRpcHandler
-
- All Implemented Interfaces:
DeprecatedPolymerPublishedEventHandler,Serializable
public class PolymerPublishedEventRpcHandler extends Object implements DeprecatedPolymerPublishedEventHandler
Polymer utilitiy class for handling polymer rpc events for @EventHandler. RegistersPolymerPublishedEventRpcHandleras a service to make it available inLookupin an OSGi container.For internal use only. May be renamed or removed in a future release.
- Since:
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolymerPublishedEventRpcHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetTemplateItem(Component template, elemental.json.JsonObject argValue, Type convertedType)Get the template model object and type.booleanisTemplateModelValue(Component instance, elemental.json.JsonValue argValue, Class<?> convertedType)Validate that the given Component instance is a PolymerTemplate and that the value can be converted.
-
-
-
Method Detail
-
isTemplateModelValue
public boolean isTemplateModelValue(Component instance, elemental.json.JsonValue argValue, Class<?> convertedType)
Validate that the given Component instance is a PolymerTemplate and that the value can be converted.- Specified by:
isTemplateModelValuein interfaceDeprecatedPolymerPublishedEventHandler- Parameters:
instance- Component to be validatedargValue- received valueconvertedType- target type that value should be converted to- Returns:
- true if valid template model value
-
getTemplateItem
public Object getTemplateItem(Component template, elemental.json.JsonObject argValue, Type convertedType)
Get the template model object and type.- Specified by:
getTemplateItemin interfaceDeprecatedPolymerPublishedEventHandler- Parameters:
template- polymer template to get model fromargValue- argument valueconvertedType- value type- Returns:
- the provided model value
- Throws:
IllegalStateException- if the component is not attached to the UI
-
-