public void readBooleanValueChange(boolean value) {
System.out.println("BooleanAttributeListener ===> readBooleanValueChange " + value);
}
});
f.addInputListener(new InputListener() {
@Override
public void stringValueChange(String value) {
System.out.println("InputListener ===> stringValueChange " + value);
}
@Override
public void stepValueChange(double value) {
// TODO Auto-generated method stub
}
@Override
public void numberValueChange(double value) {
System.out.println("InputListener ===> numberValueChange " + value);
}
@Override
public void booleanValueChange(boolean value) {
// TODO Auto-generated method stub
}
@Override
public void actionPerformed(String text) {
System.out.println("InputListener ===> actionPerformed " + text);
}
});
f.start();
AttributeScalarFieldCometeV2 f2 = new AttributeScalarFieldCometeV2();
f2.setDeviceName(tmpDeviceName);
f2.setAttributeName(tmpAttributeName);
f2.setDisplayReadValue(false);
f2.setValueEditable(true);
f2.setAlarmEnabled(true);
f2.setAskConfirmation(true);
f2.setDefaultHelpText(true);
f2.addScalarAttributeListener(new ScalarAttributeListener() {
@Override
public void writeStringValueChange(String value) {
System.out.println("ScalarAttributeListener ===> writeStringValueChange " + value);
}
@Override
public void writeNumberValueChange(double value) {
System.out.println("ScalarAttributeListener ===> writeNumberValueChange " + value);
}
@Override
public void veryMinAlarmChange(double value) {
// TODO Auto-generated method stub
}
@Override
public void veryMaxAlarmChange(double value) {
// TODO Auto-generated method stub
}
@Override
public void unitChange(String value) {
// TODO Auto-generated method stub
}
@Override
public void stateChange(String value) {
System.out.println("ScalarAttributeListener ===> stateChange " + value);
}
@Override
public void readStringValueChange(String value) {
System.out.println("ScalarAttributeListener ===> readStringValueChange " + value);
}
@Override
public void readNumberValueChange(double value) {
System.out.println("ScalarAttributeListener ===> readNumberValueChange " + value);
}
@Override
public void minValueChange(double value) {
// TODO Auto-generated method stub
}
@Override
public void minAlarmChange(double value) {
// TODO Auto-generated method stub
}
@Override
public void maxValueChange(double value) {
// TODO Auto-generated method stub
}
@Override
public void maxAlarmChange(double value) {
// TODO Auto-generated method stub
}
@Override
public void labelChange(String value) {
// TODO Auto-generated method stub
}
});
f2.addBooleanAttributeListener(new BooleanAttributeListener() {
@Override
public void writeBooleanValueChange(boolean value) {
System.out
.println("BooleanAttributeListener ===> writeBooleanValueChange " + value);
}
@Override
public void stateChange(String value) {
// TODO Auto-generated method stub
}
@Override
public void readBooleanValueChange(boolean value) {
System.out.println("BooleanAttributeListener ===> readBooleanValueChange " + value);
}
});
f2.addInputListener(new InputListener() {
@Override
public void stringValueChange(String value) {
System.out.println("InputListener ===> stringValueChange " + value);