Interface StudioPreviewChildProcessor
- All Superinterfaces:
StudioPreviewComponentProcessor
- All Known Implementing Classes:
StudioLayoutComponentProcessor
Attaches/detaches a generic child component to/from a parent in the live Vaadin preview tree.
-
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.
-
Method Details
-
isSupported
boolean isSupported(com.vaadin.flow.component.Component parent) Whether this processor knows how to attach/detach children ofparent. -
addChild
boolean addChild(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child, int index) Attacheschildtoparent.- Parameters:
index- target index, or a negative value to append- Returns:
trueif handled
-
removeChild
boolean removeChild(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component child) Detacheschildfromparent.- Returns:
trueif handled
-