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

翻訳前ページへ


Interface XCloseListener
Language

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

API

SDK

Tips ‘n’ Tricks

Miscellaneous


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

interface XCloseListener
Base Interfaces
XCloseListener
┗ ::com::sun::星/主役にする::lang::XEventListener

::com::sun::星/主役にする::lang::XEventListener
(言及/関連d interface's 要約:)
base interface for all event listeners interfaces.
Description
makes it possible to receive events when an 反対する is called for の近くにing

Such の近くに events are broadcasted by a XCloseBroadcaster if somewhere tries to の近くに it by calling XCloseable::の近くに(). Listener can:

  • break that by throwing CloseVetoException
  • or 受託する that by deregister himself at this 放送者.

If an event XEventListener::配置する/処分する/したい気持ちにさせるing occurred, nobody called XCloseable::の近くに on listened 反対する before. Then it's not 許すd to break this request - it must be 受託するd!

See also
XCloseable, XCloseBroadcaster
Developers Guide
OfficeDev - の近くにing 文書s

Methods' 要約
queryClosing is called when somewhere tries to の近くに listened 反対する  
notifyClosing is called when the listened 反対する is の近くにd realy  
Methods' 詳細(に述べる)s
queryClosing
無効の
queryClosing( [in] ::com::sun::星/主役にする::lang::EventObject  Source,
[in] boolean  GetsOwnership )
raises( CloseVetoException );

Description
is called when somewhere tries to の近くに listened 反対する

Is called before XCloseListener::notifyClosing(). Listener has the chance to break that by throwing a CloseVetoException. This exception must be passed to the 初めの 報知係 of XCloseable::の近くに() without any interaction.

The parameter GetsOwnership 規制する who has to try to の近くに the listened 反対する again, if this listener 同意しない with the request by throwing the exception. If it's 始める,決める to 誤った the 初めの 報知係 of XCloseable::の近くに() will be the owner in every 事例/患者. It's not 許すd to call の近くに() from this listener then. If it's 始める,決める to true this listener will be the new owner if he throw the exception, さもなければ not! If his still running 過程s will be finished he must call の近くに() on listened 反対する again then.

If this listener doesn't 同意しない with th の近くに request it depends from his 内部の 実施 if he deregister himself at the listened 反対する. But 普通は this must be done in XCloseListener::notifyClosing().

Parameter Source
述べるs the source of the event (must be the listened 反対する)
Parameter GetsOwnership
true pass the 所有権 to this listener, if he throw the 拒否権 exception (さもなければ this parameter must be ignored!)
誤った forbids to 得る,とらえる the 所有権 for the listened の近くに 反対する and call の近くに() on that any time.
Throws
CloseVetoException if listener 同意しない with the の近くに request on listened 反対する he must throw this exception
notifyClosing
無効の
notifyClosing( [in] ::com::sun::星/主役にする::lang::EventObject  Source );

Description
is called when the listened 反対する is の近くにd realy

Now the listened 反対する is の近くにd realy. Listener has to 受託する that; should deregister himself and 解放(する) all 言及/関連s to it. It's not 許すd nor possible to 同意しない with that by throwing any exception.

If the event ::com::sun::星/主役にする::lang::XEventListener::配置する/処分する/したい気持ちにさせるing() occurred before it must be 受託するd too. There 存在する no chance for a 不一致 any more.

Parameter Source
述べるs the source of the event (must be the listened 反対する)
最高の,を越す 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.