Package org.vaadin.firitin.fluency.ui
Interface FluentHasComponents<S extends FluentHasComponents<S>>
- All Superinterfaces:
com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasComponentsOfType<com.vaadin.flow.component.Component>,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,Serializable
- All Known Subinterfaces:
FluentHtmlContainer<S>
- All Known Implementing Classes:
ConfirmationDialog,HorizontalFloatLayout,NavigationView,SecondaryText,VAnchor,VArticle,VAside,VCode,VDescriptionList,VDialog,VDiv,VEmphasis,VFlexLayout,VFooter,VFormLayout,VH1,VH2,VH3,VH4,VH5,VH6,VHeader,VHorizontalLayout,VHr,VImage,VListItem,VMain,VNativeButton,VNav,VNotification,VOrderedList,VParagaph,VSection,VSelect,VSpan,VTab,VTabs,VUnorderedList,VVerticalLayout
public interface FluentHasComponents<S extends FluentHasComponents<S>>
extends com.vaadin.flow.component.HasComponents
-
Method Summary
Modifier and TypeMethodDescriptiondefault SaddAfter(com.vaadin.flow.component.Component reference, com.vaadin.flow.component.Component... components) Adds the given components right after the reference component, in the given order.default SaddBefore(com.vaadin.flow.component.Component reference, com.vaadin.flow.component.Component... components) Adds the given components right before the reference component, in the given order.default Stream<com.vaadin.flow.component.Component> children()default Stream<com.vaadin.flow.component.Component> default SwithComponentAsFirst(com.vaadin.flow.component.Component component) default SwithComponentAtIndex(int index, com.vaadin.flow.component.Component component) default SwithComponents(com.vaadin.flow.component.Component... components) Methods inherited from interface com.vaadin.flow.component.HasComponents
addMethods inherited from interface com.vaadin.flow.component.HasComponentsOfType
add, add, addComponentAsFirst, addComponentAtIndex, bindChildren, getChildren, getComponentAt, getComponentCount, indexOf, remove, remove, removeAll, replaceMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
bindEnabled, isEnabled, setEnabled
-
Method Details
-
withComponents
-
withComponentAsFirst
-
withComponentAtIndex
-
addBefore
default S addBefore(com.vaadin.flow.component.Component reference, com.vaadin.flow.component.Component... components) Adds the given components right before the reference component, in the given order. Components that are already children of this container are moved.- Parameters:
reference- an existing child of this containercomponents- the components to add- Returns:
- this for chaining
- Throws:
IllegalArgumentException- if reference is not a child of this container, or is one of the components to add
-
addAfter
default S addAfter(com.vaadin.flow.component.Component reference, com.vaadin.flow.component.Component... components) Adds the given components right after the reference component, in the given order. Components that are already children of this container are moved.- Parameters:
reference- an existing child of this containercomponents- the components to add- Returns:
- this for chaining
- Throws:
IllegalArgumentException- if reference is not a child of this container, or is one of the components to add
-
children
- Returns:
- all child components, including ones nested in wrappers that don't
implement
HasComponentsand virtual children (slotted components, overlays). Backed byComponentUtil.getAllChildren(Component).
-
descendants
- Returns:
- all descendant components (not including this one) in pre-order,
including virtual children. Backed by
ComponentUtil.streamDescendants(Component).
-