Class AbstractInjectableElementInitializer
java.lang.Object
com.vaadin.flow.component.template.internal.AbstractInjectableElementInitializer
- Direct Known Subclasses:
InjectableLitElementInitializer
public abstract class AbstractInjectableElementInitializer
extends Object
implements Consumer<Map<String,String>>
Generic initializer logic.
For internal use only. May be renamed or removed in a future release.
- Since:
- Author:
- Vaadin Ltd
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates an initializer for theelement
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected Element
Returns server side element to initialize.protected abstract boolean
isStaticAttribute
(String name, String value) Checks whether the attribute declaration is an attribute with a static value ( so it can be set on the serve side).
-
Constructor Details
-
AbstractInjectableElementInitializer
Creates an initializer for theelement
.- Parameters:
element
- element to initialize
-
-
Method Details
-
accept
-
isStaticAttribute
Checks whether the attribute declaration is an attribute with a static value ( so it can be set on the serve side).- Parameters:
name
- the template attribute namevalue
- the template attribute value- Returns:
- whether the attribute declaration is an attribute with a static value
-
getElement
Returns server side element to initialize.- Returns:
- the server side element to initialize
-