public void labelChange(String value) {
// TODO Auto-generated method stub
}
});
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) {
// nop
}
});
f.start();
final NumberScalarFieldCometeV2 f2 = new NumberScalarFieldCometeV2();
if (inCompleteNameMode) {
f2.setCompleteEntityName(tmpDeviceName + "/" + tmpAttributeName);
}
else {
f2.setDeviceName(tmpDeviceName);
f2.setAttributeName(tmpAttributeName);
}
f2.setAlarmEnabled(false);
f2.setValueEditable(true);
f2.setAskConfirmation(setConfirmation);
f2.setDisplayReadValue(false);
f2.setEnabled(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.addInputListener(new InputListener() {
@Override
public void stringValueChange(String value) {
System.out.println("InputListener ===> stringValueChange " + value);