| java.lang.Object gruntspud.ResourceUtil
ResourceUtil | public class ResourceUtil (Code) | | author: magicthize author: Set of utilities useful for resource bundles |
getResource | public static String getResource(ResourceBundle bundle, String key)(Code) | | Return a string without throwing an exception, just return null
if property is missing
Parameters: bundle - Parameters: key - value |
getResourceBoolean | public static boolean getResourceBoolean(ResourceBundle bundle, String key)(Code) | | Get a boolean from a resource bundle. The value must be either
true, yes or on (case insensitive) to return true
alphabetic character, or -1 will be returned
Parameters: bundle - the resource bundle Parameters: key - the key in the bundle boolean value |
getResourceKeyStroke | public static KeyStroke getResourceKeyStroke(ResourceBundle bundle, String key)(Code) | | Get a KeyStroke object given a string. The string is made
up of the virtual key name (VK_DELETE, VK_F1, VK_A etc) and a list of
modifiers. VK_F1+SHIFT+CTRL+ALT would mean F1+Shift+Ctrl+Alt
would have to be pressed to achieve this KeyStroke.
Parameters: bundle - the resource bunle Parameters: key - the key name the keystroke object, or null if invalid |
getResourceMnemonic | public static char getResourceMnemonic(ResourceBundle bundle, String key)(Code) | | Get a mnemonic from a resource bundle. The value must be a single
alphabetic character, or -1 will be returned
Parameters: bundle - the resource bundle Parameters: key - the key in the bundle the mnemonic code, or -1 if no resource is found |
|
|