diff options
author | Leif Åstrand <leif@vaadin.com> | 2015-02-09 14:11:01 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-02-09 19:17:32 +0000 |
commit | 2209a832943983e9e62b20c1e5e0bd982704f5e0 (patch) | |
tree | 62cb401ccd5614f8293873c40515a0f0f822533f /uitest/src | |
parent | dc063db8dba26126d6c2f29359ec439b30176bc1 (diff) | |
download | vaadin-framework-2209a832943983e9e62b20c1e5e0bd982704f5e0.tar.gz vaadin-framework-2209a832943983e9e62b20c1e5e0bd982704f5e0.zip |
Remove grid.[set|get]EditorField(Object, Field) (#16538)
Change-Id: Ia5c09b80e32f9842fb4680f035b53cea755cb451
Diffstat (limited to 'uitest/src')
3 files changed, 10 insertions, 7 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/GridEditorUI.java b/uitest/src/com/vaadin/tests/components/grid/GridEditorUI.java index fe4b4342a2..60e241bae3 100644 --- a/uitest/src/com/vaadin/tests/components/grid/GridEditorUI.java +++ b/uitest/src/com/vaadin/tests/components/grid/GridEditorUI.java @@ -35,13 +35,13 @@ public class GridEditorUI extends AbstractTestUI { grid.setEditorEnabled(true); - grid.setEditorField("firstName", new PasswordField()); + grid.getColumn("firstName").setEditorField(new PasswordField()); - TextField lastNameField = (TextField) grid - .getEditorField("lastName"); + TextField lastNameField = (TextField) grid.getColumn("lastName") + .getEditorField(); lastNameField.setMaxLength(50); - grid.getEditorField("phoneNumber").setReadOnly(true); + grid.getColumn("phoneNumber").getEditorField().setReadOnly(true); addComponent(grid); } diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java index 6557dafb6f..e5a46894b8 100644 --- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java +++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java @@ -227,7 +227,7 @@ public class GridBasicFeatures extends AbstractComponentTest<Grid> { grid.setSelectionMode(SelectionMode.NONE); - grid.getEditorField(getColumnProperty(2)).setReadOnly(true); + grid.getColumn(getColumnProperty(2)).getEditorField().setReadOnly(true); grid.getColumn(getColumnProperty(3)).setEditable(false); createGridActions(); diff --git a/uitest/src/com/vaadin/tests/fieldgroup/BasicCrudGridEditorRow.java b/uitest/src/com/vaadin/tests/fieldgroup/BasicCrudGridEditorRow.java index 63ba2986e1..62c217445f 100644 --- a/uitest/src/com/vaadin/tests/fieldgroup/BasicCrudGridEditorRow.java +++ b/uitest/src/com/vaadin/tests/fieldgroup/BasicCrudGridEditorRow.java @@ -47,8 +47,11 @@ public class BasicCrudGridEditorRow extends AbstractBasicCrud { }); grid.setEditorEnabled(true); grid.setSizeFull(); - grid.getEditorField("age").addValidator( - new IntegerRangeValidator("Must be between 0 and 100", 0, 100)); + grid.getColumn("age") + .getEditorField() + .addValidator( + new IntegerRangeValidator("Must be between 0 and 100", + 0, 100)); addComponent(grid); getLayout().setExpandRatio(grid, 1); } |