Interface ComponentContainer

All Superinterfaces:
Component, HasComponents
All Known Subinterfaces:
Accordion, BoxLayout, ButtonsPanel, CanvasLayout, CssLayout, DialogWindow, Drawer, ExpandingLayout, FlowBoxLayout, Form, Fragment, FragmentImplementation, Frame, GridLayout, GroupBoxLayout, HBoxLayout, HtmlBoxLayout, OrderedContainer, 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, RootWindowImpl, ScrollBoxLayoutImpl, SplitPanelImpl, TabSheetImpl, TabWindowImpl, VBoxLayoutImpl, WindowImpl

public interface ComponentContainer extends Component, HasComponents
Component which can contain other components.
  • Method Details

    • add

      void add(Component childComponent)
      Adds a component to this container.
      Parameters:
      childComponent - a component to add
    • add

      default void add(Component... childComponents)
      Sequentially adds components to this container.
      Parameters:
      childComponents - components to add
    • remove

      void remove(Component childComponent)
      Removes a component from this container.
      Parameters:
      childComponent - a component to remove
    • remove

      default void remove(Component... childComponents)
      Sequentially removes components from this container.
      Parameters:
      childComponents - components to remove
    • removeAll

      void removeAll()
      Removes all components from this container.