diff options
author | Henri Sara <hesara@vaadin.com> | 2011-11-07 11:25:15 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2011-11-07 11:25:15 +0200 |
commit | b7dc0286b82ee10fb7ac991d88040afe157f74a4 (patch) | |
tree | fdf672ca4106ff50130ab41bd4c7ea9cd16c56ca | |
parent | 6c78fecb9f28eb5f0f09c906199dbc4c6c55d50d (diff) | |
download | vaadin-framework-b7dc0286b82ee10fb7ac991d88040afe157f74a4.tar.gz vaadin-framework-b7dc0286b82ee10fb7ac991d88040afe157f74a4.zip |
Remove Field.getCaption(), getDescription() and setDescription().
Obsolete methods removed. When needed, these methods are in
AbstractComponent and can be accessed by casting the Field.
Migration needed: occasional cast of Field to AbstractComponent.
-rw-r--r-- | src/com/vaadin/ui/Field.java | 17 | ||||
-rw-r--r-- | tests/testbench/com/vaadin/tests/tickets/Ticket736.java | 2 |
2 files changed, 1 insertions, 18 deletions
diff --git a/src/com/vaadin/ui/Field.java b/src/com/vaadin/ui/Field.java index 72dc3130c3..1f9bea311f 100644 --- a/src/com/vaadin/ui/Field.java +++ b/src/com/vaadin/ui/Field.java @@ -10,29 +10,12 @@ import com.vaadin.ui.Component.Focusable; /** * @author IT Mill Ltd. - * */ public interface Field extends Component, BufferedValidatable, Property, Property.ValueChangeNotifier, Property.ValueChangeListener, Property.Editor, Focusable { /** - * Sets the Caption. - * - * @param caption - */ - void setCaption(String caption); - - String getDescription(); - - /** - * Sets the Description. - * - * @param caption - */ - void setDescription(String caption); - - /** * Is this field required. * * Required fields must filled by the user. diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket736.java b/tests/testbench/com/vaadin/tests/tickets/Ticket736.java index c530b7ca99..407242e06c 100644 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket736.java +++ b/tests/testbench/com/vaadin/tests/tickets/Ticket736.java @@ -50,7 +50,7 @@ public class Ticket736 extends Application { // Add some validators for the form f.getField("zip").addValidator(new IsInteger()); - f.getField("zip").setDescription("Jepjep"); + ((AbstractComponent) f.getField("zip")).setDescription("Jepjep"); ((AbstractComponent) f.getField("zip")).setIcon(new ThemeResource( "../runo/icons/16/folder.png")); f.getField("state").addValidator(new IsValidState()); |