|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Debug
ecologylab.xml.ElementState
ecologylab.xml.types.element.ArrayListState
ecologylab.appframework.types.Preference
@Deprecated public class Preference
Represents a preference in the form of name/val. Can also hold a tree of ElementState objects of any type! that is, one or more.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ecologylab.xml.ElementState |
|---|
ElementState.ClassToCollectionMap, ElementState.DeclarationStyle, ElementState.xml_attribute, ElementState.xml_class, ElementState.xml_classes, ElementState.xml_collection, ElementState.xml_leaf, ElementState.xml_map, ElementState.xml_nested, ElementState.xml_tag |
| Field Summary | |
|---|---|
protected java.lang.String |
name
Deprecated. |
protected java.lang.String |
value
Deprecated. |
| Fields inherited from class ecologylab.xml.types.element.ArrayListState |
|---|
set |
| Fields inherited from class ecologylab.xml.ElementState |
|---|
CDATA, ESTIMATE_CHARS_PER_FIELD, FLOATING_PRECISION_OFF, MARSHALLING_PARAMS, NORMAL, UTF16, UTF16_LE, UTF8, XML_FILE_HEADER |
| Fields inherited from interface ecologylab.xml.XMLTranslationExceptionTypes |
|---|
FILE_NOT_FOUND, IO_EXCEPTION, NULL_PURL, UNKNOWN |
| Constructor Summary | |
|---|---|
Preference()
Deprecated. |
|
Preference(java.lang.String name,
java.lang.String value)
Deprecated. |
|
| Method Summary | |
|---|---|
ElementState |
child()
Deprecated. Natural accessor when you have a single ElementState child in your preference. |
java.lang.String |
getName()
Deprecated. Access the name of this Preference. |
java.lang.String |
getValue()
Deprecated. Access the value of this Preference. |
static Preference |
lookup(java.lang.String name)
Deprecated. Get a full Preference object entry from the registry. |
static boolean |
lookupBoolean(java.lang.String name)
Deprecated. Get a boolean parameter from the Environment. |
static boolean |
lookupBoolean(java.lang.String name,
boolean defaultValue)
Deprecated. Get a boolean parameter from the Environment. |
static java.awt.Color |
lookupColor(java.lang.String param)
Deprecated. Look-up a preference which is translated into a Color. |
static float |
lookupFloat(java.lang.String paramName,
float defaultValue)
Deprecated. Get a float parameter from the Environment. |
static int |
lookupInt(java.lang.String paramName)
Deprecated. Get an integer from the Environment. |
static int |
lookupInt(java.lang.String paramName,
int defaultValue)
Deprecated. Get an integer parameter from the Environment. |
static java.lang.String |
lookupString(java.lang.String name)
Deprecated. Get an entry from the registry, with value type String. |
static java.lang.String |
lookupString(java.lang.String name,
java.lang.String defaultValue)
Deprecated. Get an entry from the registry, with value type String. |
protected static Scope |
preferencesRegistry()
Deprecated. The default ObjectRegistry that preferences are stored in for the current application's Environment. |
void |
register()
Deprecated. Register this into the Environment's default preferencesRegistry. |
void |
register(Scope preferencesRegistry)
Deprecated. Register this into a PreferencesRegistry. |
static void |
register(java.lang.String name,
java.lang.String value)
Deprecated. |
void |
setName(java.lang.String name)
Deprecated. Set the name of this Preference. |
void |
setValue(java.lang.String value)
Deprecated. Set the value of this Preference. |
java.lang.String |
toString()
Deprecated. |
| Methods inherited from class ecologylab.xml.types.element.ArrayListState |
|---|
add, add, addAll, addAll, clear, clone, contains, containsAll, get, getArrayList, getCollection, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, recycle, remove, remove, removeAll, retainAll, set, set, size, subList, toArray, toArray, trimToSize |
| Methods inherited from class ecologylab.generic.Debug |
|---|
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
equals, hashCode |
| Field Detail |
|---|
protected java.lang.String name
protected java.lang.String value
| Constructor Detail |
|---|
public Preference()
public Preference(java.lang.String name,
java.lang.String value)
| Method Detail |
|---|
public java.lang.String toString()
toString in class Debugpublic ElementState child()
public java.lang.String getName()
public java.lang.String getValue()
public void setName(java.lang.String name)
name - public void setValue(java.lang.String value)
value - protected static Scope preferencesRegistry()
public void register()
public static void register(java.lang.String name,
java.lang.String value)
public void register(Scope preferencesRegistry)
preferencesRegistry - public static Preference lookup(java.lang.String name)
name - The name of the preference.
public static java.lang.String lookupString(java.lang.String name,
java.lang.String defaultValue)
name - Key to use to lookup the Preference.defaultValue - Default value to return if the Preference is not found in the registry.
public static java.lang.String lookupString(java.lang.String name)
name - Key to use to lookup the Preference.
public static boolean lookupBoolean(java.lang.String name)
true or yes, the result is
true; else false.
name - The name of the parameter's key.
public static boolean lookupBoolean(java.lang.String name,
boolean defaultValue)
true or yes, the result is
true; else false.
name - defaultValue -
public static int lookupInt(java.lang.String paramName)
paramName - The name of the parameter's key.
public static int lookupInt(java.lang.String paramName,
int defaultValue)
paramName - The name of the parameter's key.defaultValue - Default integer value, in case param is
unspecified in the runtime env.
public static float lookupFloat(java.lang.String paramName,
float defaultValue)
paramName - The name of the parameter's key.defaultValue - Default floating point value, in case param is
unspecified in the runtime env.
public static java.awt.Color lookupColor(java.lang.String param)
param -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||