Class SidePanelLayout

java.lang.Object
com.vaadin.flow.component.Component
io.jmix.flowui.kit.component.sidepanellayout.JmixSidePanelLayout
io.jmix.flowui.component.sidepanellayout.SidePanelLayout
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, ComponentContainer, HasSubParts, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class SidePanelLayout extends JmixSidePanelLayout implements ComponentContainer, HasSubParts, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
The side panel layout component provides a container for a main content area and a side panel.
See Also:
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
  • Constructor Details

    • SidePanelLayout

      public SidePanelLayout()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • initComponent

      protected void initComponent()
    • findOwnComponent

      public Optional<com.vaadin.flow.component.Component> findOwnComponent(String id)
      Description copied from interface: ComponentContainer
      Finds a component within immediate children of the container by its unique identifier.
      Specified by:
      findOwnComponent in interface ComponentContainer
      Parameters:
      id - the unique identifier of the component to find
      Returns:
      an Optional containing the found component if it exists within the immediate children of the container, or an empty Optional if no component with the given identifier is found
    • getOwnComponents

      public Collection<com.vaadin.flow.component.Component> getOwnComponents()
      Description copied from interface: ComponentContainer
      Returns a collection of components that are direct children (immediate descendants) of the container.
      Specified by:
      getOwnComponents in interface ComponentContainer
      Returns:
      a collection of Component instances representing the immediate children of the container, or an empty collection if no such components exist
    • getSubPart

      @Nullable public Object getSubPart(String name)
      Description copied from interface: HasSubParts
      Returns a sub part object by its name.
      Specified by:
      getSubPart in interface HasSubParts
      Parameters:
      name - sub part name, e.g. component id
      Returns:
      a sub part object by its name, or null if not found
    • findComponent

      protected Optional<com.vaadin.flow.component.Component> findComponent(com.vaadin.flow.component.Component component, String id)