Class StudioLayoutComponentProcessor
java.lang.Object
io.jmix.flowui.kit.meta.component.preview.processor.StudioLayoutComponentProcessor
- All Implemented Interfaces:
StudioPreviewChildProcessor,StudioPreviewComponentProcessor
Studio preview processor for generic layout containers:
Scroller, SplitLayout,
Accordion, Tabs, and any other HasComponents.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddChild(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, int index) Attacheschildtoparent.booleanisSupported(com.vaadin.flow.component.Component parent) Whether this processor knows how to attach/detach children ofparent.booleanremoveChild(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child) Detacheschildfromparent.
-
Constructor Details
-
StudioLayoutComponentProcessor
public StudioLayoutComponentProcessor()
-
-
Method Details
-
isSupported
public boolean isSupported(com.vaadin.flow.component.Component parent) Description copied from interface:StudioPreviewChildProcessorWhether this processor knows how to attach/detach children ofparent.- Specified by:
isSupportedin interfaceStudioPreviewChildProcessor
-
addChild
public boolean addChild(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, int index) Description copied from interface:StudioPreviewChildProcessorAttacheschildtoparent.- Specified by:
addChildin interfaceStudioPreviewChildProcessor- Parameters:
index- target index, or a negative value to append- Returns:
trueif handled
-
removeChild
public boolean removeChild(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child) Description copied from interface:StudioPreviewChildProcessorDetacheschildfromparent.- Specified by:
removeChildin interfaceStudioPreviewChildProcessor- Returns:
trueif handled
-