public interface GridServerRpc extends ServerRpc
| Modifier and Type | Method and Description |
|---|---|
void |
columnResized(String columnInternalId,
double pixels)
Informs the server that a column has been resized by the user.
|
void |
columnsReordered(List<String> newColumnOrder,
List<String> oldColumnOrder)
Informs the server that the columns of the Grid have been reordered.
|
void |
columnVisibilityChanged(String columnInternalId,
boolean hidden)
Informs the server that a column's visibility has been changed.
|
void |
contextClick(int rowIndex,
String rowKey,
String columnInternalId,
GridConstants.Section section,
MouseEventDetails details)
Informs the server that a context click has happened inside of Grid.
|
void |
itemClick(String rowKey,
String columnInternalId,
MouseEventDetails details)
Informs the server that an item has been clicked in Grid.
|
void |
sort(String[] columnIds,
SortDirection[] directions,
boolean userOriginated) |
void sort(String[] columnIds, SortDirection[] directions, boolean userOriginated)
void itemClick(String rowKey, String columnInternalId, MouseEventDetails details)
rowKey - a key identifying the clicked itemcolumnInternalId - column internal id identifying the clicked propertydetails - mouse event detailsvoid contextClick(int rowIndex,
String rowKey,
String columnInternalId,
GridConstants.Section section,
MouseEventDetails details)
rowIndex - index of clicked row in Grid sectionrowKey - a key identifying the clicked itemcolumnInternalId - column internal id identifying the clicked propertysection - grid section (header, footer, body)details - mouse event detailsvoid columnsReordered(List<String> newColumnOrder, List<String> oldColumnOrder)
newColumnOrder - a list of column internal ids in the new orderoldColumnOrder - a list of column internal ids in order before the changevoid columnVisibilityChanged(String columnInternalId, boolean hidden)
columnInternalId - the internal id of the columnhidden - true if hidden, false if unhiddenvoid columnResized(String columnInternalId, double pixels)
columnInternalId - the internal id of the columnpixels - the new width of the column in pixelsCopyright © 2017 Vaadin Ltd. All rights reserved.