Package io.jmix.ui.component
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
Component
s that contain other Component
s.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Focuses the firstComponent.Focusable
component, if present.getComponent
(String id) Gets a component belonging to the whole components tree below this container.default Component
getComponentNN
(String id) Gets a component belonging to the whole components tree below this container.Gets all components belonging to the whole components tree below this container.Gets component directly owned by this container.Gets all components directly owned by this container.Gets stream of all components directly owned by this container.
-
Method Details
-
getOwnComponent
Gets component directly owned by this container.- Returns:
- component or null if not found
-
getComponent
Gets a component belonging to the whole components tree below this container.- Returns:
- component or null if not found
-
getComponentNN
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
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 firstComponent.Focusable
component, if present.
-