Listen for changes of the checked state in the embedded table of an AbstractTableField [message #1042295] |
Tue, 16 April 2013 04:32  |
Eclipse User |
|
|
|
Hello
In my form class that extends AbstractForm there is a field of type AbstractTableField. The embedded table of this field has the property "Checkable" selected.
In my form i would like to be able to listen for changes of the checked state of the rows in the embedded table (to be able to activate or deactivate the save form button of the form).
I have tried the following:
@Override
protected void execInitForm() throws ProcessingException {
// For every field...
for (IFormField field : getAllFields()) {
field.addPropertyChangeListener("value", validationListener);
field.addPropertyChangeListener("empty", validationListener);
}
// PropertyChangeListener for the activation of the Ok Button
addPropertyChangeListener("saveNeeded", new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent event) {
if (event.getNewValue().equals(false)) {
getOkButton().setEnabledGranted(false);
}
else {
getOkButton().setEnabledPermission(new UpdateStammdatenBibPermission());
}
}
});
}
My problem is that it does not seem to be any events fired when the checkboxes are selected or deselected in the embedded table.
BR
Fredrik Möller
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05299 seconds