diff options
author | Eduardo Pedroni <ep625@york.ac.uk> | 2014-03-24 08:14:12 +0000 |
---|---|---|
committer | Eduardo Pedroni <ep625@york.ac.uk> | 2014-03-24 08:14:12 +0000 |
commit | a09124d93c3e31d4e25ffe6c2f0a7663c02c35ed (patch) | |
tree | ffd47d8d16bbc20ac900db067f73146b66ae6e27 /src/jcgp/gui/settings | |
parent | 0c288cc1952809294c8d70d86b9f41b04878ac2e (diff) |
Going further into active path locking
Diffstat (limited to 'src/jcgp/gui/settings')
-rw-r--r-- | src/jcgp/gui/settings/GUIIntegerParameter.java | 23 | ||||
-rw-r--r-- | src/jcgp/gui/settings/GUIParameter.java | 13 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/jcgp/gui/settings/GUIIntegerParameter.java b/src/jcgp/gui/settings/GUIIntegerParameter.java new file mode 100644 index 0000000..2bf5480 --- /dev/null +++ b/src/jcgp/gui/settings/GUIIntegerParameter.java @@ -0,0 +1,23 @@ +package jcgp.gui.settings; + +import javafx.scene.control.TextField; +import javafx.scene.text.Text; +import jcgp.parameters.IntegerParameter; + +public class GUIIntegerParameter extends GUIParameter { + + private TextField value; + + public GUIIntegerParameter(IntegerParameter parameter) { + this.parameter = parameter; + + name = new Text(parameter.getName()); + value = new TextField(String.valueOf((int) parameter.getValue())); + + value.setDisable(parameter.isManaged()); + + getChildren().addAll(name, value); + + } + +} diff --git a/src/jcgp/gui/settings/GUIParameter.java b/src/jcgp/gui/settings/GUIParameter.java new file mode 100644 index 0000000..d084060 --- /dev/null +++ b/src/jcgp/gui/settings/GUIParameter.java @@ -0,0 +1,13 @@ +package jcgp.gui.settings; + +import javafx.scene.layout.HBox; +import javafx.scene.text.Text; +import jcgp.parameters.Parameter; + +public abstract class GUIParameter extends HBox { + + protected Parameter parameter; + + protected Text name; + +} |