// Number scalar listener
// -------------------------------------------------------------
@Override
public void numberScalarChange(NumberScalarEvent evt) {
INumberScalar tmpNumberScalar = evt.getNumberSource();
if (m_scalarlistener != null) {
m_scalarlistener.readNumberValueChange(evt.getValue());
if (tmpNumberScalar != null) {
m_scalarlistener.writeNumberValueChange(tmpNumberScalar
.getNumberScalarSetPointFromDevice());
}
}
if (isEditable()) {
return;
}
if (displayReadValue) {
super.numberScalarChange(evt);
}
else {
if (tmpNumberScalar == null) {
return;
}
String tmpValue = getFormatString(tmpNumberScalar.getNumberScalarSetPointFromDevice(),
tmpNumberScalar.getFormat());
if (getUnitVisible()) {
setText(tmpValue + " " + tmpNumberScalar.getUnit());
}
else {
setText(tmpValue);
}
}