Class SWTSkinPropertiesClone
java.lang.Object
com.biglybt.ui.swt.skin.SWTSkinPropertiesClone
- All Implemented Interfaces:
SkinProperties, SWTSkinProperties, SWTSkinPropertiesParam
Simple extension of SWTSkinProperties that first checks the original
cloning id before checking the keys that it's cloning.
Cloned Skin Objects will be calling this class with a Config ID of "" plus whatever property name string they add on.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final booleanprivate static final Stringprivate final SWTSkinPropertiesprivate final Stringprivate final String[]private final String -
Constructor Summary
ConstructorsConstructorDescriptionSWTSkinPropertiesClone(SWTSkinProperties properties, String sCloneConfigID, String[] sCloneParams) Initialize -
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) private voidvoidbooleangetBooleanValue(String name, boolean def) org.eclipse.swt.graphics.ColorRetrieve a color property in as a SWT Colororg.eclipse.swt.graphics.Colorint[]getColorValue(String name) getColorWithAlpha(String name) intintgetIntValue(String name, int def) Retrieve a property's int valueString[]intgetPxValue(String name, int def) Get value in px, adjusted for dpigetReferenceID(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) boolean
-
Field Details
-
IGNORE_NAME
- See Also:
-
DEBUG
private static final boolean DEBUG- See Also:
-
properties
-
sCloneConfigID
-
sTemplateConfigID
-
sCloneParams
-
-
Constructor Details
-
SWTSkinPropertiesClone
public SWTSkinPropertiesClone(SWTSkinProperties properties, String sCloneConfigID, String[] sCloneParams) Initialize- Parameters:
properties- Where to read properties fromsCloneConfigID- The config key that told us to clone something
-
-
Method Details
-
checkName
- Parameters:
name-
-
getSkinID
- Specified by:
getSkinIDin interfaceSWTSkinProperties
-
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
-
getColorWithAlpha
- Specified by:
getColorWithAlphain interfaceSWTSkinProperties- Parameters:
name-- Returns:
-
getColor
Description copied from interface:SWTSkinPropertiesRetrieve a color property in as a SWT Color- Specified by:
getColorin interfaceSWTSkinProperties- Parameters:
name- Property Name- Returns:
- a Color, or null
-
getColorValue
- Specified by:
getColorValuein interfaceSkinProperties
-
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
-
getStringArray
- Specified by:
getStringArrayin interfaceSkinProperties
-
getStringValue
- Specified by:
getStringValuein 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
-
getStringArray
- Specified by:
getStringArrayin interfaceSkinProperties
-
getStringValue
- Specified by:
getStringValuein interfaceSkinProperties
-
getStringValue
- Specified by:
getStringValuein interfaceSkinProperties
-
getOriginalProperties
-
getParamValues
- Specified by:
getParamValuesin interfaceSWTSkinPropertiesParam- Returns:
-
getBooleanValue
- Specified by:
getBooleanValuein interfaceSkinProperties
-
clearCache
public void clearCache()- Specified by:
clearCachein interfaceSkinProperties
-
hasKey
- Specified by:
hasKeyin interfaceSkinProperties- Parameters:
name-- Returns:
-
getColor
- Specified by:
getColorin interfaceSWTSkinProperties
-
getEmHeightPX
public int getEmHeightPX()- Specified by:
getEmHeightPXin interfaceSkinProperties- Returns:
-
getPxValue
Description copied from interface:SWTSkinPropertiesGet value in px, adjusted for dpi- Specified by:
getPxValuein interfaceSWTSkinProperties
-
getReferenceID
- Specified by:
getReferenceIDin interfaceSkinProperties- Parameters:
name-- Returns:
-
addResourceBundle
- Specified by:
addResourceBundlein interfaceSkinProperties- Parameters:
subBundle-skinPath- TODO
-
addResourceBundle
- Specified by:
addResourceBundlein interfaceSkinProperties- Parameters:
subBundle-skinPath-loader-
-
getClassLoader
- Specified by:
getClassLoaderin interfaceSkinProperties- Returns:
-