com.vaadin.shared.ui.treegrid.

Interface NodeCollapseRpc

  • All Superinterfaces:

    Serializable, ServerRpc

    Functional Interface:

    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface NodeCollapseRpc
    extends ServerRpc

    RPC to handle client originated collapse and expand actions on hierarchical rows in TreeGrid.

    Since:

    8.1

    Author:

    Vaadin Ltd

    • Method Summary

      All Methods
      Modifier and Type Method Description
      void setNodeCollapsed​(String rowKey, int rowIndex, boolean collapse, boolean userOriginated)

      Sets the collapse state of a hierarchical row in TreeGrid.

    • Method Detail

      • setNodeCollapsed

        void setNodeCollapsed​(String rowKey,
                              int rowIndex,
                              boolean collapse,
                              boolean userOriginated)

        Sets the collapse state of a hierarchical row in TreeGrid.

        Parameters:

        rowKey - the row's key

        rowIndex - index where the row is in grid (all rows)

        collapse - true to collapse, false to expand

        userOriginated - true if this RPC was triggered by a user interaction, false otherwise