明示するs a persistence interface which supports to
負担/蓄える/店 accelerator configuration data to a 貯蔵
and to retrieve (警察などへの)密告,告訴(状) about the 現在の 明言する/公表する.
connects this configuration to a new 貯蔵
which must be used その上の on その後の calls of
com::sun::星/主役にする::util::::XConfigurationPersistence.負担()
and com::sun::星/主役にする::util::::XConfigurationPersistence.蓄える/店().
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 執拗な.
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.
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 始める,決める.
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.
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 始める,決める.