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

翻訳前ページへ


Interface XAcceleratorConfiguration
Language

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

API

SDK

Tips ‘n’ Tricks

Miscellaneous


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

unpublished interface XAcceleratorConfiguration
Base Interfaces
XAcceleratorConfigurationXUIConfigurationPersistenceXUIConfigurationStorageXUIConfiguration

XUIConfigurationPersistence
Description
明示するs a persistence interface which supports to 負担/蓄える/店 accelerator configuration data to a 貯蔵 and to retrieve (警察などへの)密告,告訴(状) about the 現在の 明言する/公表する.
XUIConfigurationStorage
Description
connects this configuration to a new 貯蔵 which must be used その上の on その後の calls of com::sun::星/主役にする::util::::XConfigurationPersistence.負担() and com::sun::星/主役にする::util::::XConfigurationPersistence.蓄える/店().
XUIConfiguration
Description
supports to 通知する other 実施s about changes of this accelerator configuration.
Usage 制限s
not published
Description
供給するs read/令状 接近 to an accelerator configuration 始める,決める.

Such configuration 始める,決める base on:

  • 重要な events structure
  • and 命令(する)s, which are 代表するd as URLs; 述べるing a 機能(する)/行事, which and can be 遂行する/発効させるd using the 派遣(する) API.

公式文書,認める その上の:
All changes you made on this configration 接近 修正する the the configuration 始める,決める inside memory only. You have to use the ::com::sun::星/主役にする::util::XFlushable interface (which must be 利用できる at the same 実施 反対する too), to make it 執拗な.

Since
OOo 2.0
See also
AcceleratorConfiguration, dom::sun::星/主役にする::util::XFlushable

Methods' 要約
getAllKeyEvents return the 名簿(に載せる)/表(にあげる) of all 重要な events, which are 利用できる at this configration 始める,決める.  
getCommandByKeyEvent return the 登録(する)d 命令(する) for the 明示するd 重要な event.  
setKeyEvent 修正する or create a 重要な - 命令(する) - binding.  
removeKeyEvent 除去する a 重要な-命令(する)-binding from this configuration 始める,決める.  
getKeyEventsByCommand optimized 接近 to the relation "命令(する)-重要な" instead of "重要な-命令(する)" which is 供給するd normaly by this interface.  
getPreferredKeyEventsForCommandList optimized 機能(する)/行事 to 地図/計画する a 名簿(に載せる)/表(にあげる) of 命令(する)s to a corresponding 名簿(に載せる)/表(にあげる) of 重要な events.  
removeCommandFromAllKeyEvents search for an 重要な-命令(する)-binding inside this configuration 始める,決める, where the 明示するd 命令(する) is used.  
Methods' 詳細(に述べる)s
getAllKeyEvents
sequence< ::com::sun::星/主役にする::awt::KeyEvent >
getAllKeyEvents();

Description
return the 名簿(に載せる)/表(にあげる) of all 重要な events, which are 利用できる at this configration 始める,決める.

The 重要な events are the "最初の/主要な 重要なs" of this configuration 始める,決めるs. Means: 命令(する)s are 登録(する)d for 重要な events.

Such 重要な event can be mapped to its bound 命令(する), using the method getCommandForKeyEvent().

Returns
A 名簿(に載せる)/表(にあげる) of 重要な events.
See also
getCommandForKeyEvent().
getCommandByKeyEvent
string
getCommandByKeyEvent( [in] ::com::sun::星/主役にする::awt::KeyEvent  aKeyEvent )
raises( ::com::sun::星/主役にする::コンテナ::NoSuchElementException );

Description
return the 登録(する)d 命令(する) for the 明示するd 重要な event.

This 機能(する)/行事 can be used to:

  • by a generic service, which can 遂行する/発効させる 命令(する)s if a keyboard event occures.
  • or to iterate over the whole コンテナ and change some accelerator bindings.

Parameter aKeyEvent
the 重要な event, where the 登録(する)d 命令(する) is searched for.
Returns
The 登録(する)d 命令(する) for the 明示するd 重要な event.
Throws
::com::sun::星/主役にする::コンテナ::NoSuchElementException if the 重要な event is an 無効の one or does not 存在するs inside this configuration 始める,決める.
setKeyEvent
無効の
setKeyEvent( [in] ::com::sun::星/主役にする::awt::KeyEvent  aKeyEvent,
[in] string  sCommand )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
修正する or create a 重要な - 命令(する) - binding.

If the 明示するd 重要な event does not already 存在するs inside this configuration 接近, it will be created and the 命令(する) will be 登録(する)d for it.

If the 明示するd 重要な event already 存在するs, its 命令(する) will be overwritten with the new 命令(する). There is no 警告 nor any error about that! The outside code has to use the method getCommandForKeyEvent() to check for possible 衝突/不一致s.

公式文書,認める: This method cant be used to 除去する (独立の)存在s from the configuration 始める,決める. Empty parameters will result into an exception! Use the method removeKeyEvent() instead.

