super();
}
@Override
protected Label initWidget() {
@SuppressWarnings("serial")
Label label = new Label() {
@Override
public String getText() {
String result = "";
// only display attribute's label (we are not interested in its value)
if (isWidgetConnected()) {
result = TangoAttributeHelper.getLabel(getDeviceName(), getAttributeName());
}
else {
// if not connected, use error text if any (ie default value)
result = super.getText();
}
return result;
}
};
// set a plain font (Label's default display is bold)
CometeFont cometeFont = label.getCometeFont();
label.setCometeFont(new CometeFont(cometeFont.getName(), CometeFont.PLAIN, cometeFont
.getSize()));
return label;
}