summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/ui/grid/GridConstants.java7
-rw-r--r--shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java19
2 files changed, 26 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/grid/GridConstants.java b/shared/src/com/vaadin/shared/ui/grid/GridConstants.java
index 5b2ac96975..ba4a677b5f 100644
--- a/shared/src/com/vaadin/shared/ui/grid/GridConstants.java
+++ b/shared/src/com/vaadin/shared/ui/grid/GridConstants.java
@@ -27,6 +27,13 @@ import java.io.Serializable;
public final class GridConstants implements Serializable {
/**
+ * Enum describing different sections of Grid.
+ */
+ public enum Section {
+ HEADER, BODY, FOOTER
+ }
+
+ /**
* Default padding in pixels when scrolling programmatically, without an
* explicitly defined padding value.
*/
diff --git a/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java b/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java
index 8d64794b41..83abc5263e 100644
--- a/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java
+++ b/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java
@@ -20,6 +20,7 @@ import java.util.List;
import com.vaadin.shared.MouseEventDetails;
import com.vaadin.shared.communication.ServerRpc;
import com.vaadin.shared.data.sort.SortDirection;
+import com.vaadin.shared.ui.grid.GridConstants.Section;
/**
* Client-to-server RPC interface for the Grid component
@@ -70,6 +71,24 @@ public interface GridServerRpc extends ServerRpc {
void itemClick(String rowKey, String columnId, MouseEventDetails details);
/**
+ * Informs the server that a context click has happened inside of Grid.
+ *
+ * @since
+ * @param rowIndex
+ * index of clicked row in Grid section
+ * @param rowKey
+ * a key identifying the clicked item
+ * @param columnId
+ * column id identifying the clicked property
+ * @param section
+ * grid section (header, footer, body)
+ * @param details
+ * mouse event details
+ */
+ void contextClick(int rowIndex, String rowKey, String columnId,
+ Section section, MouseEventDetails details);
+
+ /**
* Informs the server that the columns of the Grid have been reordered.
*
* @since 7.5.0