/*************************************************************************
*
* $RCSfile: DataAwareControlModel.idl,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2003-03-26 13:53:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library 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 for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#ifndef __com_sun_star_form_DataAwareControlModel_idl__
#define __com_sun_star_form_DataAwareControlModel_idl__
#ifndef __com_sun_star_form_FormControlModel_idl__
#include The connection between a data-aware control model and a form which's data the
control should display is made by parentship relations. The parent of a data-aware
control model (see
This interface is optional, if a component doesn't support it, it has to forward
the changes of it's value to the field it is connected to immediately (means whenever a user
interaction changes it's content).
In the context of a control model which is data-aware, the semantics of default value
(see For an example, have a look at the In the context of a
This interface will seldom be used directly from outside.
*/
interface com::sun::star::form::XLoadListener;
/** Each
If (and only if) the control is valid bound to a column of it's
In all other cases, the model is reset to the default value as specified by the respective property.
This property makes sense in the context of the control model only. Normally, a control model
is a child of a
This member here describes the column of this result set which the control should act for.
Not every control model can be bound to every database column. Usually, super services of the
Applies only if the form the control model belongs to is loaded and the control is valid bound.
The referenced field supports the
Any user interface action which needs to refer to the control is assumed to use this
property.
A very common design method for forms is to group a data aware control with a label control,
with the latter describing the content of the former. For instance, you may have a
Now if you imagine a component offering data search in a form, this component will examine
the
When setting the property, a number of constraints apply: