int format = TangoAttributeHelper.getAttributeFormat(model, attributeName);
if (format == TangoConstHelper.STRING_FORMAT) {
stringBox.connectWidget(readNumberField, attributeKey);
if (isSettable) {
IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
stringBox.connectWidget(textField, attributeWriteKey);
}
} else if (format == TangoConstHelper.BOOLEAN_FORMAT) {
booleanScalarBox.connectWidget(checkBox, attributeKey);
if (isSettable) {
IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
booleanScalarBox.connectWidget(booleanComboBox, attributeWriteKey);
}
} else if (format == TangoConstHelper.NUMERICAL_FORMAT) {
stringBox.connectWidget(readNumberField, attributeKey);
if (isSettable) {
IKey attributeWriteKey = generateWriteAttributeKey(attributeName);
numberScalarBox.connectWidget(wheelswitch, attributeWriteKey);
}
}
}
}