|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.ui.swt.skin.SWTSkinPropertiesClone
public class SWTSkinPropertiesClone
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.
Constructor Summary | |
---|---|
SWTSkinPropertiesClone(SWTSkinProperties properties,
java.lang.String sCloneConfigID,
java.lang.String[] sCloneParams)
Initialize |
Method Summary | |
---|---|
void |
addProperty(java.lang.String name,
java.lang.String value)
Add a property key/value pair to the list |
void |
addResourceBundle(java.util.ResourceBundle subBundle,
java.lang.String skinPath)
|
void |
addResourceBundle(java.util.ResourceBundle subBundle,
java.lang.String skinPath,
java.lang.ClassLoader loader)
|
void |
clearCache()
|
boolean |
getBooleanValue(java.lang.String name,
boolean def)
|
java.lang.ClassLoader |
getClassLoader()
|
org.eclipse.swt.graphics.Color |
getColor(java.lang.String name)
Retrieve a color property in as a SWT Color |
org.eclipse.swt.graphics.Color |
getColor(java.lang.String name,
org.eclipse.swt.graphics.Color def)
|
int[] |
getColorValue(java.lang.String name)
|
SWTColorWithAlpha |
getColorWithAlpha(java.lang.String name)
|
int |
getEmHeightPX()
|
int |
getIntValue(java.lang.String name,
int def)
Retrieve a property's int value |
SWTSkinProperties |
getOriginalProperties()
|
java.lang.String[] |
getParamValues()
|
int |
getPxValue(java.lang.String name,
int def)
Get value in px, adjusted for dpi |
java.lang.String |
getReferenceID(java.lang.String name)
|
java.lang.String[] |
getStringArray(java.lang.String name)
|
java.lang.String[] |
getStringArray(java.lang.String name,
java.lang.String[] params)
|
java.lang.String |
getStringValue(java.lang.String name)
Retrieve a string value |
java.lang.String |
getStringValue(java.lang.String name,
java.lang.String def)
|
java.lang.String |
getStringValue(java.lang.String name,
java.lang.String[] params)
|
java.lang.String |
getStringValue(java.lang.String name,
java.lang.String[] params,
java.lang.String def)
|
boolean |
hasKey(java.lang.String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SWTSkinPropertiesClone(SWTSkinProperties properties, java.lang.String sCloneConfigID, java.lang.String[] sCloneParams)
properties
- Where to read properties fromsCloneConfigID
- The config key that told us to clone somethingMethod Detail |
---|
public void addProperty(java.lang.String name, java.lang.String value)
SkinProperties
addProperty
in interface SkinProperties
name
- Name of Propertyvalue
- Value of Propertypublic SWTColorWithAlpha getColorWithAlpha(java.lang.String name)
getColorWithAlpha
in interface SWTSkinProperties
public org.eclipse.swt.graphics.Color getColor(java.lang.String name)
SWTSkinProperties
getColor
in interface SWTSkinProperties
name
- Property Name
public int[] getColorValue(java.lang.String name)
getColorValue
in interface SkinProperties
public int getIntValue(java.lang.String name, int def)
SkinProperties
getIntValue
in interface SkinProperties
name
- Name of propertydef
- Default value if property not found
public java.lang.String[] getStringArray(java.lang.String name)
getStringArray
in interface SkinProperties
public java.lang.String getStringValue(java.lang.String name, java.lang.String def)
getStringValue
in interface SkinProperties
public java.lang.String getStringValue(java.lang.String name)
SkinProperties
getStringValue
in interface SkinProperties
name
- Name of property
public java.lang.String[] getStringArray(java.lang.String name, java.lang.String[] params)
getStringArray
in interface SkinProperties
public java.lang.String getStringValue(java.lang.String name, java.lang.String[] params, java.lang.String def)
getStringValue
in interface SkinProperties
public java.lang.String getStringValue(java.lang.String name, java.lang.String[] params)
getStringValue
in interface SkinProperties
public SWTSkinProperties getOriginalProperties()
public java.lang.String[] getParamValues()
getParamValues
in interface SWTSkinPropertiesParam
public boolean getBooleanValue(java.lang.String name, boolean def)
getBooleanValue
in interface SkinProperties
public void clearCache()
clearCache
in interface SkinProperties
public boolean hasKey(java.lang.String name)
hasKey
in interface SkinProperties
public org.eclipse.swt.graphics.Color getColor(java.lang.String name, org.eclipse.swt.graphics.Color def)
getColor
in interface SWTSkinProperties
public int getEmHeightPX()
getEmHeightPX
in interface SkinProperties
public int getPxValue(java.lang.String name, int def)
SWTSkinProperties
getPxValue
in interface SWTSkinProperties
public java.lang.String getReferenceID(java.lang.String name)
getReferenceID
in interface SkinProperties
public void addResourceBundle(java.util.ResourceBundle subBundle, java.lang.String skinPath)
addResourceBundle
in interface SkinProperties
skinPath
- TODOpublic void addResourceBundle(java.util.ResourceBundle subBundle, java.lang.String skinPath, java.lang.ClassLoader loader)
addResourceBundle
in interface SkinProperties
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface SkinProperties
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |