|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 String |
PATH_SKIN_DEFS
|
| Constructor Summary | |
|---|---|
SkinPropertiesImpl()
|
|
SkinPropertiesImpl(ClassLoader classLoader,
String skinPath,
String mainSkinFile)
|
|
| Method Summary | |
|---|---|
void |
addProperty(String name,
String value)
Add a property key/value pair to the list |
void |
addResourceBundle(ResourceBundle subBundle,
String skinPath)
|
void |
addResourceBundle(ResourceBundle subBundle,
String skinPath,
ClassLoader loader)
|
void |
clearCache()
|
boolean |
getBooleanValue(String name,
boolean def)
|
ClassLoader |
getClassLoader()
|
int[] |
getColorValue(String name)
|
int |
getEmHeightPX()
|
int |
getIntValue(String name,
int def)
Retrieve a property's int value |
String |
getReferenceID(String name)
|
String[] |
getStringArray(String name)
|
String[] |
getStringArray(String name,
String[] params)
|
String |
getStringValue(String name)
Retrieve a string value |
String |
getStringValue(String name,
String def)
|
String |
getStringValue(String name,
String[] params)
|
String |
getStringValue(String name,
String[] params,
String def)
|
protected String |
getValue(String name,
String[] params)
|
boolean |
hasKey(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 String PATH_SKIN_DEFS
| Constructor Detail |
|---|
public SkinPropertiesImpl()
public SkinPropertiesImpl(ClassLoader classLoader, String skinPath, String mainSkinFile)
| Method Detail |
|---|
public void addResourceBundle(ResourceBundle subBundle, String skinPath)
addResourceBundle in interface SkinPropertiesskinPath - TODOpublic void addResourceBundle(ResourceBundle subBundle, String skinPath, ClassLoader loader)
addResourceBundle in interface SkinPropertiespublic void addProperty(String name, String value)
SkinProperties
addProperty in interface SkinPropertiesname - Name of Propertyvalue - Value of Propertypublic boolean hasKey(String name)
hasKey in interface SkinPropertiespublic String getReferenceID(String name)
getReferenceID in interface SkinPropertiesprotected String getValue(String name, String[] params)
public int getIntValue(String name, int def)
SkinProperties
getIntValue in interface SkinPropertiesname - Name of propertydef - Default value if property not found
public int[] getColorValue(String name)
getColorValue in interface SkinPropertiespublic String getStringValue(String name)
SkinProperties
getStringValue in interface SkinPropertiesname - Name of property
public String getStringValue(String name, String def)
getStringValue in interface SkinPropertiespublic String[] getStringArray(String name)
getStringArray in interface SkinPropertiespublic String[] getStringArray(String name, String[] params)
getStringArray in interface SkinPropertiespublic String getStringValue(String name, String[] params)
getStringValue in interface SkinPropertiespublic String getStringValue(String name, String[] params, String def)
getStringValue in interface SkinPropertiespublic boolean getBooleanValue(String name, boolean def)
getBooleanValue in interface SkinPropertiespublic void clearCache()
clearCache in interface SkinPropertiespublic ClassLoader getClassLoader()
getClassLoader in interface SkinPropertiesprotected 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 | ||||||||