|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.ui.skin.SkinPropertiesImpl
public class SkinPropertiesImpl
Implementation of SkinProperties using a IntegratedResourceBundle loaded from hard coded paths.
Three level lookup of keys:
Values containing "{*}" are replaced with a lookup of *
Field Summary | |
---|---|
static java.lang.String |
PATH_SKIN_DEFS
|
Constructor Summary | |
---|---|
SkinPropertiesImpl()
|
|
SkinPropertiesImpl(java.lang.ClassLoader classLoader,
java.lang.String skinPath,
java.lang.String mainSkinFile)
|
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()
|
int[] |
getColorValue(java.lang.String name)
|
int |
getEmHeightPX()
|
int |
getIntValue(java.lang.String name,
int def)
Retrieve a property's int value |
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)
|
protected java.lang.String |
getValue(java.lang.String name,
java.lang.String[] params)
|
boolean |
hasKey(java.lang.String name)
|
protected void |
setEmHeightPX(int fontHeightInPX)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PATH_SKIN_DEFS
Constructor Detail |
---|
public SkinPropertiesImpl()
public SkinPropertiesImpl(java.lang.ClassLoader classLoader, java.lang.String skinPath, java.lang.String mainSkinFile)
Method Detail |
---|
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 void addProperty(java.lang.String name, java.lang.String value)
SkinProperties
addProperty
in interface SkinProperties
name
- Name of Propertyvalue
- Value of Propertypublic boolean hasKey(java.lang.String name)
hasKey
in interface SkinProperties
public java.lang.String getReferenceID(java.lang.String name)
getReferenceID
in interface SkinProperties
protected java.lang.String getValue(java.lang.String name, java.lang.String[] params)
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 int[] getColorValue(java.lang.String name)
getColorValue
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 getStringValue(java.lang.String name, java.lang.String def)
getStringValue
in interface SkinProperties
public java.lang.String[] getStringArray(java.lang.String name)
getStringArray
in interface SkinProperties
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)
getStringValue
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 boolean getBooleanValue(java.lang.String name, boolean def)
getBooleanValue
in interface SkinProperties
public void clearCache()
clearCache
in interface SkinProperties
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface SkinProperties
protected void setEmHeightPX(int fontHeightInPX)
public int getEmHeightPX()
getEmHeightPX
in interface SkinProperties
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |