aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/main/java/com/vaadin/tests/contextclick/TreeTableContextClick.java
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-11-01 10:36:47 +0100
committerPekka Maanpää <pekkamaa@vaadin.com>2017-11-01 11:36:47 +0200
commit3763f3f94cbcb0b5035ba547accf123b5c50ed3d (patch)
tree762058cc800575af022601d39fcdd3326a6dd078 /uitest/src/main/java/com/vaadin/tests/contextclick/TreeTableContextClick.java
parent04905e1e2eb81770d813abda6a516254e541443d (diff)
downloadvaadin-framework-3763f3f94cbcb0b5035ba547accf123b5c50ed3d.tar.gz
vaadin-framework-3763f3f94cbcb0b5035ba547accf123b5c50ed3d.zip
Use lambda expressions. (#10268)
Diffstat (limited to 'uitest/src/main/java/com/vaadin/tests/contextclick/TreeTableContextClick.java')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/contextclick/TreeTableContextClick.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/contextclick/TreeTableContextClick.java b/uitest/src/main/java/com/vaadin/tests/contextclick/TreeTableContextClick.java
index 1ab7a9567a..e62d33ef35 100644
--- a/uitest/src/main/java/com/vaadin/tests/contextclick/TreeTableContextClick.java
+++ b/uitest/src/main/java/com/vaadin/tests/contextclick/TreeTableContextClick.java
@@ -17,7 +17,6 @@ package com.vaadin.tests.contextclick;
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.v7.data.Item;
import com.vaadin.v7.shared.ui.table.TableConstants.Section;
@@ -59,13 +58,8 @@ public class TreeTableContextClick
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();
- }
- }));
+ new Button("Remove all content", event -> testComponent
+ .getContainerDataSource().removeAllItems()));
return controls;
}
}