Parameter aKeyEvent
明示する the 重要な event, which must be updated or new created.
Parameter sCommand
the new 命令(する) for the 明示するd 重要な event.
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if the 重要な event isnt a valid one. 命令(する)s can be checked only, if they are empty. Because every URL schema can be used by 命令(する)s in general, so its not possible to 実証する it.
See also
removeKeyEvent()
removeKeyEvent
無効の
removeKeyEvent( [in] ::com::sun::星/主役にする::awt::KeyEvent  aKeyEvent )
raises( ::com::sun::星/主役にする::コンテナ::NoSuchElementException );

Description
除去する a 重要な-命令(する)-binding from this configuration 始める,決める.
Parameter aKeyEvent
the 重要な event, which should be 除去するd.
Throws
::com::sun::星/主役にする::コンテナ::NoSuchElementException if the 重要な event does not 存在するs inside this configuration 始める,決める.
getKeyEventsByCommand
sequence< ::com::sun::星/主役にする::awt::KeyEvent >
getKeyEventsByCommand( [in] string  sCommand )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException,
::com::sun::星/主役にする::コンテナ::NoSuchElementException );

Description
optimized 接近 to the relation "命令(する)-重要な" instead of "重要な-命令(する)" which is 供給するd normaly by this interface.

It can be used to 器具/実施する 衝突/不一致 扱うing, if more then one 重要な event match to the same 命令(する). The returned 名簿(に載せる)/表(にあげる) 含む/封じ込めるs all possible 重要な events - and the outside code can select an possible one. Of course - mostly this 名簿(に載せる)/表(にあげる) will 含む/封じ込める only one 重要な event ...

Parameter sCommand
the 命令(する), where 重要な bindings are searched for.
Returns
A 名簿(に載せる)/表(にあげる) of ::com::sun::星/主役にする::awt::KeyEvent structures, where the pecified 命令(する) is 登録(する)d for.
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if the 明示するd 命令(する) is empty. It cant be checked, if a 命令(する) is valid - because every URL schema can be used here.
Throws
::com::sun::星/主役にする::コンテナ::NoSuchElementException if the 明示するd 命令(する) isnt empty but does not occure inside this configuration 始める,決める.
getPreferredKeyEventsForCommandList
sequence< any >
getPreferredKeyEventsForCommandList( [in] sequence< string >  lCommandList )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
optimized 機能(する)/行事 to 地図/計画する a 名簿(に載せる)/表(にあげる) of 命令(する)s to a corresponding 名簿(に載せる)/表(にあげる) of 重要な events.

It 供給するs a 急速な/放蕩な mapping, which is e.g. needed by a menu or toolbar 実施. E.g. a sub menu is 述べるd by a 名簿(に載せる)/表(にあげる) of 命令(する)s - and the 実施 of the menu must show the corresponding shortcuts. Iteration over all items of this configuration 始める,決める can be very expensive.

Instead to the method getKeyEventsForCommand() the returned 名簿(に載せる)/表(にあげる) 含む/封じ込めるs only one(!) 重要な event bound to one(!) requested 命令(する). If more then one 重要な event is bound to a 命令(する) - a 選択 is done inside this method. This 内部の 選択 cant be 影響(力)d from outside.

@attention Because its not defined, that any 命令(する) (e.g. configured inside a menu) must have an accelerator - we cant 拒絶する the call if at least one 命令(する) does not occure inside this configuration 始める,決める ... We 扱う it more gracefully - and return an empty item instead of throwing and exception.
Parameter lCommandList
a 名簿(に載せる)/表(にあげる) of 命令(する)s
Returns
A (非,不,無 packed!) 名簿(に載せる)/表(にあげる) of 重要な events, where every item match by 索引 直接/まっすぐに to a 命令(する) of the 明示するd CommandList. If a 命令(する) does not 存在するs inside this configuration 始める,決める, the corresponding any value will be empty.
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if at least one of the 明示するd 命令(する)s is empty. It cant be checked, if a 命令(する) is valid - because every URL schema can be used here.
removeCommandFromAllKeyEvents
無効の
removeCommandFromAllKeyEvents( [in] string  sCommand )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException,
::com::sun::星/主役にする::コンテナ::NoSuchElementException );

Description
search for an 重要な-命令(する)-binding inside this configuration 始める,決める, where the 明示するd 命令(する) is used.

If such binding could be 位置を示すd, the 命令(する) will be 除去するd from it. If as result of that the 重要な binding will be empty, if will be 除去するd too.

This is an optimized method, which can 成し遂げる 除去するing of 命令(する)s from this configuration 始める,決める. Because normaly 命令(する)s are "foreign 重要なs" and 重要な identifier the "最初の/主要な 重要なs" - it needs some work to 除去する all 命令(する)s outside this コンテナ ...

Parameter sCommand
the 命令(する), which should be 除去するd from any 重要な binding.
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if the 明示するd 命令(する) is empty.
Throws
::com::sun::星/主役にする::コンテナ::NoSuchElementException if the 明示するd 命令(する) isnt used inside this configuration 始める,決める.
最高の,を越す 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.