Validations and Bindings
Chapter Value Bindings introduced form components that can exchange the value with external components, as long as those support the XValueBinding interface. Also, chapter Validation introduced form components whose value can be validated by external components.
These concepts can be combined. This way, it is possible to build highly customized form documents.
In fact, this is what the com.sun.star.form.validation.ValidatableBindableControlModel service does: it combines the services BindableControlModel with the ValidatableControlModel.
As soon as you establish a validator at the model (setValidator), which is also an XBindableValue, then it is used both as value binding and as validator. Every attempt to establish another binding will be denied, as long as the combined validator/binding is in place.
|In Apache OpenOffice, every form control model that can be validated and is also bindable, also supports the ValidatableBindableControlModel service. That is, the validator and the binding are coupled, if possible.|
|Content on this page is licensed under the Public Documentation License (PDL).|