diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-09-26 10:46:15 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-09-26 10:46:15 +0200 |
commit | eeaca934a6851ea7d901a5692d81a53921ca6bb3 (patch) | |
tree | 2d93272ae1818ec6f8264c5f74b0a854a1893446 /vaadin-app | |
parent | d7f316ef205ac5617bd9ac6473ee6a1f563896c2 (diff) | |
download | skeletons-eeaca934a6851ea7d901a5692d81a53921ca6bb3.zip skeletons-eeaca934a6851ea7d901a5692d81a53921ca6bb3.tar.gz |
vaadin-app: use ObjectProperty
Diffstat (limited to 'vaadin-app')
-rw-r--r-- | vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java b/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java index 8abd99d..cb9a029 100644 --- a/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java +++ b/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java @@ -6,6 +6,7 @@ import com.vaadin.Application; import com.vaadin.terminal.UserError; import com.vaadin.data.Property; import com.vaadin.data.Property.ValueChangeEvent; +import com.vaadin.data.util.ObjectProperty; import com.vaadin.ui.FormLayout; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; @@ -32,6 +33,15 @@ class DataMappingLayout extends FormLayout { } }); // + Double trouble = 66.6; + final ObjectProperty<Double> property = new ObjectProperty<Double>(trouble); + final TextField tf2 = new TextField("ObjectProperty", property); + tf2.setImmediate(true); + addComponent(tf2); + final Label lb2 = new Label(property); + lb2.setCaption("The Value"); + addComponent(lb2); + // Button closeButton = new Button("close the application"); closeButton.setDescription("This will close the application"); addComponent(closeButton ); |