ecologylab.appframework.types.prefs
Class PrefBoolean

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.xml.ElementState
          extended by ecologylab.appframework.types.prefs.Pref<java.lang.Boolean>
              extended by ecologylab.appframework.types.prefs.PrefBoolean
All Implemented Interfaces:
FieldTypes, Mappable<java.lang.String>, XMLTranslationExceptionTypes, java.lang.Cloneable

public class PrefBoolean
extends Pref<java.lang.Boolean>

Pref for a Boolean

Author:
andruid

Nested Class Summary
 
Nested classes/interfaces inherited from class ecologylab.xml.ElementState
ElementState.DeclarationStyle, ElementState.xml_attribute, ElementState.xml_bind_from, ElementState.xml_bind_to, ElementState.xml_class, ElementState.xml_classes, ElementState.xml_collection, ElementState.xml_format, ElementState.xml_leaf, ElementState.xml_map, ElementState.xml_nested, ElementState.xml_nowrap, ElementState.xml_other_tags, ElementState.xml_scope, ElementState.xml_tag, ElementState.xml_text
 
Field Summary
 
Fields inherited from class ecologylab.xml.ElementState
CDATA, NORMAL, UTF16, UTF16_LE, UTF8
 
Fields inherited from interface ecologylab.xml.FieldTypes
ATTRIBUTE, AWFUL_OLD_NESTED_ELEMENT, BAD_FIELD, COLLECTION_ELEMENT, COLLECTION_SCALAR, IGNORED_ATTRIBUTE, IGNORED_ELEMENT, LEAF, MAP_ELEMENT, MAP_SCALAR, NAME_SPACE_ATTRIBUTE, NAME_SPACE_LEAF_NODE, NAME_SPACE_MASK, NAME_SPACE_NESTED_ELEMENT, NAMESPACE_IGNORED_ELEMENT, NAMESPACE_TRIAL_ELEMENT, NESTED_ELEMENT, PSEUDO_FIELD_DESCRIPTOR, ROOT, TEXT_ELEMENT, TEXT_NODE_VALUE, UNSET_TYPE, WRAPPER, XMLNS_ATTRIBUTE, XMLNS_IGNORED
 
Fields inherited from interface ecologylab.xml.XMLTranslationExceptionTypes
FILE_NOT_FOUND, IO_EXCEPTION, NULL_PURL, UNKNOWN
 
Constructor Summary
PrefBoolean()
           
PrefBoolean(boolean value)
          Instantiate Pref to value
PrefBoolean(java.lang.String name, boolean value)
           
 
Method Summary
 Pref<java.lang.Boolean> clone()
           
 void setValue(boolean value)
          Set the value of the Pref given a boolean (small b)
 void setValue(java.lang.Boolean newValue)
          Set the value of the Pref given a Boolean (big B)
 
Methods inherited from class ecologylab.appframework.types.prefs.Pref
addPrefChangedListener, clearPref, containsKey, getName, hasPref, key, lookupBoolean, lookupBoolean, lookupColor, lookupColor, lookupElementState, lookupFile, lookupFloat, lookupFloat, lookupInt, lookupInt, lookupLong, lookupLong, lookupPref, lookupString, lookupString, postLoadHook, prefUpdated, print, printAllPrefsMap, toString, useAndSetPrefInt, usePrefBoolean, usePrefColor, usePrefFloat, usePrefInt, usePrefString, value
 
Methods inherited from class ecologylab.xml.ElementState
buildDOM, buildDOM, buildDOM, buildDOM, buildDOM, buildDOMFromXMLCharSequence, buildDOMFromXMLString, checkAnnotation, classDescriptor, createParentDirs, getChildFieldAccessors, getElementStateById, getFieldDescriptors, getNestedNameSpace, getTextNodeString, hasScalarTextField, lookupNestedNameSpace, parent, recycle, setDeclarationStyle, setParent, setUseDOMForTranslateTo, translateFromXML, translateFromXML, translateFromXML, translateFromXML, translateFromXML, translateFromXMLCharSequence, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOMCharSequence, translateFromXMLDOMCharSequence, translateFromXMLRootNode, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateToDOM, translateToXML, translateToXML, translateToXML, translateToXML, writePrettyXML, writePrettyXML, writePrettyXML
 
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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrefBoolean

public PrefBoolean()

PrefBoolean

public PrefBoolean(boolean value)
Instantiate Pref to value

Parameters:
value -

PrefBoolean

public PrefBoolean(java.lang.String name,
                   boolean value)
Method Detail

setValue

public void setValue(java.lang.Boolean newValue)
Set the value of the Pref given a Boolean (big B)

Specified by:
setValue in class Pref<java.lang.Boolean>
Parameters:
The - Boolean value the Pref will be set to

setValue

public void setValue(boolean value)
Set the value of the Pref given a boolean (small b)

Parameters:
The - boolean value the Pref will be set to

clone

public Pref<java.lang.Boolean> clone()
Specified by:
clone in class Pref<java.lang.Boolean>
See Also:
Pref.clone()