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

翻訳前ページへ


Interface XStringResourceManager
Language

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

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: 資源 ::

interface XStringResourceManager
Base Interfaces
XStringResourceManagerXStringResourceResolver
   ┗ ::com::sun::星/主役にする::util::XModifyBroadcaster

XStringResourceResolver
(言及/関連d interface's 要約:)
Interface to 接近 strings in a 資源. The interface is derived from ::com::sun::星/主役にする::util::XModifyBroadcaster All 登録(する)d ::com::sun::星/主役にする::util::XModifyListener interfaces will be 通知するd if either the 現在の 地元の changes or if a string is 追加するd, changed or 除去するd. This usually will only happen if the 器具/実施するing 反対する also supports the interface XStringResourceManager and is used in the design 方式 of a Dialog or String (米)棚上げする/(英)提議する editor. But also changing the 地元の at runtime can be supported in this way.
Description
Interface to manage a 資源 string (米)棚上げする/(英)提議する 含む/封じ込めるing a 始める,決める of strings for different 地元のs. The interface is derived from XStringResourceResolver that 許すs to 接近 the string (米)棚上げする/(英)提議する but not to 修正する it. This interface also 許すs to 修正する the string (米)棚上げする/(英)提議する. It's designed to be used in the 状況 of creating a string (米)棚上げする/(英)提議する, e.g. from a string (米)棚上げする/(英)提議する editor or from a Dialog Editor designing localized dialogs.

Methods' 要約
isReadOnly Returns the 資源's read only 明言する/公表する  
setCurrentLocale 始める,決めるs the 地元の to be used  
setDefaultLocale 始める,決めるs the default 地元の to be used  
setString Associates a String to a 資源 ID for the 現在の 地元の. If an 入ること/参加(者) for the 資源 ID already 存在するs, the string associated with it will be overwritten, さもなければ a new 入ること/参加(者) will be created.  
setStringForLocale Associates a String to a 資源 ID for a 明確な/細部 地元の. If an 入ること/参加(者) for the 資源 ID already 存在するs, the string associated with it will be overwritten, さもなければ a new 入ること/参加(者) will be created. It's not recommended to use this method to get the best 業績/成果 as the 実施 may be optimized for the use of the 現在の 地元の.  
removeId 除去するs a 資源 ID 含むing the corresponding string for the 現在の 地元の.  
removeIdForLocale 除去するs a 資源 ID 含むing the corresponding string for s 明確な/細部 地元の.  
newLocale Creates a new 地元の.  
removeLocale 除去するs a 地元の 完全に 含むing the corresponding strings for each 地元の.  
getUniqueNumericId 供給するs a numeric id that is unique within all 資源 IDs used in the string (米)棚上げする/(英)提議する. This method takes into account all 資源 IDs starting with a decimal number and only 評価するs the ID until the first 非,不,無 digit character is reached. This 許すs to 延長する unique IDs with individual identifiers without breaking the 機械装置 of this method. Examples: ID "42" -> numeric id 42 ID "0foo" -> numeric id 0 ID "111.MyId.Something.Else" -> numeric id 111 ID "No Digits" -> not considered for numeric id The id returned will be 0 for an empty string (米)棚上げする/(英)提議する and it will be reset to 0 if all 地元のs are 除去するd. In all other 事例/患者s this method returns the 最大限 numeric id used so far at the beginning of a 資源 ID incremented by 1. When calling this method more than once always the same number will be returned until this number is really used at the beginning of a new 資源 ID passed to setString or setStringForLocale. As the numeric id is 保証(人)d to be unique for the 完全にする string (米)棚上げする/(英)提議する all 地元のs are taken into account. So using this methods will 軍隊 the 実施 to 負担 all 地元の data that may not have been 負担d so far.  
Methods' 詳細(に述べる)s
isReadOnly
boolean
isReadOnly();

Description
Returns the 資源's read only 明言する/公表する
Returns
true if the 資源 is read only, さもなければ 誤った
setCurrentLocale
無効の
setCurrentLocale( [in] ::com::sun::星/主役にする::lang::地元の  地元の,
[in] boolean  FindClosestMatch )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
始める,決めるs the 地元の to be used
Parameter aLocale
明示するs the 現在の 地元の to be used.
Parameter FindClosestMatch

If true: If the exact 地元の that should be 始める,決める is not 利用できる the method tries to find the closest match. E.g. if en_US is re- quired but not 利用できる, en would be the next choice. Finally the default 地元の will be used true.

If 誤った: If the exact 地元の that should be 始める,決める is not 利用できる a ::com::sun::星/主役にする::lang::IllegalArgumentException is thrown.

If 誤った: If the exact 地元の that should be 始める,決める is not 利用できる a ::com::sun::星/主役にする::lang::IllegalArgumentException is thrown.

setDefaultLocale
無効の
setDefaultLocale( [in] ::com::sun::星/主役にする::lang::地元の  地元の )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException,
::com::sun::星/主役にする::lang::NoSupportException );

Description
始める,決めるs the default 地元の to be used
Parameter aLocale
明示するs the default 地元の to be used. If this 地元の is not 利用できる a ::com::sun::星/主役にする::lang::IllegalArgumentException is thrown.
Throws
::com::sun::星/主役にする::lang::NoSupportException if the 資源 is read only, see isReadOnly
setString
無効の
setString( [in] string  ResourceID,
[in] string  Str )
raises( ::com::sun::星/主役にする::lang::NoSupportException );

