From e6165e8e18f0aeea35071db60f82e7b1122c8253 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Tue, 13 Oct 2015 18:07:55 +0300 Subject: Support ContextClicks in empty areas of Table and TreeTable (#19130) When the user clicks an empty area, the TableContextClickEvent will still fire, but will have a null property. Change-Id: I39303f1a72d072db09c4fe6df8141d6caf0764c2 --- server/src/com/vaadin/ui/Table.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/src/com/vaadin/ui/Table.java b/server/src/com/vaadin/ui/Table.java index cbc216661a..66fa257ac2 100644 --- a/server/src/com/vaadin/ui/Table.java +++ b/server/src/com/vaadin/ui/Table.java @@ -6420,7 +6420,8 @@ public class Table extends AbstractSelect implements Action.Container, /** * Returns the item id of context clicked row. * - * @return item id of clicked row; null if header or footer + * @return item id of clicked row; null if header, footer + * or empty area of Table */ public Object getItemId() { return itemId; @@ -6429,7 +6430,8 @@ public class Table extends AbstractSelect implements Action.Container, /** * Returns the property id of context clicked column. * - * @return property id + * @return property id; or null if we've clicked on the + * empty area of the Table */ public Object getPropertyId() { return propertyId; -- cgit v1.2.3