this.unitType = unitType;
getLayoutComposite().setLayout(LayoutConstants.LAYOUT(2, false));
- text_minVal = formFactory.createNumberTextWithLabelElement(this,
- "Min : ", getMinimum(), style);
-
- text_maxVal = formFactory.createNumberTextWithLabelElement(this,
- "Max : ", getMaximum(), style);
-
+ switch(unitType) {
+ case ELEVATION:
+ text_minVal = formFactory.createNumberTextWithLabelElement(this, "Min [m] : ", getMinimum(), style);
+ text_maxVal = formFactory.createNumberTextWithLabelElement(this, "Max [m] : ", getMaximum(), style);
+ break;
+ default:
+ text_minVal = formFactory.createNumberTextWithLabelElement(this, "Min [m] : ", getMinimum(), style);
+ text_maxVal = formFactory.createNumberTextWithLabelElement(this, "Max [m] : ", getMaximum(), style);
+ break;
+ }
text_freeText = formFactory.createTextWithLabelElement(this,
"Freetext : ", getFreetext(), style);