Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2016-04-12 15:29:52 -0400
committerTom Schindl2016-04-12 15:29:52 -0400
commit4bd49b7741abf1c077ff8b9ef4b37addd13823fc (patch)
treebc02ce4eb7fd84636df260a9b15b21a2fa724906
parent2a5cca72f2f4faad2d026f7bfde0c35e02bb4674 (diff)
downloadorg.eclipse.efxclipse-4bd49b7741abf1c077ff8b9ef4b37addd13823fc.tar.gz
org.eclipse.efxclipse-4bd49b7741abf1c077ff8b9ef4b37addd13823fc.tar.xz
org.eclipse.efxclipse-4bd49b7741abf1c077ff8b9ef4b37addd13823fc.zip
Bug 491535 - Add a validation story who is application to mvvm
-rw-r--r--demos/org.eclipse.fx.ui.controls.sample/src/org/eclipse/fx/ui/controls/sample/ValidationVMSample.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/org.eclipse.fx.ui.controls.sample/src/org/eclipse/fx/ui/controls/sample/ValidationVMSample.java b/demos/org.eclipse.fx.ui.controls.sample/src/org/eclipse/fx/ui/controls/sample/ValidationVMSample.java
index c6b297c7f..a755cf359 100644
--- a/demos/org.eclipse.fx.ui.controls.sample/src/org/eclipse/fx/ui/controls/sample/ValidationVMSample.java
+++ b/demos/org.eclipse.fx.ui.controls.sample/src/org/eclipse/fx/ui/controls/sample/ValidationVMSample.java
@@ -27,10 +27,10 @@ public class ValidationVMSample extends Application {
public VM(String firstname, String lastname) {
this.firstname = new ValidatedSimpleStringProperty(new SimpleStringProperty(this, "firstname",firstname));
- this.firstname.validator(s -> s.isEmpty() ? Status.status(State.ERROR, -1, "Vorname muß befüllt sein", null) : Status.ok());
+ this.firstname.registerValidator(s -> s.isEmpty() ? Status.status(State.ERROR, -1, "Vorname muß befüllt sein", null) : Status.ok());
this.lastname = new ValidatedSimpleStringProperty(new SimpleStringProperty(this, "lastname", lastname));
- this.lastname.validator(s -> s.isEmpty() ? Status.status(State.ERROR, -1, "Nachname muß befüllt sein", null) : Status.ok());
+ this.lastname.registerValidator(s -> s.isEmpty() ? Status.status(State.ERROR, -1, "Nachname muß befüllt sein", null) : Status.ok());
this.aggregator = new StatusAggregator(this.firstname,this.lastname);
}

Back to the top