com.vaadin.shared.data.

Interface DataCommunicatorClientRpc

  • All Superinterfaces:

    ClientRpc, Serializable


    public interface DataCommunicatorClientRpc
    extends ClientRpc

    RPC interface used by DataProvider to send data to the client-side.

    Since:

    8.0

    • Method Summary

      All Methods
      Modifier and Type Method and Description
      void insertRows(int firstRowIndex, int count)

      Informs that new data has been inserted from the server.

      void removeRows(int firstRowIndex, int count)

      Informs that the server has removed data.

      void reset(int size)

      Informs the client-side DataSource that all data has been invalidated.

      void setData(int firstIndex, elemental.json.JsonArray data)

      Sets the data of the client-side DataSource to match the given data starting from given index.

      void updateData(elemental.json.JsonArray data)

      Updates an array of objects based on their identifying key.

    • Method Detail

      • reset

        void reset(int size)

        Informs the client-side DataSource that all data has been invalidated.

        Parameters:

        size - size of the data source

      • setData

        void setData(int firstIndex,
                     elemental.json.JsonArray data)

        Sets the data of the client-side DataSource to match the given data starting from given index.

        Note: This method will override any existing data in the range starting from first index with the length of the data array.

        Parameters:

        firstIndex - first index to update

        data - array of new data

      • updateData

        void updateData(elemental.json.JsonArray data)

        Updates an array of objects based on their identifying key.

        Parameters:

        data - array of updated data

      • insertRows

        void insertRows(int firstRowIndex,
                        int count)

        Informs that new data has been inserted from the server.

        Parameters:

        firstRowIndex - the destination index of the new row data

        count - the number of rows inserted

        Since:

        8.1

      • removeRows

        void removeRows(int firstRowIndex,
                        int count)

        Informs that the server has removed data.

        Parameters:

        firstRowIndex - the index of the first removed row

        count - the number of removed rows, starting from firstRowIndex

        Since:

        8.1