Interface HasComponents

All Known Subinterfaces:
Accordion, BoxLayout, ButtonsPanel, CanvasLayout, ComponentContainer, CssLayout, DialogWindow, Drawer, ExpandingLayout, FlowBoxLayout, Form, Fragment, FragmentImplementation, Frame, GridLayout, GroupBoxLayout, HBoxLayout, HtmlBoxLayout, OrderedContainer, ResponsiveGridLayout, RootWindow, ScrollBoxLayout, SplitPanel, TabSheet, TabWindow, VBoxLayout, Window, WindowImplementation
All Known Implementing Classes:
AbstractBox, AbstractCanvasLayout, AbstractOrderedLayout, AccordionImpl, ButtonsPanelImpl, CanvasCssLayout, CanvasGridLayout, CanvasHorizontalLayout, CanvasResponsiveLayout, CanvasRootLayout, CanvasVerticalLayout, CanvasWidgetLayout, CssLayoutImpl, DialogWindowImpl, DrawerImpl, FlowBoxLayoutImpl, FormImpl, FragmentImpl, GridLayoutImpl, GroupBoxImpl, HBoxLayoutImpl, HtmlBoxLayoutImpl, ResponsiveGridLayoutImpl, RootWindowImpl, ScrollBoxLayoutImpl, SplitPanelImpl, TabSheetImpl, TabWindowImpl, VBoxLayoutImpl, WindowImpl

public interface HasComponents
Interface to be implemented by Components that contain other Components.
  • Method Details

    • getOwnComponent

      @Nullable Component getOwnComponent(String id)
      Gets component directly owned by this container.
      Returns:
      component or null if not found
    • getComponent

      @Nullable Component getComponent(String id)
      Gets a component belonging to the whole components tree below this container.
      Returns:
      component or null if not found
    • getComponentNN

      default Component getComponentNN(String id)
      Gets a component belonging to the whole components tree below this container.
      Returns:
      a component with the given id
      Throws:
      IllegalArgumentException - if a component with the given id is not found
    • getOwnComponents

      Collection<Component> getOwnComponents()
      Gets all components directly owned by this container.
      Returns:
      all components directly owned by this container
    • getOwnComponentsStream

      Stream<Component> getOwnComponentsStream()
      Gets stream of all components directly owned by this container.
      Returns:
      stream of all components directly owned by this container
    • getComponents

      Collection<Component> getComponents()
      Gets all components belonging to the whole components tree below this container.
      Returns:
      all components belonging to the whole components tree below this container
    • focusFirstComponent

      default void focusFirstComponent()
      Focuses the first Component.Focusable component, if present.