]> source.dussan.org Git - vaadin-framework.git/commit
Add support for TreeContextClickEvents (#19062)
authorTeemu Suo-Anttila <teemusa@vaadin.com>
Mon, 5 Oct 2015 08:23:46 +0000 (11:23 +0300)
committerVaadin Code Review <review@vaadin.com>
Mon, 5 Oct 2015 11:10:13 +0000 (11:10 +0000)
commit5097095625403405d030575fcc1102f02aa3e327
tree99d68d5d570a33f6fb2435b4f7d68dc5c563641c
parent743095d97bbd632e0493fca29ba2308b17b86716
Add support for TreeContextClickEvents (#19062)

Tree connector now overrides the send context click event providing the
row key to the server-side via RPC call. This is then passed on to a
TreeContextClickEvent and fired to listeners.

This patch modifies the test base for context click testing by making it
tolerate 1 piksel differences. This was to fix any subpixel related
issues in coordinate comparison.

Change-Id: Iacced274a6b518b5f89378cbc32b8381362e1e4f
client/src/com/vaadin/client/ui/VTree.java
client/src/com/vaadin/client/ui/tree/TreeConnector.java
server/src/com/vaadin/ui/Tree.java
shared/src/com/vaadin/shared/ui/tree/TreeServerRpc.java [new file with mode: 0644]
uitest/src/com/vaadin/tests/contextclick/AbstractContextClickTest.java
uitest/src/com/vaadin/tests/contextclick/TreeContextClick.java [new file with mode: 0644]
uitest/src/com/vaadin/tests/contextclick/TreeContextClickTest.java [new file with mode: 0644]