Class SkinPropertiesImpl
java.lang.Object
com.biglybt.ui.skin.SkinPropertiesImpl
- All Implemented Interfaces:
SkinProperties
- Direct Known Subclasses:
SWTSkinPropertiesImpl
Implementation of SkinProperties using a IntegratedResourceBundle loaded from
hard coded paths.
(plugin) skin property file
defaults property file
the client's MessageText class
Additionally, checks each for platform specific keys.
Three level lookup of keys:
Additionally, checks each for platform specific keys.
Values containing "{*}" are replaced with a lookup of *
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassLoaderprivate static final booleanprivate intprivate static final Stringprivate static final Patternprivate static final Patternstatic final Stringprivate final IntegratedResourceBundleprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionSkinPropertiesImpl(ClassLoader classLoader, String skinPath, String mainSkinFile) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String name, String value) Add a property key/value pair to the listvoidaddResourceBundle(ResourceBundle subBundle, String skinPath) voidaddResourceBundle(ResourceBundle subBundle, String skinPath, ClassLoader loader) voidbooleangetBooleanValue(String name, boolean def) int[]getColorValue(String name) intintgetIntValue(String name, int def) Retrieve a property's int valuegetReferenceID(String name) String[]getStringArray(String name) String[]getStringArray(String name, String[] params) getStringValue(String name) Retrieve a string valuegetStringValue(String name, String def) getStringValue(String name, String[] params) getStringValue(String name, String[] params, String def) protected Stringprivate Stringbooleanprotected voidsetEmHeightPX(int fontHeightInPX)
-
Field Details
-
DARK_MODE
private static final boolean DARK_MODE -
PATH_SKIN_DEFS
- See Also:
-
FILE_SKIN_DEFS
- See Also:
-
PAT_PARAM_ALPHA
-
PAT_PARAM_NUM
-
skin_id
-
rb
-
classLoader
-
emHeightPX
private int emHeightPX
-
-
Constructor Details
-
SkinPropertiesImpl
public SkinPropertiesImpl() -
SkinPropertiesImpl
-
-
Method Details
-
getSkinID
-
addResourceBundle
- Specified by:
addResourceBundlein interfaceSkinProperties- Parameters:
subBundle-skinPath- TODO
-
addResourceBundle
- Specified by:
addResourceBundlein interfaceSkinProperties- Parameters:
subBundle-skinPath-loader-
-
addProperty
Description copied from interface:SkinPropertiesAdd a property key/value pair to the list- Specified by:
addPropertyin interfaceSkinProperties- Parameters:
name- Name of Propertyvalue- Value of Property
-
hasKey
- Specified by:
hasKeyin interfaceSkinProperties- Parameters:
name-- Returns:
-
getReferenceID
- Specified by:
getReferenceIDin interfaceSkinProperties- Parameters:
name-- Returns:
-
getValue
-
getValue
-
getIntValue
Description copied from interface:SkinPropertiesRetrieve a property's int value- Specified by:
getIntValuein interfaceSkinProperties- Parameters:
name- Name of propertydef- Default value if property not found- Returns:
- value
-
getColorValue
- Specified by:
getColorValuein interfaceSkinProperties
-
getStringValue
Description copied from interface:SkinPropertiesRetrieve a string value- Specified by:
getStringValuein interfaceSkinProperties- Parameters:
name- Name of property- Returns:
- the String value, or null if not found
-
getStringValue
- Specified by:
getStringValuein interfaceSkinProperties
-
getStringArray
- Specified by:
getStringArrayin interfaceSkinProperties
-
getStringArray
- Specified by:
getStringArrayin interfaceSkinProperties
-
getStringValue
- Specified by:
getStringValuein interfaceSkinProperties
-
getStringValue
- Specified by:
getStringValuein interfaceSkinProperties
-
getBooleanValue
- Specified by:
getBooleanValuein interfaceSkinProperties
-
clearCache
public void clearCache()- Specified by:
clearCachein interfaceSkinProperties
-
getClassLoader
- Specified by:
getClassLoaderin interfaceSkinProperties- Returns:
-
setEmHeightPX
protected void setEmHeightPX(int fontHeightInPX) -
getEmHeightPX
public int getEmHeightPX()- Specified by:
getEmHeightPXin interfaceSkinProperties- Returns:
-