diff options
author | Artur Signell <artur.signell@itmill.com> | 2012-02-06 06:56:11 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2012-02-06 06:56:11 +0000 |
commit | ee2c73f6d374ba5a275365319fdf9de215371984 (patch) | |
tree | 10ac67a9e0a92eee5e4442ffd548a5e054ec993b /tests/testbench | |
parent | 4567b5bbd625c2ad3a7029cf02d54e5edda74868 (diff) | |
download | vaadin-framework-ee2c73f6d374ba5a275365319fdf9de215371984.tar.gz vaadin-framework-ee2c73f6d374ba5a275365319fdf9de215371984.zip |
Use value change listeners instead of click listeners for checkboxes
svn changeset:22914/svn branch:6.7
Diffstat (limited to 'tests/testbench')
-rw-r--r-- | tests/testbench/com/vaadin/tests/components/table/HeaderFooterClickLeftRightMiddle.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/testbench/com/vaadin/tests/components/table/HeaderFooterClickLeftRightMiddle.java b/tests/testbench/com/vaadin/tests/components/table/HeaderFooterClickLeftRightMiddle.java index c3cfb685dd..091891043f 100644 --- a/tests/testbench/com/vaadin/tests/components/table/HeaderFooterClickLeftRightMiddle.java +++ b/tests/testbench/com/vaadin/tests/components/table/HeaderFooterClickLeftRightMiddle.java @@ -7,8 +7,6 @@ import com.vaadin.data.Property.ValueChangeListener; import com.vaadin.data.util.IndexedContainer; import com.vaadin.tests.components.TestBase; import com.vaadin.tests.util.Log; -import com.vaadin.ui.Button.ClickEvent; -import com.vaadin.ui.Button.ClickListener; import com.vaadin.ui.CheckBox; import com.vaadin.ui.Table; import com.vaadin.ui.Table.FooterClickEvent; @@ -96,10 +94,9 @@ public class HeaderFooterClickLeftRightMiddle extends TestBase { CheckBox sortEnabledCheckbox = new CheckBox("Sortable"); sortEnabledCheckbox.setImmediate(true); sortEnabledCheckbox.setValue(!table.isSortDisabled()); - sortEnabledCheckbox.addListener(new ClickListener() { - - public void buttonClick(ClickEvent event) { - table.setSortDisabled(!event.getButton().booleanValue()); + sortEnabledCheckbox.addListener(new ValueChangeListener() { + public void valueChange(ValueChangeEvent event) { + table.setSortDisabled(!(Boolean) event.getProperty().getValue()); } }); |