public class StaticResources extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static boolean |
_isDebugging
Set to true and recompile for debugging such as error messages.
|
static java.lang.String |
RESOURCEBUNDLE_DIR |
Modifier | Constructor and Description |
---|---|
protected |
StaticResources() |
Modifier and Type | Method and Description |
---|---|
protected static int |
_getInt(java.lang.String propertyKey,
ConfigurationProperty property)
Get the integer (int) property denoted by the propertyKey.
|
protected static java.lang.String |
_getString(java.lang.String propertyKey,
ConfigurationProperty property)
Get the String property denoted by the propertyKey.
|
static boolean |
getBoolean(java.lang.String key,
boolean defaultVal)
Search the uiDisplayText resourcebundle for the property specified by the
key parameter.
|
static java.lang.String |
getDisplayString(java.lang.String key,
java.lang.String defaultString)
Search the uiDisplayText resourcebundle for the property specified by the
key parameter.
|
static ConfigurationProperty |
getDisplayTextProperty()
Search for the ResourceBundle containing the UI Display Text.
|
static java.lang.String |
getSettingsString(java.lang.String key,
java.lang.String defaultString)
Search the uiSettings resourcebundle for the property specified by the
key parameter.
|
static int |
getSize(java.lang.String sizeKey,
int defaultSize)
Search the uiSettings resourcebundle for the size property specified by
the sizeKey.
|
static ConfigurationProperty |
getUISettingsProperty()
Search for the ResourceBundle containing the ui settings.
|
static ConfigurationProperty |
getUiSVGIconMappingsByClass()
get the configuration property for the svg icon class mappings
|
static ConfigurationProperty |
getUiSVGIconMappingsByLSID()
get the configuraiton property for the svg icon lsid mappings
|
static java.lang.String |
getValueFromName(ConfigurationProperty prop,
java.lang.String name)
get the value of a property based on the name
|
public static final java.lang.String RESOURCEBUNDLE_DIR
protected static final boolean _isDebugging
protected StaticResources()
public static boolean getBoolean(java.lang.String key, boolean defaultVal)
key
- the properties key identifying the value to be founddefaultVal
- - the default boolean value to be returned if the requested
property cannot be found or readpublic static java.lang.String getDisplayString(java.lang.String key, java.lang.String defaultString)
key
- the properties key for the String to be founddefaultString
- - the default String to be returned if the property cannot be
found or readpublic static ConfigurationProperty getDisplayTextProperty() throws java.io.IOException
#UI_DISPLAY_TEXT_BUNDLE
java.io.IOException
- If the bundle that corresponds with
#UI_DISPLAY_TEXT_BUNDLE
cannot be loaded.public static java.lang.String getSettingsString(java.lang.String key, java.lang.String defaultString)
key
- the properties key for the String to be founddefaultString
- - the default String to be returned if the property cannot be
found or readpublic static int getSize(java.lang.String sizeKey, int defaultSize)
sizeKey
- the properties key String for the size settingdefaultSize
- - the default size to be used if the property cannot be foundpublic static ConfigurationProperty getUISettingsProperty() throws java.io.IOException
#UI_SETTINGS_BUNDLE
java.io.IOException
- If the bundle that corresponds with
#UI_SETTINGS_BUNDLE
cannot be loaded.public static ConfigurationProperty getUiSVGIconMappingsByClass()
public static ConfigurationProperty getUiSVGIconMappingsByLSID()
public static java.lang.String getValueFromName(ConfigurationProperty prop, java.lang.String name)
protected static java.lang.String _getString(java.lang.String propertyKey, ConfigurationProperty property) throws java.lang.Exception
propertyKey
- the properties key String identifying the propertyproperty
- the ConfigurationProperty in which to searchjava.lang.Exception
- if key is not found or cannot be readprotected static int _getInt(java.lang.String propertyKey, ConfigurationProperty property) throws java.lang.Exception
propertyKey
- the properties key String identifying the propertyproperty
- the ConfigurationProperty in which to searchjava.lang.Exception
- if key is not found, cannot be read, or cannot be parsed as
an integer