com.vaadin.shared.ui.grid
Interface GridServerRpc

All Superinterfaces:
java.io.Serializable, ServerRpc

public interface GridServerRpc
extends ServerRpc

Client-to-server RPC interface for the Grid component

Since:
7.4
Author:
Vaadin Ltd

Method Summary
 void columnsReordered(java.util.List<java.lang.String> newColumnOrder, java.util.List<java.lang.String> oldColumnOrder)
          Informs the server that the columns of the Grid have been reordered.
 void columnVisibilityChanged(java.lang.String id, boolean hidden, boolean userOriginated)
          Informs the server that the column's visibility has been changed.
 void itemClick(java.lang.String rowKey, java.lang.String columnId, MouseEventDetails details)
          Informs the server that an item has been clicked in Grid.
 void select(java.util.List<java.lang.String> newSelection)
           
 void selectAll()
           
 void sort(java.lang.String[] columnIds, SortDirection[] directions, boolean userOriginated)
           
 

Method Detail

select

void select(java.util.List<java.lang.String> newSelection)

selectAll

void selectAll()

sort

void sort(java.lang.String[] columnIds,
          SortDirection[] directions,
          boolean userOriginated)

itemClick

void itemClick(java.lang.String rowKey,
               java.lang.String columnId,
               MouseEventDetails details)
Informs the server that an item has been clicked in Grid.

Parameters:
rowKey - a key identifying the clicked item
columnId - column id identifying the clicked property
details - mouse event details

columnsReordered

void columnsReordered(java.util.List<java.lang.String> newColumnOrder,
                      java.util.List<java.lang.String> oldColumnOrder)
Informs the server that the columns of the Grid have been reordered.

Parameters:
newColumnOrder - a list of column ids in the new order
oldColumnOrder - a list of column ids in order before the change
Since:
7.5.0

columnVisibilityChanged

void columnVisibilityChanged(java.lang.String id,
                             boolean hidden,
                             boolean userOriginated)
Informs the server that the column's visibility has been changed.

Parameters:
id - the id of the column
hidden - true if hidden, false if unhidden
userOriginated - true if triggered by user, false if by code
Since:
7.5.0


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.