/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* Via this service, bindable control models inherit the
When a If the binding set via this interface supports the
If an bindable control model, at which a binding has been established (via
ReadOnly
property (if present) is kept in sync with the
binding's ReadOnly
property. That is, any control using the value
binding is read-only as long as the binding is.Enabled
property (if present) is kept in sync
with the binding's Relevant
property. That is, any control using
the value binding is disabled as long as the binding is not relevant.
In both cases, explicit changes of the model's property are ignored if they would relax
the restriction imposed by the binding.
For instance, if the binding declares it's value to
be read-only (indicated by ReadOnly
property of the control model to ReadOnly
property at the control model can be freely set.
The very same holds for the binding's Enabled
properties.