}
@Override
public void booleanScalarChange(final BooleanScalarEvent arg0) {
// System.out.println("booleanScalarChange=" + getAttModel());
final IBooleanScalar tmpModel = getAttModel();
if (m_booleanListener != null) {
m_booleanListener.readBooleanValueChange(arg0.getValue());
if (tmpModel != null && tmpModel.isWritable()) {
m_booleanListener.writeBooleanValueChange(getAttModel()
.getSetPoint());
}
}
// Must store the enable property before because it is overwriting.
final boolean enableBefore = isEnabled();
if (displayReadValue || tmpModel == null || !tmpModel.isWritable()) {
super.booleanScalarChange(arg0);
} else if (tmpModel != null && tmpModel.isWritable()) {
setBoolValue(tmpModel.getSetPoint());
}
setEnabled(enableBefore);
}