com.vaadin.client.widgets.

Class Escalator.SubPartArguments

  • Enclosing class:

    Escalator

    public static class Escalator.SubPartArguments
    extends Object

    Utility class for parsing and storing SubPart request string attributes for Grid and Escalator.

    Since:

    7.5.0

    • Method Detail

      • getType

        public String getType()

        Returns type of the element, e.g. "header", "cell", or "spacer".

        Returns:

        type

      • getIndicesLength

        public int getIndicesLength()

        Returns how many indices there are within these arguments.

        Returns:

        index count

      • getIndex

        public int getIndex​(int i)

        Returns the indicated index within the indices array.

        Parameters:

        i - the index of the required member of the indices array

        Returns:

        the indicated index

      • getIndices

        public int[] getIndices()

        Returns indices that define which particular element is being targeted. If the array is empty, the target is the row container itself.

        result[0] - index of a row element
        result[1] - column index of a cell within that row
        result[2..n] - child index within the previous element

        Spacer types should have exactly one index, which is for row index, and targets the spacer element of that row.

        Editor types can have one index, which is for column index of a cell within the editor row. If no index is given, the target is the editor overlay itself.

        Returns:

        array of indices