AttributeProperty elementProp = arrProp.getElementProperty();
StringBuilder values = new StringBuilder();
+ String value = "";
if (elementProp.isInteger()) {
IntegerProperty intProp = elementProp.asInteger();
if (intProp.hasRange()) {
- values.append(intProp.min() + " - " + intProp.max());
+ value = intProp.min() + " - " + intProp.max();
} else if (intProp.hasValues()) {
int[] arr = intProp.getValues();
for (int i = 0; i < arr.length; i++) {
}
if (!values.toString().isEmpty()) {
- values.append("[" + values + "]");
+ value = "[" + values + "]";
}
}
} else if (elementProp.isDouble()) {
DoubleProperty dblProp = elementProp.asDouble();
if (dblProp.hasRange()) {
- values.append(dblProp.min() + " - " + dblProp.max());
+ value = dblProp.min() + " - " + dblProp.max();
} else if (dblProp.hasValues()) {
double[] arr = dblProp.getValues();
for (int i = 0; i < arr.length; i++) {
}
if (!values.toString().isEmpty()) {
- values.append("[" + values + "]");
+ value = "[" + values + "]";
}
}
} else if (elementProp.isBoolean()) {
- values.append("[true, false]");
+ value = "[true, false]";
} else if (elementProp.isString()) {
StringProperty strProp = elementProp.asString();
if (strProp.hasValues()) {
}
if (!values.toString().isEmpty()) {
- values.append("[" + values + "]");
+ value = "[" + values + "]";
}
}
}
- allowedValuesTxt.setText(values.toString());
+ allowedValuesTxt.setText(value);
// Set the current value.
currentValueTxt.setText(new AttributeValueStringConverter(attribute
AttributeProperty elementProp = arrProp.getElementProperty();
StringBuilder values = new StringBuilder();
+ String value = "";
if (elementProp.isInteger()) {
IntegerProperty intProp = elementProp.asInteger();
if (intProp.hasRange()) {
- values.append(intProp.min() + " - " + intProp.max());
+ value = intProp.min() + " - " + intProp.max();
} else if (intProp.hasValues()) {
int[] arr = intProp.getValues();
for (int i = 0; i < arr.length; i++) {
}
if (!values.toString().isEmpty()) {
- values.append("[" + values + "]");
+ value = "[" + values + "]";
}
}
} else if (elementProp.isDouble()) {
DoubleProperty dblProp = elementProp.asDouble();
if (dblProp.hasRange()) {
- values.append(dblProp.min() + " - " + dblProp.max());
+ value = dblProp.min() + " - " + dblProp.max();
} else if (dblProp.hasValues()) {
double[] arr = dblProp.getValues();
for (int i = 0; i < arr.length; i++) {
}
if (!values.toString().isEmpty()) {
- values.append("[" + values + "]");
+ value = "[" + values + "]";
}
}
} else if (elementProp.isBoolean()) {
- values.append("[true, false]");
+ value = "[true, false]";
} else if (elementProp.isString()) {
StringProperty strProp = elementProp.asString();
if (strProp.hasValues()) {
}
if (!values.toString().isEmpty()) {
- values.append("[" + values + "]");
+ value = "[" + values + "]";
}
}
}
- allowedValuesTxt.setText(values.toString());
+
+ allowedValuesTxt.setText(value);
// Set the current value.
currentValueTxt.setText(new AttributeValueStringConverter(attribute