org.pentaho.reporting.designer.core
Class Messages

java.lang.Object
  extended by org.pentaho.reporting.designer.core.Messages

public class Messages
extends Object

Todo: Document me!

Date: 20.04.2009 Time: 14:47:17

Author:
Thomas Morgner.

Method Summary
static Icon getIcon(String key)
           
static Icon getIcon(String key, boolean large)
           
static KeyStroke getKeyStroke(String key)
           
static KeyStroke getKeyStroke(String key, int mask)
           
static Integer getMnemonic(String key)
           
static KeyStroke getOptionalKeyStroke(String key)
           
static KeyStroke getOptionalKeyStroke(String key, int mask)
           
static Integer getOptionalMnemonic(String key)
           
static String getString(String key)
          Gets a string for the given key from this resource bundle or one of its parents.
static String getString(String key, Object param1)
          Formats the message stored in the resource bundle (using a MessageFormat).
static String getString(String key, Object param1, Object param2)
          Formats the message stored in the resource bundle (using a MessageFormat).
static String getString(String key, Object param1, Object param2, Object param3)
          Formats the message stored in the resource bundle (using a MessageFormat).
static String getString(String key, Object param1, Object param2, Object param3, Object param4)
          Formats the message stored in the resource bundle (using a MessageFormat).
static String getString(String key, Object param1, Object param2, Object param3, Object param4, Object param5)
          Formats the message stored in the resource bundle (using a MessageFormat).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public static String getString(String key)
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 - if key is null
MissingResourceException - if no object for the given key can be found

getString

public static String getString(String key,
                               Object param1)
Formats the message stored in the resource bundle (using a MessageFormat).

Parameters:
key - the resourcebundle key
param1 - the parameter for the message
Returns:
the formated string

getString

public static String getString(String key,
                               Object param1,
                               Object param2)
Formats the message stored in the resource bundle (using a MessageFormat).

Parameters:
key - the resourcebundle key
param1 - the parameter for the message
param2 - the parameter for the message
Returns:
the formated string

getString

public static String getString(String key,
                               Object param1,
                               Object param2,
                               Object param3)
Formats the message stored in the resource bundle (using a MessageFormat).

Parameters:
key - the resourcebundle key
param1 - the parameter for the message
param2 - the parameter for the message
param3 - the parameter for the message
Returns:
the formated string

getString

public static String getString(String key,
                               Object param1,
                               Object param2,
                               Object param3,
                               Object param4)
Formats the message stored in the resource bundle (using a MessageFormat).

Parameters:
key - the resourcebundle key
param1 - the parameter for the message
param2 - the parameter for the message
param3 - the parameter for the message
param4 - the parameter for the message
Returns:
the formated string

getString

public static String getString(String key,
                               Object param1,
                               Object param2,
                               Object param3,
                               Object param4,
                               Object param5)
Formats the message stored in the resource bundle (using a MessageFormat).

Parameters:
key - the resourcebundle key
param1 - the parameter for the message
param2 - the parameter for the message
param3 - the parameter for the message
param4 - the parameter for the message
param5 - the parameter for the message
Returns:
the formated string

getIcon

public static Icon getIcon(String key,
                           boolean large)

getIcon

public static Icon getIcon(String key)

getMnemonic

public static Integer getMnemonic(String key)

getOptionalMnemonic

public static Integer getOptionalMnemonic(String key)

getKeyStroke

public static KeyStroke getKeyStroke(String key)

getOptionalKeyStroke

public static KeyStroke getOptionalKeyStroke(String key)

getKeyStroke

public static KeyStroke getKeyStroke(String key,
                                     int mask)

getOptionalKeyStroke

public static KeyStroke getOptionalKeyStroke(String key,
                                             int mask)