com.vaadin.ui.

Class Grid.StaticSection<ROWTYPE extends Grid.StaticSection.StaticRow<?>>

    • Constructor Detail

      • StaticSection

        public StaticSection()
    • Method Detail

      • setVisible

        public void setVisible​(boolean visible)

        Sets the visibility of the whole section.

        Parameters:

        visible - true to show this section, false to hide

      • isVisible

        public boolean isVisible()

        Returns the visibility of this section.

        Returns:

        true if visible, false otherwise.

      • getRow

        public ROWTYPE getRow​(int rowIndex)

        Gets row at given index.

        Parameters:

        rowIndex - 0 based index for row. Counted from top to bottom

        Returns:

        row at given index

      • getRowCount

        public int getRowCount()

        Gets the amount of rows in this section.

        Returns:

        row count

      • createRow

        protected abstract ROWTYPE createRow()
      • markAsDirty

        protected void markAsDirty()

        Informs the grid that state has changed and it should be redrawn.

      • removeColumn

        protected void removeColumn​(Object propertyId)

        Removes a column for given property id from the section.

        Parameters:

        propertyId - property to be removed

      • addColumn

        protected void addColumn​(Object propertyId)

        Adds a column for given property id to the section.

        Parameters:

        propertyId - property to be added

      • writeDesign

        protected void writeDesign​(org.jsoup.nodes.Element tableSectionElement,
                                   DesignContext designContext)

        Writes the declarative design to the given table section element.

        Parameters:

        tableSectionElement - Element to write design to

        designContext - the design context

        Since:

        7.5.0

      • readDesign

        protected void readDesign​(org.jsoup.nodes.Element tableSectionElement,
                                  DesignContext designContext)
                           throws DesignException

        Writes the declarative design from the given table section element.

        Parameters:

        tableSectionElement - Element to read design from

        designContext - the design context

        Throws:

        DesignException - if the table section contains unexpected children

        Since:

        7.5.0