com.aelitis.azureus.ui.skin
Interface SkinProperties

All Known Subinterfaces:
SWTSkinProperties, SWTSkinPropertiesParam
All Known Implementing Classes:
SkinPropertiesImpl, SWTSkinPropertiesClone, SWTSkinPropertiesImpl, SWTSkinPropertiesParamImpl

public interface SkinProperties

Interface for reading Skin properties (might be better)

Author:
TuxPaper

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)
           
 boolean hasKey(java.lang.String name)
           
 

Method Detail

addProperty

void addProperty(java.lang.String name,
                 java.lang.String value)
Add a property key/value pair to the list

Parameters:
name - Name of Property
value - Value of Property

getIntValue

int getIntValue(java.lang.String name,
                int def)
Retrieve a property's int value

Parameters:
name - Name of property
def - Default value if property not found
Returns:
value

getStringValue

java.lang.String getStringValue(java.lang.String name)
Retrieve a string value

Parameters:
name - Name of property
Returns:
the String value, or null if not found

getStringValue

java.lang.String getStringValue(java.lang.String name,
                                java.lang.String def)

getStringArray

java.lang.String[] getStringArray(java.lang.String name)

getStringValue

java.lang.String getStringValue(java.lang.String name,
                                java.lang.String[] params)

getStringValue

java.lang.String getStringValue(java.lang.String name,
                                java.lang.String[] params,
                                java.lang.String def)

getStringArray

java.lang.String[] getStringArray(java.lang.String name,
                                  java.lang.String[] params)

getColorValue

int[] getColorValue(java.lang.String name)

getBooleanValue

boolean getBooleanValue(java.lang.String name,
                        boolean def)

clearCache

void clearCache()
Since:
3.1.1.1

hasKey

boolean hasKey(java.lang.String name)
Parameters:
name -
Returns:
Since:
3.1.1.1

getReferenceID

java.lang.String getReferenceID(java.lang.String name)
Parameters:
name -
Returns:
Since:
3.1.1.1

addResourceBundle

void addResourceBundle(java.util.ResourceBundle subBundle,
                       java.lang.String skinPath)
Parameters:
subBundle -
skinPath - TODO
Since:
4.0.0.5

addResourceBundle

void addResourceBundle(java.util.ResourceBundle subBundle,
                       java.lang.String skinPath,
                       java.lang.ClassLoader loader)
Parameters:
subBundle -
skinPath -
loader -
Since:
4315

getClassLoader

java.lang.ClassLoader getClassLoader()
Returns:
Since:
4.0.0.5

getEmHeightPX

int getEmHeightPX()
Returns:
Since:
5.6.2.1