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

翻訳前ページへ


Interface XFormOperations
Language

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

API

SDK

Tips ‘n’ Tricks

Miscellaneous


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

unpublished interface XFormOperations
Base Interfaces
XFormOperations
┗ ::com::sun::星/主役にする::lang::XComponent

::com::sun::星/主役にする::lang::XComponent
(言及/関連d interface's 要約:)
許すs to exclicitly 解放する/自由な 資源s and break cyclic 言及/関連s.
Usage 制限s
not published
Description
encapsulates 操作/手術s on a database form.

This instance 許すs for 操作/手術s on a 使用者 interface form, by saving its (弁護士の)依頼人s from さまざまな tedious and error-傾向がある 操作/手術s.

As an example, imagine you have a database form, 陳列する,発揮するd in some 使用者 interface, which you want to move to the next 記録,記録的な/記録する.
It is as 平易な as calling com:::sun::星/主役にする::sdbc::XResultSet::next on this form, 権利? Wrong. First, you need to care for saving the 現在の 記録,記録的な/記録する, so the 使用者 doesn't lose her input. So you need to call ::com::sun::星/主役にする::sdbc::XResultSetUpdate::updateRow or ::com::sun::星/主役にする::sdbc::XResultSetUpdate::insertRow, depending on the form's ::com::sun::星/主役にする::sdb::RowSet::IsNew 所有物/資産/財産.
But then you're done, 権利? Wrong, again.
When the 使用者 just entered some data into one of the form fields, but did not yet leave this field, then the data is not yet committed to the form, not to talk about 存在 committed to the underlying database. So, before everything else, you would nee to 得る the active 支配(する)/統制する of the form, and commit it.
Now you're done ...

As another example, consider that you want to 削除する the 現在の 記録,記録的な/記録する from the form. You have to take into account any ::com::sun::星/主役にする::form::XConfirmDeleteListeners 登録(する)d at the ::com::sun::星/主役にする::form::FormController or the ::com::sun::星/主役にする::form::構成要素::DataForm.

If you agree that this is ugly to do and 持続する, then XFormOperations is for you. It 供給するs a 遂行する/発効させる method, which will do all of the above for you; 加える some 類似の convenient wrappers for 類似の functionality.

Since
OOo 2.2
See also
FormFeature

Methods' 要約
getState retrieves the 現在の 明言する/公表する of the given feature  
isEnabled 決定するs whether a feature is 現在/一般に enabled.  
遂行する/発効させる 遂行する/発効させるs the 操作/手術 associated with the given feature  
executeWithArguments 遂行する/発効させるs the 操作/手術 associated with the given feature, with passing arguments for 死刑執行  
commitCurrentRecord commits the 現在の 記録,記録的な/記録する of the form  
commitCurrentControl commits the 現在の 支配(する)/統制する of our 監査役  
isInsertionRow 決定するs whether the form is 現在/一般に positioned on the insertion 列/漕ぐ/騒動  
isModifiedRow 決定するs whether the 現在の 列/漕ぐ/騒動 of the form is 修正するd  
せいにするs' 要約
Cursor 供給するs 接近 to the cursor of the form the instance is operating on.  
UpdateCursor 供給するs 接近 to the update cursor of the form the instance is operating on.  
監査役 供給するs 接近 to the form 監査役 which the instance is operating on.  
FeatureInvalidation denotes the instance which should be 通知するd about features whose 明言する/公表する might have changed.  
Methods' 詳細(に述べる)s
getState
FeatureState
getState( [in] short  Feature );

Description
retrieves the 現在の 明言する/公表する of the given feature

You would usually use this to update some 使用者 interface to 反映する this 明言する/公表する. For instance, you could imagine a toolbar button which is associated with a given feature. This button would be enabled if and only if the 各々の feature is 現在/一般に 利用できる, and be checked if and only if the feature 明言する/公表する is a boolean 評価するing to true.

Parameter Feature
the feature whose 明言する/公表する is to be determimed. Must be one of the FormFeature constants.
An 無効の value here will be silently ignored, and 簡単に return a FeatureState 示すing 無能にするd with a NULL 明言する/公表する.

isEnabled
boolean
isEnabled( [in] short  Feature );

Description
決定するs whether a feature is 現在/一般に enabled.

Calling this is 同等(の) to calling getState, and 評価するing the FeatureState::Enabled member.

Parameter Feature
the feature whose 明言する/公表する is to be determimed. Must be one of the FormFeature constants.
An 無効の value here will be silently ignored, and 簡単に return 誤った.
遂行する/発効させる
無効の
遂行する/発効させる( [in] short  Feature )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException,
::com::sun::星/主役にする::sdbc::SQLException,
::com::sun::星/主役にする::lang::WrappedTargetException );

