Class AbstractLayout

java.lang.Object
com.vaadin.featurepack.desktop.layouts.AbstractLayout
All Implemented Interfaces:
Serializable

public abstract class AbstractLayout extends Object implements Serializable
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addComponent(com.vaadin.flow.component.Component component)
    Should be called when a component is added to the container.
    Stream<com.vaadin.flow.component.Component>
    Gets the components in the container.
    abstract Object
    getConstraints(com.vaadin.flow.component.Component component)
    Gets the constraints for the given component.
    com.vaadin.flow.component.Component
    Gets the container for this layout.
    protected void
    onContainerAttach(com.vaadin.flow.component.AttachEvent event)
    Called when the container is attached to a UI.
    protected void
    onContainerDetach(com.vaadin.flow.component.DetachEvent event)
    Called when the container is detached from a UI.
    void
    removeComponent(com.vaadin.flow.component.Component component)
    Should be called when a component is removed from the container.
    abstract void
    setConstraints(com.vaadin.flow.component.Component component, Object constraints)
    Sets the constraints for the given component.
    void
    setContainer(com.vaadin.flow.component.Component container)
    Sets the container for this layout.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractLayout

      public AbstractLayout()
  • Method Details

    • setContainer

      public void setContainer(com.vaadin.flow.component.Component container)
      Sets the container for this layout.
      Parameters:
      container -
    • onContainerAttach

      protected void onContainerAttach(com.vaadin.flow.component.AttachEvent event)
      Called when the container is attached to a UI.
      Parameters:
      event -
    • onContainerDetach

      protected void onContainerDetach(com.vaadin.flow.component.DetachEvent event)
      Called when the container is detached from a UI.
      Parameters:
      event -
    • addComponent

      public void addComponent(com.vaadin.flow.component.Component component)
      Should be called when a component is added to the container.
      Parameters:
      component - the component to add, not null
    • removeComponent

      public void removeComponent(com.vaadin.flow.component.Component component)
      Should be called when a component is removed from the container.
      Parameters:
      component - the component to remove, not null
    • getContainer

      public com.vaadin.flow.component.Component getContainer()
      Gets the container for this layout.
      Returns:
      the container or null if no container is set
    • getComponents

      public Stream<com.vaadin.flow.component.Component> getComponents()
      Gets the components in the container.
      Returns:
    • setConstraints

      public abstract void setConstraints(com.vaadin.flow.component.Component component, Object constraints)
      Sets the constraints for the given component.
      Parameters:
      component - the component to set constraints for
      constraints - the constraints object
    • getConstraints

      public abstract Object getConstraints(com.vaadin.flow.component.Component component)
      Gets the constraints for the given component.
      Parameters:
      component - the component to get constraints for
      Returns:
      the constraints object