From 5f2c1d32f71cc9f640c10ca7348ef9056916854d Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Wed, 21 May 2014 06:40:56 +0100 Subject: More minor refactorings, added some comments --- src/jcgp/gui/settings/parameters/GUIBooleanParameter.java | 4 ++-- src/jcgp/gui/settings/parameters/GUIDoubleParameter.java | 4 ++-- src/jcgp/gui/settings/parameters/GUIIntegerParameter.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/jcgp/gui/settings') diff --git a/src/jcgp/gui/settings/parameters/GUIBooleanParameter.java b/src/jcgp/gui/settings/parameters/GUIBooleanParameter.java index 29f8e1f..a13a52b 100644 --- a/src/jcgp/gui/settings/parameters/GUIBooleanParameter.java +++ b/src/jcgp/gui/settings/parameters/GUIBooleanParameter.java @@ -22,11 +22,11 @@ public class GUIBooleanParameter extends GUIParameter { private CheckBox checkBox; /** - * This default-visibility constructor is intended for use + * This protected constructor is intended for use * by the factory method only. * */ - GUIBooleanParameter(final BooleanParameter parameter, final SettingsPane sp) { + protected GUIBooleanParameter(BooleanParameter parameter, SettingsPane sp) { super(parameter, sp); } diff --git a/src/jcgp/gui/settings/parameters/GUIDoubleParameter.java b/src/jcgp/gui/settings/parameters/GUIDoubleParameter.java index c3c1f59..9f4ea28 100644 --- a/src/jcgp/gui/settings/parameters/GUIDoubleParameter.java +++ b/src/jcgp/gui/settings/parameters/GUIDoubleParameter.java @@ -7,7 +7,7 @@ import javafx.beans.value.ObservableValue; import javafx.geometry.Pos; import javafx.scene.control.Control; import javafx.scene.control.TextField; -import jcgp.backend.parameters.Parameter; +import jcgp.backend.parameters.DoubleParameter; import jcgp.backend.parameters.ParameterStatus; import jcgp.gui.settings.SettingsPane; @@ -30,7 +30,7 @@ public class GUIDoubleParameter extends GUIParameter { * by the factory method only. * */ - protected GUIDoubleParameter(Parameter parameter, SettingsPane sp) { + protected GUIDoubleParameter(DoubleParameter parameter, SettingsPane sp) { super(parameter, sp); } diff --git a/src/jcgp/gui/settings/parameters/GUIIntegerParameter.java b/src/jcgp/gui/settings/parameters/GUIIntegerParameter.java index 5bf6d9c..d36c1b3 100644 --- a/src/jcgp/gui/settings/parameters/GUIIntegerParameter.java +++ b/src/jcgp/gui/settings/parameters/GUIIntegerParameter.java @@ -5,7 +5,7 @@ import javafx.beans.value.ObservableValue; import javafx.geometry.Pos; import javafx.scene.control.Control; import javafx.scene.control.TextField; -import jcgp.backend.parameters.Parameter; +import jcgp.backend.parameters.IntegerParameter; import jcgp.backend.parameters.ParameterStatus; import jcgp.gui.settings.SettingsPane; @@ -27,7 +27,7 @@ public class GUIIntegerParameter extends GUIParameter { * by the factory method only. * */ - protected GUIIntegerParameter(Parameter parameter, SettingsPane sp) { + protected GUIIntegerParameter(IntegerParameter parameter, SettingsPane sp) { super(parameter, sp); } -- cgit v1.2.3