package ctbrec.ui.settings.api; import ctbrec.ui.controls.range.Range; import javafx.beans.property.ObjectProperty; import javafx.beans.property.SimpleObjectProperty; public class SimpleRangeProperty extends SimpleObjectProperty { private Range range; private SimpleObjectProperty lowProperty; private SimpleObjectProperty highProperty; private String lowKey; private String highKey; public SimpleRangeProperty(Range range, String lowKey, String highKey, T low, T high) { super(null, lowKey); this.range = range; this.lowKey = lowKey; this.highKey = highKey; lowProperty = new SimpleObjectProperty<>(low); highProperty = new SimpleObjectProperty<>(high); } public Range getRange() { return range; } public ObjectProperty lowProperty() { return lowProperty; } public ObjectProperty highProperty() { return highProperty; } public String getLowKey() { return lowKey; } public String getHighKey() { return highKey; } }