Interface StudioPreviewTabProcessor
- All Superinterfaces:
StudioPreviewComponentProcessor
- All Known Implementing Classes:
StudioTabComponentProcessor
Attaches/detaches a tab (paired with its content) to/from a
TabSheet-like container.-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddTab(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component tab, com.vaadin.flow.component.Component content, int index) Attachestab(paired withcontent) toparent.booleanremoveTab(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component tab) Detachestab(and its paired content) fromparent.
-
Method Details
-
addTab
boolean addTab(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component tab, com.vaadin.flow.component.Component content, int index) Attachestab(paired withcontent) toparent.- Parameters:
index- target index, or a negative value to append- Returns:
trueif handled
-
removeTab
boolean removeTab(com.vaadin.flow.component.Component parent, com.vaadin.flow.component.Component tab) Detachestab(and its paired content) fromparent.- Returns:
trueif handled
-