Class Messages
java.lang.Object
org.pentaho.reporting.ui.datasources.table.Messages
-
Method Summary
Modifier and TypeMethodDescriptionstatic Icon
static Icon
static KeyStroke
getKeyStroke
(String key) static KeyStroke
getKeyStroke
(String key, int mask) static Integer
getMnemonic
(String key) static KeyStroke
static KeyStroke
getOptionalKeyStroke
(String key, int mask) static Integer
static String
Gets a string for the given key from this resource bundle or one of its parents.static String
Formats the message stored in the resource bundle (using a MessageFormat).
-
Method Details
-
getString
Gets a string for the given key from this resource bundle or one of its parents. If the key is a link, the link is resolved and the referenced string is returned instead. If the given key cannot be resolved, no exception will be thrown and a generic placeholder is used instead.- Parameters:
key
- the key for the desired string- Returns:
- the string for the given key
- Throws:
NullPointerException
- ifkey
isnull
MissingResourceException
- if no object for the given key can be found
-
getString
Formats the message stored in the resource bundle (using a MessageFormat).- Parameters:
key
- the resourcebundle keyparam1
- the parameter for the message- Returns:
- the formated string
-
getIcon
-
getIcon
-
getMnemonic
-
getOptionalMnemonic
-
getKeyStroke
-
getOptionalKeyStroke
-
getKeyStroke
-
getOptionalKeyStroke
-