summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-10-13 18:07:55 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2015-10-14 13:46:13 +0000
commite6165e8e18f0aeea35071db60f82e7b1122c8253 (patch)
tree36dd2387c155f6b1237f18d5373de24d13fc97b7 /server
parenta2b1860c163a26b92b8e2ca3ae227a27b75ca55c (diff)
downloadvaadin-framework-e6165e8e18f0aeea35071db60f82e7b1122c8253.tar.gz
vaadin-framework-e6165e8e18f0aeea35071db60f82e7b1122c8253.zip
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
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/ui/Table.java6
1 files changed, 4 insertions, 2 deletions
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; <code>null</code> if header or footer
+ * @return item id of clicked row; <code>null</code> 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 <code>null</code> if we've clicked on the
+ * empty area of the Table
*/
public Object getPropertyId() {
return propertyId;