aboutsummaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorStephan Knitelius <stephan@knitelius.com>2017-08-23 08:49:45 +0200
committerHenri Sara <henri.sara@gmail.com>2017-08-23 09:49:45 +0300
commit5b13a397d86a20686d0052cfdec9d39696477655 (patch)
treebc9c4185acba6879b404baa296c05b7c8fcd205b /uitest
parentcfb110403b2d3c62f79dec6d38bc6f131a5bd894 (diff)
downloadvaadin-framework-5b13a397d86a20686d0052cfdec9d39696477655.tar.gz
vaadin-framework-5b13a397d86a20686d0052cfdec9d39696477655.zip
Button icon constructor (#9857)
Added utility constructor for Button(Icon, ClickActionListener): new Button(VaadinIcons.AIRPLANE, e -> { ... });
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/themes/valo/CommonParts.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/themes/valo/CommonParts.java b/uitest/src/main/java/com/vaadin/tests/themes/valo/CommonParts.java
index 4f95aff06f..05033d9491 100644
--- a/uitest/src/main/java/com/vaadin/tests/themes/valo/CommonParts.java
+++ b/uitest/src/main/java/com/vaadin/tests/themes/valo/CommonParts.java
@@ -261,7 +261,7 @@ public class CommonParts extends VerticalLayout implements View {
delay.setValue("1000");
group.addComponent(delay);
- Button clear = new Button(null, new ClickListener() {
+ Button clear = new Button("", new ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
delay.setValue("");
@@ -329,14 +329,13 @@ public class CommonParts extends VerticalLayout implements View {
pos.addStyleName(ValoTheme.BUTTON_SMALL);
grid.addComponent(pos);
- pos = new Button("", new ClickListener() {
+ pos = new Button(ValoTheme.BUTTON_SMALL, new ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
notification.setPosition(Position.MIDDLE_RIGHT);
notification.show(Page.getCurrent());
}
});
- pos.addStyleName(ValoTheme.BUTTON_SMALL);
grid.addComponent(pos);
pos = new Button("", new ClickListener() {