Description
遂行する/発効させるs the 操作/手術 associated with the given feature
Parameter Feature
the feature which is to be 遂行する/発効させるd. Must be one of the FormFeature constants.
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if the given Feature is unknown, not executable, or striclty 要求するs arguments to be 遂行する/発効させるd.
Throws
::com::sun::星/主役にする::sdbc::SQLException if a database 接近 erorr occurs
Throws
::com::sun::星/主役にする::lang::WrappedTargetException if an exception is caught which is no ::com::sun::星/主役にする::uno::RuntimeException and no ::com::sun::星/主役にする::sdbc::SQLException.
See also
executeWithArguments
executeWithArguments
無効の
executeWithArguments( [in] short  Feature,
[in] sequence< ::com::sun::星/主役にする::beans::NamedValue >  Arguments )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException,
::com::sun::星/主役にする::sdbc::SQLException,
::com::sun::星/主役にする::lang::WrappedTargetException );

Description
遂行する/発効させるs the 操作/手術 associated with the given feature, with passing arguments for 死刑執行
Parameter Feature
the feature which is to be 遂行する/発効させるd. Must be one of the FormFeature constants.
Parameter Arguments
the 指名するd arguments for the feature to 遂行する/発効させる. See the FormFeature 名簿(に載せる)/表(にあげる) for features which 要求する arguments.
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if the given feature is unknown, or not executable
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if the given arguments are not 十分な to 遂行する/発効させる the feature
Throws
::com::sun::星/主役にする::sdbc::SQLException if a database 接近 erorr occurs
Throws
::com::sun::星/主役にする::lang::WrappedTargetException if an exception is caught which is no ::com::sun::星/主役にする::uno::RuntimeException and no ::com::sun::星/主役にする::sdbc::SQLException.
commitCurrentRecord
boolean
commitCurrentRecord( [out] boolean  RecordInserted )
raises( ::com::sun::星/主役にする::sdbc::SQLException );

Description
commits the 現在の 記録,記録的な/記録する of the form
Parameter RecordInserted
will be true if a 記録,記録的な/記録する has been 挿入するd, i.e. the form was positioned on the insertion 列/漕ぐ/騒動.
Returns
true if and only if the 現在の 記録,記録的な/記録する needed 存在 committed. That's the 事例/患者 if the 記録,記録的な/記録する or the active 支配(する)/統制する of the form were 修正するd.
Throws
::com::sun::星/主役にする::sdbc::SQLException if a database 接近 erorr occurs
commitCurrentControl
boolean
commitCurrentControl()
raises( ::com::sun::星/主役にする::sdbc::SQLException );

Description
commits the 現在の 支配(する)/統制する of our 監査役
Throws
::com::sun::星/主役にする::sdbc::SQLException if a database 接近 erorr occurs
isInsertionRow
boolean
isInsertionRow()
raises( ::com::sun::星/主役にする::lang::WrappedTargetException );

Description
決定するs whether the form is 現在/一般に positioned on the insertion 列/漕ぐ/騒動

This is a convenience method only. Calling it es 同等(の) to examing the ::com::sun::星/主役にする::sdb::RowSet::IsNew 所有物/資産/財産 of the form.

Throws
::com::sun::星/主役にする::lang::WrappedTargetException if an error occurs 得るing the form 所有物/資産/財産
isModifiedRow
boolean
isModifiedRow()
raises( ::com::sun::星/主役にする::lang::WrappedTargetException );

Description
決定するs whether the 現在の 列/漕ぐ/騒動 of the form is 修正するd

This is a convenience method only. Calling it es 同等(の) to examing the ::com::sun::星/主役にする::sdb::RowSet::IsModified 所有物/資産/財産 of the form.

Throws
::com::sun::星/主役にする::lang::WrappedTargetException if an error occurs 得るing the form 所有物/資産/財産
せいにするs' 詳細(に述べる)s
Cursor
[ readonly ] ::com::sun::星/主役にする::sdbc::XRowSet Cursor;
Description
供給するs 接近 to the cursor of the form the instance is operating on.
UpdateCursor
[ readonly ] ::com::sun::星/主役にする::sdbc::XResultSetUpdate UpdateCursor;
Description
供給するs 接近 to the update cursor of the form the instance is operating on.
監査役
[ readonly ] XFormController 監査役;
Description
供給するs 接近 to the form 監査役 which the instance is operating on.

公式文書,認める that it is possible to operate on a 使用者 interface form without 現実に having 接近 to the form 監査役 instance. However, in this 事例/患者 some functionality will not be 利用できる. In particular, every feature which relies on the active 支配(する)/統制する of the 監査役 might be of 限られた/立憲的な use.

FeatureInvalidation
XFeatureInvalidation FeatureInvalidation;
Description
denotes the instance which should be 通知するd about features whose 明言する/公表する might have changed.

If this せいにする is not NULL, the instance which it denotes will be 通知するd whenever the 明言する/公表する of any supported feature might have changed.

For instance, imagine a form whose 現在の 列/漕ぐ/騒動 has just been moved to another 記録,記録的な/記録する, using the 遂行する/発効させる method. This means that 潜在的に, the 明言する/公表する of all movement-関係のある features might have changed.

公式文書,認める that the instance does not 現実に 通知する changes in the feature 明言する/公表するs, but only 可能性のある changes: It's up to the callee to 反応する on this 適切な. This is since OpenOffice.org's 使用/適用 枠組み features own 機械装置s to (武器などの)隠匿場所 and 無効にする feature 明言する/公表するs, so we do not 重荷(を負わせる) this 実施 here with such 機械装置s.

See also
FormFeature
最高の,を越す 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.