summaryrefslogtreecommitdiffstats
path: root/vaadin-app/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'vaadin-app/src/ch/asynk')
-rw-r--r--vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java10
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 );