Interface StudioPreviewComponentLoader
- All Known Implementing Classes:
StudioFullCalendarPreviewLoader
,StudioGeoMapComponentPreviewLoader
,StudioKanbanComponentPreviewLoader
,StudioStandardComponentsPreviewLoader
,StudioSupersetDashboardPreviewLoader
public interface StudioPreviewComponentLoader
Vaadin component loader for Studio view designer preview.
Register new loaders via SPI in
META-INF/services/io.jmix.flowui.kit.meta.component.preview.StudioPreviewComponentLoader
- See Also:
-
StudioPreviewComponentProvider
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isSupported
(org.dom4j.Element element) Define the element that this loader can load.com.vaadin.flow.component.Component
load
(org.dom4j.Element componentElement, org.dom4j.Element viewElement) Create vaadin component from component xml element.loadBoolean
(org.dom4j.Element element, String attributeName) default void
loadBoolean
(org.dom4j.Element element, String attributeName, Consumer<Boolean> setter) default void
loadClassNames
(com.vaadin.flow.component.HasStyle component, org.dom4j.Element element) loadDouble
(org.dom4j.Element element, String attributeName) default void
loadDouble
(org.dom4j.Element element, String attributeName, Consumer<Double> setter) default void
loadEnabled
(com.vaadin.flow.component.HasEnabled component, org.dom4j.Element element) default <T extends Enum<T>>
voiddefault void
loadHeight
(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) loadInteger
(org.dom4j.Element element, String attributeName) default void
loadInteger
(org.dom4j.Element element, String attributeName, Consumer<Integer> setter) default void
loadMaxHeight
(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) default void
loadMaxWidth
(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) default void
loadMinHeight
(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) default void
loadMinWidth
(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) default void
loadSizeAttributes
(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) loadString
(org.dom4j.Element element, String attributeName) loadString
(org.dom4j.Element element, String attributeName, boolean emptyToNull) default void
loadString
(org.dom4j.Element element, String attributeName, Consumer<String> setter) default void
loadWidth
(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) default void
-
Field Details
-
VIEW_SCHEMA
- See Also:
-
-
Method Details
-
isSupported
boolean isSupported(org.dom4j.Element element) Define the element that this loader can load. -
load
@Nullable com.vaadin.flow.component.Component load(org.dom4j.Element componentElement, org.dom4j.Element viewElement) Create vaadin component from component xml element.- Parameters:
componentElement
- xml element of componentviewElement
- xml element of view containingcomponentElement
- See Also:
-
Element
-
loadString
-
loadString
-
loadBoolean
-
loadInteger
-
loadDouble
-
loadEnum
-
loadString
-
loadBoolean
-
loadInteger
-
loadDouble
-
loadEnum
-
loadWidth
default void loadWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadMaxWidth
default void loadMaxWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadMinWidth
default void loadMinWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadHeight
default void loadHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadMaxHeight
default void loadMaxHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadMinHeight
default void loadMinHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadSizeAttributes
default void loadSizeAttributes(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadEnabled
default void loadEnabled(com.vaadin.flow.component.HasEnabled component, org.dom4j.Element element) -
loadClassNames
default void loadClassNames(com.vaadin.flow.component.HasStyle component, org.dom4j.Element element) -
split
-
split
-