// System.out.println("INIT WIDGET " + getDeviceName() + " - " + getAttributeName());
tangoType = TangoAttributeHelper.getAttributeType(getDeviceName(), getAttributeName());
tangoFormat = TangoAttributeHelper.getAttributeFormat(getDeviceName(), getAttributeName());
if (getDeviceName() == null || getAttributeName() == null) {
readWidget = (T) new TextField();
writeWidget = (T) new TextField();
}
else if (tangoType == TangoConstHelper.SCALAR_TYPE) {
if (tangoFormat == TangoConstHelper.BOOLEAN_FORMAT) {
readWidget = (T) new CheckBox();
writeWidget = (T) new BooleanComboBox();
}
else if (tangoFormat == TangoConstHelper.STRING_FORMAT) {
readWidget = (T) new TextField();
((TextField) readWidget).setPreferredSize(new Dimension());
writeWidget = (T) new TextField();
}
else if (tangoFormat == TangoConstHelper.NUMERICAL_FORMAT) {
readWidget = (T) new TextField();
writeWidget = (T) new WheelSwitch();
}
}
else if (tangoType == TangoConstHelper.ARRAY_TYPE) {
readWidget = (T) new ChartViewer();