protected boolean ValidatorCalled = false;
public void _validityConstraintChanged() {
boolean res = false;
try {
XValidatable xValidatable = (XValidatable) UnoRuntime.queryInterface(
XValidatable.class,
tEnv.getTestObject());
log.println("adding Validator");
XValidator xValidator = new MyValidator();
xValidatable.setValidator(xValidator);
ValidatorCalled = false;
log.println("calling validityConstraintChanged()");
oObj.validityConstraintChanged(
new com.sun.star.lang.EventObject());