Class GridSection

  • 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, Serializable, HasCaption

    public class GridSection
    extends LinkkiSection
    A section containing a single table. This kind of section is created by the PmoBasedSectionFactory if the presentation model object is a ContainerPmo.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      GridSection​(String caption, boolean closeable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      com.vaadin.flow.component.grid.Grid<?> getGrid()
      Returns the table shown in the section.
      com.vaadin.flow.component.grid.Grid<?> getSectionContent()
      Deprecated.
      Use getGrid() instead.
      void setColumnVisible​(String columnKey, boolean visible)
      Use this method to set Grid.Column visibility after GridSection has already been created.
      void setGrid​(com.vaadin.flow.component.grid.Grid<?> grid)  
      String toString()  
      • Methods inherited from class com.vaadin.flow.component.HtmlComponent

        getTitle, setTitle
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

        addDetachListener
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
      • Methods inherited from interface com.vaadin.flow.component.HasSize

        getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
      • Methods inherited from interface com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
    • Constructor Detail

      • GridSection

        public GridSection​(String caption,
                           boolean closeable)
    • Method Detail

      • getGrid

        public com.vaadin.flow.component.grid.Grid<?> getGrid()
        Returns the table shown in the section.
      • setGrid

        public void setGrid​(com.vaadin.flow.component.grid.Grid<?> grid)
      • setColumnVisible

        public void setColumnVisible​(String columnKey,
                                     boolean visible)
        Use this method to set Grid.Column visibility after GridSection has already been created. This method will also update the checked state of the columns MenuItem correctly.
        Parameters:
        columnKey - The key of the Grid.Column to set the visible state
        visible - true sets the Grid.Column and the it's MenuItem to checked, otherwise false and unchecked