Business control for windpark application
Copy or clone this repo into your project
- Open build.gradle
- Insert under dependencies this line:
"implementation "commons-validator:commons-validator:1.6""
-
Create the Object: private PowerValueControl bc;
-
Initialize with your Max and Min Value: bc = new PowerValueControl(1000.00, 0.00);
-
Set different Values for Control
bc.setMandatory(true) //input mandatory
bc.setReadOnly(true) //input is not editable -
Do 4 Bindings: bc.powerValueOneProperty() .bindBidirectional(model.powerOneProperty()); //your model, pm..
bc.powerValueTwoProperty() .bindBidirectional(model.powerTwoProperty());
bc.powerValueThreeProperty() .bindBidirectional(model.powerThreeProperty());
bc.powerValueFourProperty() .bindBidirectional(model.powerFourProperty());
marc.schnydrig@students.fhnw.ch
koray.oezkaynak@students.fhnw.ch