Interface OrderedContainer

All Superinterfaces:
Component, ComponentContainer, HasComponents
All Known Subinterfaces:
BoxLayout, ButtonsPanel, CssLayout, DialogWindow, Drawer, FlowBoxLayout, Fragment, FragmentImplementation, Frame, GroupBoxLayout, HBoxLayout, RootWindow, ScrollBoxLayout, TabWindow, VBoxLayout, Window, WindowImplementation
All Known Implementing Classes:
AbstractBox, AbstractCanvasLayout, AbstractOrderedLayout, ButtonsPanelImpl, CanvasCssLayout, CanvasGridLayout, CanvasHorizontalLayout, CanvasResponsiveLayout, CanvasRootLayout, CanvasVerticalLayout, CanvasWidgetLayout, CssLayoutImpl, DialogWindowImpl, DrawerImpl, FlowBoxLayoutImpl, FragmentImpl, GroupBoxImpl, HBoxLayoutImpl, RootWindowImpl, ScrollBoxLayoutImpl, TabWindowImpl, VBoxLayoutImpl, WindowImpl

public interface OrderedContainer extends ComponentContainer
Component which can contain other components and provides indexed access to children.
  • Method Details

    • add

      void add(Component childComponent, int index)
    • indexOf

      int indexOf(Component component)
    • getComponent

      @Nullable Component getComponent(int index)
      Returns the component at the given position.
      Parameters:
      index - component index
      Returns:
      the component at the given index or null.
    • getComponentNN

      default Component getComponentNN(int index)
      Returns the component at the given position.
      Parameters:
      index - component index
      Returns:
      the component at the given index. Throws exception if not found.