From a7b2de20d60ea157501d21d8e5179126571e7c36 Mon Sep 17 00:00:00 2001 From: Ilia Motornyi Date: Mon, 10 Jul 2017 15:04:22 +0300 Subject: Implement tree item context click Fixes #9606 Fixes #9645 Fixes #9647 --- .../java/com/vaadin/client/ui/AbstractComponentConnector.java | 3 ++- .../java/com/vaadin/client/ui/composite/CompositeConnector.java | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'client/src') 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. + } } -- cgit v1.2.3