diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-09-28 11:40:57 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-10-01 09:43:16 +0000 |
commit | 00dc7ab85e8fd533854ccc50b788012cf1450342 (patch) | |
tree | fb8204bbf18476be0af486dbd11faeff6651c518 /shared | |
parent | cc4f755a6c9cf996442f9c5356f6f0fbdcf41a8f (diff) | |
download | vaadin-framework-00dc7ab85e8fd533854ccc50b788012cf1450342.tar.gz vaadin-framework-00dc7ab85e8fd533854ccc50b788012cf1450342.zip |
Add support for ContextClickEvent in AbstractComponent (#19015)
Change-Id: I93d5d20925b8ac9b4b108ccc6deec2090e68aa0d
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ContextClickRpc.java | 29 | ||||
-rw-r--r-- | shared/src/com/vaadin/shared/EventId.java | 2 |
2 files changed, 30 insertions, 1 deletions
diff --git a/shared/src/com/vaadin/shared/ContextClickRpc.java b/shared/src/com/vaadin/shared/ContextClickRpc.java new file mode 100644 index 0000000000..2dd045f426 --- /dev/null +++ b/shared/src/com/vaadin/shared/ContextClickRpc.java @@ -0,0 +1,29 @@ +/* + * Copyright 2000-2014 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.vaadin.shared; + +import com.vaadin.shared.communication.ServerRpc; + +/** + * Client-to-server RPC interface for context click events + * + * @since + * @author Vaadin Ltd + */ +public interface ContextClickRpc extends ServerRpc { + + public void contextClick(MouseEventDetails details); +} diff --git a/shared/src/com/vaadin/shared/EventId.java b/shared/src/com/vaadin/shared/EventId.java index 1c2ada1d87..ad840d1e5d 100644 --- a/shared/src/com/vaadin/shared/EventId.java +++ b/shared/src/com/vaadin/shared/EventId.java @@ -24,5 +24,5 @@ public interface EventId extends Serializable { public static final String LAYOUT_CLICK_EVENT_IDENTIFIER = "lClick"; public static final String POLL = "poll"; public static final String CHANGE = "change"; - + public static final String CONTEXT_CLICK = "cClick"; } |