このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Service DataAwareControlModel
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.16

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: form ::

service DataAwareControlModel
Description
is an abstract service for 専攻するd FormControlModels which are data aware and thus can be bound to a data source.

The 関係 between a data-aware 支配(する)/統制する model and a form which's data the 支配(する)/統制する should 陳列する,発揮する is made by parentship relations. The parent of a data-aware 支配(する)/統制する model (see ::com::sun::星/主役にする::コンテナ::XChild, 相続するd 経由で the FormControlModel and FormComponent services) has always to be a ::com::sun::星/主役にする::form::構成要素::DataForm.

Developers Guide
Forms - Data Aware 支配(する)/統制するs

含むd Services - 要約
FormControlModel
(言及/関連d (独立の)存在's 要約:)
明示するs a 支配(する)/統制する model within a form.
輸出(する)d Interfaces - 要約
XBoundComponent

makes it possible to 移転 the data of the model to the connected data field. (詳細(に述べる)s)

XLoadListener

must be 器具/実施するd ーするために 認める when the 含む/封じ込めるing form of the model connects to its data source (負担s its data). After 負担ing the form, the model may 貯蔵所d to its 関係のある field source.
This interface will seldom be used 直接/まっすぐに from outside.

XReset

Each DataAwareControlModel should be resettable for setting default values. (詳細(に述べる)s)

所有物/資産/財産s' 要約
string
DataField
明示するs the 指名する of the bound database field.  
boolean
InputRequired
[ OPTIONAL ]
決定するs whether or not input into this field is 要求するd, when it is 現実に bound to a database field.  
[ readonly ] ::com::sun::星/主役にする::beans::XPropertySet
BoundField
言及/関連s to the cursor field to which the 支配(する)/統制する is bound.  
::com::sun::星/主役にする::beans::XPropertySet
LabelControl
言及/関連s to a 支配(する)/統制する model within the same 文書 which should be used as a label.  
含むd Services - 詳細(に述べる)s
FormControlModel
(言及/関連d (独立の)存在's 要約:)
明示するs a 支配(する)/統制する model within a form.
輸出(する)d Interfaces - 詳細(に述べる)s
XBoundComponent
Usage 制限s
optional
Description
makes it possible to 移転 the data of the model to the connected data field.

This interface is optional, if a 構成要素 doesn't support it, it has to 今後 the changes of it's value to the field it is connected to すぐに (means whenever a 使用者 interaction changes it's content).

XLoadListener
Description
must be 器具/実施するd ーするために 認める when the 含む/封じ込めるing form of the model connects to its data source (負担s its data). After 負担ing the form, the model may 貯蔵所d to its 関係のある field source.
This interface will seldom be used 直接/まっすぐに from outside.
XReset
Description
Each DataAwareControlModel should be resettable for setting default values.

In the 状況 of a 支配(する)/統制する model which is data-aware, the semantics of default value (see XReset) is as follows:
If (and only if) the 支配(する)/統制する is valid bound to a column of it's ::com::sun::星/主役にする::form::構成要素::DataForm, and the form is not positioned on a new 記録,記録的な/記録する (see ::com::sun::星/主役にする::sdb::RowSet::IsNew), then XReset::reset does not reset the model's value to it's default value, but uses the underlying column value.
In all other 事例/患者s, the model is reset to the default value as 明示するd by the 各々の 所有物/資産/財産.

For an example, have a look at the ::com::sun::星/主役にする::form::構成要素::TextField. It 相続するs the ::com::sun::星/主役にする::awt::UnoControlEditModel::Text 所有物/資産/財産 from the underlying service, and additionally 明示するs the ::com::sun::星/主役にする::form::構成要素::TextField::DefaultText.

In the 状況 of a ::com::sun::星/主役にする::form::構成要素::DataForm, 支配(する)/統制するs are automatically reset when one of the に引き続いて 適用するs

  • The form is reset by invoking it's XReset interface.
  • The form moves to a new 記録,記録的な/記録する.
  • The changes in the 現在の 記録,記録的な/記録する of the form are undone

所有物/資産/財産s' 詳細(に述べる)s
DataField
string DataField;
Description
明示するs the 指名する of the bound database field.

This 所有物/資産/財産 makes sense in the 状況 of the 支配(する)/統制する model only. 普通は, a 支配(する)/統制する model is a child of a ::com::sun::星/主役にする::form::構成要素::DataForm, which is bound to a higher level 反対する such as a (米)棚上げする/(英)提議する or query - more general, a result 始める,決める.
This member here 述べるs the column of this result 始める,決める which the 支配(する)/統制する should 行為/法令/行動する for.

Not every 支配(する)/統制する model can be bound to every database column. Usually, 最高の services of the DataAwareControlModel 制限する the column types they can be used with.

See also
DataAwareControlModel::BoundField
InputRequired
boolean InputRequired;
Usage 制限s
optional
Description
決定するs whether or not input into this field is 要求するd, when it is 現実に bound to a database field.

If this 所有物/資産/財産 is 始める,決める to 誤った, then the form runtime will not check the 支配(する)/統制する/model for NULL values before submitting data to the database. Usually, if a 支配(する)/統制する model is bound to a database field which cannot be NULL, and the model itself does not have a value, then the database update is 妨げるd, showing an error message to the 使用者. To 無能にする this 行為 on a per-支配(する)/統制する basis, use the InputRequired 所有物/資産/財産.

Since
OOo 3.1
BoundField
[ readonly ] ::com::sun::星/主役にする::beans::XPropertySet BoundField;
Description
言及/関連s to the cursor field to which the 支配(する)/統制する is bound.

適用するs only if the form the 支配(する)/統制する model belongs to is 負担d and the 支配(する)/統制する is valid bound. The 言及/関連d field supports the ::com::sun::星/主役にする::sdb::Column service.

See also
DataAwareControlModel::DataField
LabelControl
::com::sun::星/主役にする::beans::XPropertySet LabelControl;
Description
言及/関連s to a 支配(する)/統制する model within the same 文書 which should be used as a label.

Any 使用者 interface 活動/戦闘 which needs to 言及する to the 支配(する)/統制する is assumed to use this 所有物/資産/財産.
A very ありふれた design method for forms is to group a data aware 支配(する)/統制する with a label 支配(する)/統制する, with the latter 述べるing the content of the former. For instance, you may have a ::com::sun::星/主役にする::form::構成要素::TextField, which is bound to the e-mail column of your data source. Then you will probably 追加する a ::com::sun::星/主役にする::form::構成要素::FixedText which's label is "E-Mail", and associate it with the TextField by setting it as LabelControl.
Now if you imagine a 構成要素 申し込む/申し出ing data search in a form, this 構成要素 will 診察する the LabelControl 所有物/資産/財産, find the ::com::sun::星/主役にする::form::構成要素::FixedText, 診察する it's label, and use this label to 言及する to the ::com::sun::星/主役にする::form::構成要素::TextField.

When setting the 所有物/資産/財産, a number of 強制s 適用する:

  • The 反対する which is to be 始める,決める has to support the に引き続いて interfaces
  • It has to be a part of the same 文書 as the model who's 所有物/資産/財産 is to be 修正するd.
  • Additionally, the support of a special service, 示すing that the model is of the 権利 type, is 要求するd. Which 肉親,親類d of service is in the request depends on the type of the 支配(する)/統制する model.
    For instance, text fields (::com::sun::星/主役にする::form::構成要素::TextField) can be labelled by label 支配(する)/統制するs only (::com::sun::星/主役にする::form::構成要素::FixedText), and 無線で通信する buttons (::com::sun::星/主役にする::form::構成要素::RadioButton) can be labelled by group boxes (::com::sun::星/主役にする::form::構成要素::GroupBox) only.


 
最高の,を越す of Page

The ASF

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The ASF logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.