Description
Associates a String to a 資源 ID for the 現在の 地元の. If an 入ること/参加(者) for the 資源 ID already 存在するs, the string associated with it will be overwritten, さもなければ a new 入ること/参加(者) will be created.
Parameter ResourceID
ID to 演説(する)/住所 the string inside the 資源 for the 現在の 地元の.
Parameter Str
String to be associated with the 資源 ID.
Throws
::com::sun::星/主役にする::lang::NoSupportException if the 資源 is read only, see isReadOnly
setStringForLocale
無効の
setStringForLocale( [in] string  ResourceID,
[in] string  Str,
[in] ::com::sun::星/主役にする::lang::地元の  地元の )
raises( ::com::sun::星/主役にする::lang::NoSupportException );

Description
Associates a String to a 資源 ID for a 明確な/細部 地元の. If an 入ること/参加(者) for the 資源 ID already 存在するs, the string associated with it will be overwritten, さもなければ a new 入ること/参加(者) will be created. It's not recommended to use this method to get the best 業績/成果 as the 実施 may be optimized for the use of the 現在の 地元の.
Parameter ResourceID
ID to 演説(する)/住所 the string inside the 資源.
Parameter Str
String to be associated with the 資源 ID.
Parameter 地元の
The 地元の the string should be 始める,決める for. The 地元の has to match 正確に/まさに with one of the 地元のs 供給するd by getLocales. A closest match search is not supported.
Throws
::com::sun::星/主役にする::lang::NoSupportException if the 資源 is read only, see isReadOnly
removeId
無効の
removeId( [in] string  ResourceID )
raises( MissingResourceException,
::com::sun::星/主役にする::lang::NoSupportException );

Description
除去するs a 資源 ID 含むing the corresponding string for the 現在の 地元の.
Parameter ResourceID
The 資源 ID to be 除去するd for the 現在の 地元の.
Throws
MissingResourceException if the 資源 ID is not valid.
Throws
::com::sun::星/主役にする::lang::NoSupportException if the 資源 is read only, see isReadOnly
removeIdForLocale
無効の
removeIdForLocale( [in] string  ResourceID,
[in] ::com::sun::星/主役にする::lang::地元の  地元の )
raises( MissingResourceException,
::com::sun::星/主役にする::lang::NoSupportException );

Description
除去するs a 資源 ID 含むing the corresponding string for s 明確な/細部 地元の.
Parameter ResourceID
The 資源 ID to be 除去するd.
Parameter 地元の
The 地元の the 資源 ID should be 除去するd for. The 地元の has to match 正確に/まさに with one of the 地元のs 供給するd by getLocales. A closest match search is not supported.
Throws
MissingResourceException if the 資源 ID is not valid.
Throws
::com::sun::星/主役にする::lang::NoSupportException if the 資源 is read only, see isReadOnly
newLocale
無効の
newLocale( [in] ::com::sun::星/主役にする::lang::地元の  地元の )
raises( ::com::sun::星/主役にする::コンテナ::ElementExistException,
::com::sun::星/主役にする::lang::IllegalArgumentException,
::com::sun::星/主役にする::lang::NoSupportException );

Description
Creates a new 地元の.

For each 存在するing ResourceID an empty string will be created. The first 地元の created will automatically be the first default 地元の. さもなければ strings for all already created IDs will be copied from the default 地元の.

Throws
::com::sun::星/主役にする::コンテナ::ElementExistException if the 地元の already has been created.
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if the 地元の is not valid.
Throws
::com::sun::星/主役にする::lang::NoSupportException if the 資源 is read only, see isReadOnly
removeLocale
無効の
removeLocale( [in] ::com::sun::星/主役にする::lang::地元の  地元の )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException,
::com::sun::星/主役にする::lang::NoSupportException );

Description
除去するs a 地元の 完全に 含むing the corresponding strings for each 地元の.
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if the 地元の to be 除去するd is not supported.
Throws
::com::sun::星/主役にする::lang::NoSupportException if the 資源 is read only, see isReadOnly
getUniqueNumericId
long
getUniqueNumericId()
raises( ::com::sun::星/主役にする::lang::NoSupportException );

Description
供給するs a numeric id that is unique within all 資源 IDs used in the string (米)棚上げする/(英)提議する. This method takes into account all 資源 IDs starting with a decimal number and only 評価するs the ID until the first 非,不,無 digit character is reached. This 許すs to 延長する unique IDs with individual identifiers without breaking the 機械装置 of this method. Examples: ID "42" -> numeric id 42 ID "0foo" -> numeric id 0 ID "111.MyId.Something.Else" -> numeric id 111 ID "No Digits" -> not considered for numeric id The id returned will be 0 for an empty string (米)棚上げする/(英)提議する and it will be reset to 0 if all 地元のs are 除去するd. In all other 事例/患者s this method returns the 最大限 numeric id used so far at the beginning of a 資源 ID incremented by 1. When calling this method more than once always the same number will be returned until this number is really used at the beginning of a new 資源 ID passed to setString or setStringForLocale. As the numeric id is 保証(人)d to be unique for the 完全にする string (米)棚上げする/(英)提議する all 地元のs are taken into account. So using this methods will 軍隊 the 実施 to 負担 all 地元の data that may not have been 負担d so far.
Throws
::com::sun::星/主役にする::lang::NoSupportException if the next 利用できる id 越えるs the 範囲 of type long. So it's not recommended to use own 資源 IDs starting with a decimal number 近づく to the 最大限 long value if this methods should be used.
最高の,を越す 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.