@Concealed public class LocaleMessage extends BaseLocaleMessage
Constructor and Description |
---|
LocaleMessage(String bundle,
String key)
Constructor
|
LocaleMessage(String bundle,
String key,
Object[] parameters)
Constructor
|
Modifier and Type | Method and Description |
---|---|
char |
getMnemonicCharacter()
Returns the mnemonic character.
|
int |
getMnemonicCharacterIndex()
Deprecated.
Caution, this can cause exceptions if used in conjunction with getWithoutMnemonic() and Japanese!
|
String |
getText()
Returns the text associated with this message, stripping the 'non-printing' Mnemonic character (the '&'), but
leaving the rest of the text.
|
String |
getText(Locale locale)
Returns the text associated with this message, stripping the 'non-printing' Mnemonic character (the '&'), but
leaving the rest of the text.
|
String |
getWithoutMnemonic()
SPECIAL USE ONLY, Use getText() instead.
|
String |
toString() |
getBundle, getKey, getParameters, setBundle, setKey, setParameters
public LocaleMessage(String bundle, String key, Object[] parameters)
key
- the message keyparameters
- the parameterspublic String toString()
toString
in class BaseLocaleMessage
Object.toString()
public String getText()
public String getText(Locale locale)
locale
- the locale to use rather that the default localepublic String getWithoutMnemonic()
public char getMnemonicCharacter()
public int getMnemonicCharacterIndex()