summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2017-07-10 15:04:22 +0300
committerGitHub <noreply@github.com>2017-07-10 15:04:22 +0300
commita7b2de20d60ea157501d21d8e5179126571e7c36 (patch)
treefd0deeddfa4015cef0544e840151e7a76d046b2b /client
parent6e6fb1a47428eb106ae0702c96c3dd1095d4f2d4 (diff)
downloadvaadin-framework-a7b2de20d60ea157501d21d8e5179126571e7c36.tar.gz
vaadin-framework-a7b2de20d60ea157501d21d8e5179126571e7c36.zip
Implement tree item context click
Fixes #9606 Fixes #9645 Fixes #9647
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/ui/AbstractComponentConnector.java3
-rw-r--r--client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java8
2 files changed, 10 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/AbstractComponentConnector.java b/client/src/main/java/com/vaadin/client/ui/AbstractComponentConnector.java
index 8ba94f9ba7..1eb9908335 100644
--- a/client/src/main/java/com/vaadin/client/ui/AbstractComponentConnector.java
+++ b/client/src/main/java/com/vaadin/client/ui/AbstractComponentConnector.java
@@ -330,7 +330,8 @@ public abstract class AbstractComponentConnector extends AbstractConnector
* interface.
*
* @since 7.6
- * @param event
+ * @param details
+ * @param eventTarget
*/
protected void sendContextClickEvent(MouseEventDetails details,
EventTarget eventTarget) {
diff --git a/client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java b/client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java
index 93e42fab1f..916363cf23 100644
--- a/client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java
+++ b/client/src/main/java/com/vaadin/client/ui/composite/CompositeConnector.java
@@ -15,6 +15,7 @@
*/
package com.vaadin.client.ui.composite;
+import com.google.gwt.dom.client.EventTarget;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.client.ComponentConnector;
@@ -22,6 +23,7 @@ import com.vaadin.client.ConnectorHierarchyChangeEvent;
import com.vaadin.client.HasComponentsConnector;
import com.vaadin.client.ui.AbstractHasComponentsConnector;
import com.vaadin.shared.AbstractComponentState;
+import com.vaadin.shared.MouseEventDetails;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.Connect.LoadStyle;
import com.vaadin.ui.Composite;
@@ -93,4 +95,10 @@ public class CompositeConnector extends AbstractHasComponentsConnector {
ConnectorHierarchyChangeEvent event) {
// Handled in getChildConnector
}
+
+ @Override
+ protected void sendContextClickEvent(MouseEventDetails details, EventTarget eventTarget) {
+ //Do nothing, because Composite is not an actual component, and the event
+ //must be handled in inner components.
+ }
}