summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/contextclick/TableContextClick.java
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-04-15 11:06:18 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-04-15 14:00:58 +0300
commit6b8412033e680ce6e5c7827ac504adf132305726 (patch)
tree0df05d16c324b285610af8910c126b58f4c490c5 /uitest/src/com/vaadin/tests/contextclick/TableContextClick.java
parent9192b0bb5e5e699b506b3d3e7df4cf295fbea44a (diff)
downloadvaadin-framework-6b8412033e680ce6e5c7827ac504adf132305726.tar.gz
vaadin-framework-6b8412033e680ce6e5c7827ac504adf132305726.zip
Build uitest war with maven
Change-Id: I32625901ca27a282253df44c6e776cf9632bacda
Diffstat (limited to 'uitest/src/com/vaadin/tests/contextclick/TableContextClick.java')
-rw-r--r--uitest/src/com/vaadin/tests/contextclick/TableContextClick.java70
1 files changed, 0 insertions, 70 deletions
diff --git a/uitest/src/com/vaadin/tests/contextclick/TableContextClick.java b/uitest/src/com/vaadin/tests/contextclick/TableContextClick.java
deleted file mode 100644
index 95fa85dc90..0000000000
--- a/uitest/src/com/vaadin/tests/contextclick/TableContextClick.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * 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.tests.contextclick;
-
-import com.vaadin.data.Item;
-import com.vaadin.shared.ui.table.TableConstants.Section;
-import com.vaadin.tests.util.PersonContainer;
-import com.vaadin.ui.Button;
-import com.vaadin.ui.Button.ClickEvent;
-import com.vaadin.ui.HorizontalLayout;
-import com.vaadin.ui.Table;
-import com.vaadin.ui.Table.TableContextClickEvent;
-
-public class TableContextClick extends
- AbstractContextClickUI<Table, TableContextClickEvent> {
-
- @Override
- protected Table createTestComponent() {
- Table table = new Table();
- table.setContainerDataSource(PersonContainer.createWithTestData());
- table.setFooterVisible(true);
- table.setHeight("400px");
- return table;
- }
-
- @Override
- protected void handleContextClickEvent(TableContextClickEvent event) {
- String value = "";
- Object propertyId = event.getPropertyId();
- if (event.getItemId() != null) {
- Item item = event.getComponent().getContainerDataSource()
- .getItem(event.getItemId());
- value += item.getItemProperty("firstName").getValue() + " ";
- value += item.getItemProperty("lastName").getValue();
- } else if (event.getSection() == Section.HEADER) {
- value = testComponent.getColumnHeader(propertyId);
- } else if (event.getSection() == Section.FOOTER) {
- value = testComponent.getColumnFooter(propertyId);
- }
- log("ContextClickEvent value: " + value + ", propertyId: " + propertyId
- + ", section: " + event.getSection());
- }
-
- @Override
- protected HorizontalLayout createContextClickControls() {
- HorizontalLayout controls = super.createContextClickControls();
- controls.addComponent(new Button("Remove all content",
- new Button.ClickListener() {
-
- @Override
- public void buttonClick(ClickEvent event) {
- testComponent.getContainerDataSource().removeAllItems();
- }
- }));
- return controls;
- }
-}