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

翻訳前ページへ


Interface XComponent
Language

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

API

SDK

Tips ‘n’ Tricks

Miscellaneous


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

interface XComponent
Description
許すs to exclicitly 解放する/自由な 資源s and break cyclic 言及/関連s.

現実に the real lifetime of an UNO 反対する is controlled by 言及/関連s kept on interfaces of this 反対する. But there are two 際立った meanings in keeping a 言及/関連 to an interface: 1st to own the 反対する and 2nd to know the 反対する.

You are only 許すd to keep 言及/関連s of interfaces to UNO 反対するs if you are by 鮮明度/定義 the owner of that 反対する or your 言及/関連 is very 一時的な or you have 登録(する)d an EventListener at that 反対する and 解放(する) the 言及/関連 when "配置する/処分する/したい気持ちにさせるing" is called.

Developers Guide
ProUNO - Lifetime of UNO 反対するs
OfficeDev - の近くにing 文書s
WritingUNO - XComponent
WritingUNO - 核心 Interfaces to 器具/実施する
OfficeDev - Using the 構成要素 枠組み

Methods' 要約
配置する/処分する/したい気持ちにさせる The owner of an 反対する calls this method to explicitly 解放する/自由な all 資源s kept by this 反対する and thus break cyclic 言及/関連s.  
addEventListener 追加するs an event listener to the 反対する.  
removeEventListener 除去するs an event listener from the listener 名簿(に載せる)/表(にあげる).  
Methods' 詳細(に述べる)s
配置する/処分する/したい気持ちにさせる
無効の
配置する/処分する/したい気持ちにさせる();

Description
The owner of an 反対する calls this method to explicitly 解放する/自由な all 資源s kept by this 反対する and thus break cyclic 言及/関連s.

Only the owner of this 反対する is 許すd to call this method. The 反対する should 解放(する) all 資源s and 言及/関連s in the easiest possible manner ( for instance no serialization should take place anymore ).

The 反対する must 通知する all 登録(する)d listeners using the method XEventListener::配置する/処分する/したい気持ちにさせるing. All notfied 反対するs should 解放(する) there 言及/関連s to this 反対する without calling XComponent::removeEventListener (the 性質の/したい気がして 反対する will 解放(する) the listeners eitherway).

After this method has been called, the 反対する should behave as passive as possible, thus it should ignore all calls in 事例/患者 it can 従う with its specification (for instance addEventListener()). Often the 反対する can't 実行する its specification anymore, in this 事例/患者 it must throw the DisposedException (which is derived from ::com::sun::星/主役にする::uno::RuntimeException) when it gets called.

For some 反対するs no real owner can be identified, thus it can be 性質の/したい気がして from 多重の 言及/関連 支えるもの/所有者s. In this 事例/患者 the 反対する should be able to 対処する with 多重の 配置する/処分する/したい気持ちにさせる()-calls (which are 必然的な in a multithreaded 環境).

addEventListener
無効の
addEventListener( [in] XEventListener  xListener );

Description
追加するs an event listener to the 反対する.

The 放送者 解雇する/砲火/射撃s the 配置する/処分する/したい気持ちにさせるing method of this listener if the XComponent::配置する/処分する/したい気持ちにさせる method is called.

It is 示唆するd to 許す 多重の 登録 of the same listener, thus for each time a listener is 追加するd, it has to be 除去するd.

If this XComponent is already 性質の/したい気がして when XComponent::addEventListener is called, the call will not fail with a DisposedException, but the 報知係 will be 通知するd 経由で the XEventListener::配置する/処分する/したい気持ちにさせるing callback. This callback can occur synchronously within the XComponent::addEventListener call.

See also
XComponent::removeEventListener
removeEventListener
無効の
removeEventListener( [in] XEventListener  aListener );

Description
除去するs an event listener from the listener 名簿(に載せる)/表(にあげる).

It is a "noop" if the 明示するd listener is not 登録(する)d.

It is 示唆するd to 許す 多重の 登録 of the same listener, thus for each time a listener is 追加するd, it has to be 除去するd.

If this XComponent is already 性質の/したい気がして when XComponent::removeEventListener is called, the call will not fail with a DisposedException, but will rather be ignored silently.

See also
XComponent::addEventListener
最高の,を越す of Page

Apache Software Foundation

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

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