summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/Components.java
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2012-09-10 22:12:47 +0300
committerArtur Signell <artur@vaadin.com>2012-09-11 12:19:02 +0300
commit0f5284bb827b5f04c6c064c851b851604293665a (patch)
tree4c9949ba7fa08dfae4f276f95c6928cae8b7760f /uitest/src/com/vaadin/tests/Components.java
parent8a904080835193e322e1f006aa65f490f2cd930a (diff)
downloadvaadin-framework-0f5284bb827b5f04c6c064c851b851604293665a.tar.gz
vaadin-framework-0f5284bb827b5f04c6c064c851b851604293665a.zip
Constants -> enums (#9072)
Patch from Pekka with minor changes (ButtonCode -> MouseButton, FilteringMode -> ComboBox)
Diffstat (limited to 'uitest/src/com/vaadin/tests/Components.java')
-rw-r--r--uitest/src/com/vaadin/tests/Components.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/uitest/src/com/vaadin/tests/Components.java b/uitest/src/com/vaadin/tests/Components.java
index 8295528fc3..97a1479df3 100644
--- a/uitest/src/com/vaadin/tests/Components.java
+++ b/uitest/src/com/vaadin/tests/Components.java
@@ -17,6 +17,7 @@ import com.vaadin.event.ItemClickEvent;
import com.vaadin.event.ItemClickEvent.ItemClickListener;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.Sizeable;
+import com.vaadin.shared.MouseEventDetails.MouseButton;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.tests.components.AbstractComponentTest;
import com.vaadin.ui.AbstractComponent;
@@ -189,10 +190,10 @@ public class Components extends LegacyApplication {
if (!isAbstract(cls)) {
String url = baseUrl + cls.getName()
+ "?restartApplication";
- if (event.getButton() == ItemClickEvent.BUTTON_LEFT) {
+ if (event.getButton() == MouseButton.LEFT) {
openEmbedded(url);
naviTree.setValue(event.getItemId());
- } else if (event.getButton() == ItemClickEvent.BUTTON_RIGHT) {
+ } else if (event.getButton() == MouseButton.RIGHT) {
openInNewTab(url);
}
}