Package oracle.stellent.ridc.i18n.locale
Class LocaleMessage
java.lang.Object
oracle.stellent.ridc.i18n.locale.BaseLocaleMessage
oracle.stellent.ridc.i18n.locale.LocaleMessage
-
Constructor Summary
ConstructorsConstructorDescriptionLocaleMessage(String bundle, String key) ConstructorLocaleMessage(String bundle, String key, Object[] parameters) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncharReturns the mnemonic character.intDeprecated.Caution, this can cause exceptions if used in conjunction with getWithoutMnemonic() and Japanese!getText()Returns the text associated with this message, stripping the 'non-printing' Mnemonic character (the '&'), but leaving the rest of the text.Returns the text associated with this message, stripping the 'non-printing' Mnemonic character (the '&'), but leaving the rest of the text.SPECIAL USE ONLY, Use getText() instead.toString()Methods inherited from class oracle.stellent.ridc.i18n.locale.BaseLocaleMessage
getBundle, getKey, getParameters, setBundle, setKey, setParameters
-
Constructor Details
-
LocaleMessage
Constructor- Parameters:
key- the message keyparameters- the parameters
-
LocaleMessage
Constructor- Parameters:
key- the message key
-
-
Method Details
-
toString
- Overrides:
toStringin classBaseLocaleMessage- See Also:
-
getText
Returns the text associated with this message, stripping the 'non-printing' Mnemonic character (the '&'), but leaving the rest of the text. This is the primary method of getting the text for a menu, label, button, etc. This will leave the (V) on the end of Japanese text indicating that the letter V is the mnemonic.- Returns:
- The text of the message as a String, with the non-printing mnemonic stripped, but otherwise the message intact.
-
getText
Returns the text associated with this message, stripping the 'non-printing' Mnemonic character (the '&'), but leaving the rest of the text. This is the primary method of getting the text for a menu, label, button, etc. This will leave the (V) on the end of Japanese text indicating that the letter V is the mnemonic.- Parameters:
locale- the locale to use rather that the default locale- Returns:
- The text of the message as a String, with the non-printing mnemonic stripped, but otherwise the message intact.
-
getWithoutMnemonic
SPECIAL USE ONLY, Use getText() instead. Returns the text of associated with this message without the mnemonic character. This will strip the '&' but will also strip the (V) mnemonic hint in Japanese strings. This is only useful if you are printing out to a log or some other place where you can't use the mnemonics to access the button because it is pure text.- Returns:
- string containing message without mnemonic character.
-
getMnemonicCharacter
public char getMnemonicCharacter()Returns the mnemonic character.- Returns:
- the mnemonic character.
-
getMnemonicCharacterIndex
public int getMnemonicCharacterIndex()Deprecated.Caution, this can cause exceptions if used in conjunction with getWithoutMnemonic() and Japanese!Returns the index of the mnemonic character.- Returns:
- the mnemonic character's index.
-