Package io.jmix.groupgridflowui.kit.meta
Class StudioGroupGridPreviewLoader
java.lang.Object
io.jmix.groupgridflowui.kit.meta.StudioGroupGridPreviewLoader
- All Implemented Interfaces:
StudioPreviewComponentLoader
Preview loader used in Studio. For internal use only.
Source loader io.jmix.groupgridflowui.component.loader.GroupDataGridLoader.
Columns and rows are deliberately left to Studio: JmixGroupGrid extends a forked
io.jmix.groupgridflowui.kit.vaadin.grid.Grid, so its columns are not
com.vaadin.flow.component.grid.Grid.Column and the preview column-binding protocol cannot
carry them. This loader exists so the tag is owned by the framework rather than by Studio's
reflection fallback; the resulting preview matches what that fallback produced.
-
Field Summary
FieldsFields inherited from interface io.jmix.flowui.kit.meta.component.preview.StudioPreviewComponentLoader
FRAGMENT_SCHEMA, MAIN_VIEW_SCHEMA, MAIN_VIEW_TAB_MODE_SCHEMA, VIEW_OR_FRAGMENT_SCHEMAS, VIEW_SCHEMA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSupported(org.dom4j.Element element) Define the element that this loader can load.@Nullable com.vaadin.flow.component.Componentload(org.dom4j.Element componentElement, org.dom4j.Element viewElement) Create vaadin component from component xml element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.kit.meta.component.preview.StudioPreviewComponentLoader
hasViewOrFragmentSchema, load, loadBoolean, loadBoolean, loadClassNames, loadComponentBaseAttributes, loadDouble, loadDouble, loadEnabled, loadEnum, loadEnum, loadFieldAttributes, loadHeight, loadInteger, loadInteger, loadLocalizedString, loadMaxHeight, loadMaxWidth, loadMinHeight, loadMinWidth, loadSizeAttributes, loadString, loadString, loadString, loadThemeNames, loadTooltip, loadWidth, propertyCaption, split, split
-
Field Details
-
GROUP_GRID_SCHEMA
- See Also:
-
-
Constructor Details
-
StudioGroupGridPreviewLoader
public StudioGroupGridPreviewLoader()
-
-
Method Details
-
isSupported
public boolean isSupported(org.dom4j.Element element) Description copied from interface:StudioPreviewComponentLoaderDefine the element that this loader can load.- Specified by:
isSupportedin interfaceStudioPreviewComponentLoader
-
load
public @Nullable com.vaadin.flow.component.Component load(org.dom4j.Element componentElement, org.dom4j.Element viewElement) Description copied from interface:StudioPreviewComponentLoaderCreate vaadin component from component xml element.- Specified by:
loadin interfaceStudioPreviewComponentLoader- Parameters:
componentElement- xml element of componentviewElement- xml element of view containingcomponentElement- See Also:
-