|
||||||||||
| 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<MetaPref>
ecologylab.appframework.types.prefs.MetaPrefSet
public class MetaPrefSet
Groupings of MetaPrefs, by category. Categories are also ordered in a separate ArrayList. Contains functions related to adding MetaPrefs to the grouping, getting MetaPrefs, getting the categories, etc.
| 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 |
|---|
| 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 | |
|---|---|
MetaPrefSet()
|
|
| Method Summary | |
|---|---|
boolean |
add(MetaPref metaPref)
Register the MetaPref in the static global map, as well as adding it to the super ArrayListState. |
protected void |
createChildHook(ElementState child)
Perform custom processing on the newly created child node, just before it is added to this. |
java.util.Set<java.lang.String> |
getCategories()
Get the category names in a Set of Strings. |
int |
getHeight()
|
java.util.ArrayList<MetaPref> |
getMetaPrefListByCategory(java.lang.String cat)
Get the MetaPref ArrayList for a category name. |
int |
getNumberOfTabs()
Return the number of categories. |
java.lang.String[] |
getOrderedTabNames(java.lang.String[] tabList)
Return the ordered list of categories. |
java.lang.String |
getTitle()
|
int |
getWidth()
|
static MetaPrefSet |
load(java.io.File file,
TranslationSpace translationSpace)
Read MetaPref declarations from a file or across the net. |
static MetaPrefSet |
load(ParsedURL purl,
TranslationSpace translationSpace)
Read MetaPref declarations from a file or across the net. |
| Methods inherited from class ecologylab.xml.types.element.ArrayListState |
|---|
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, 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 |
| Constructor Detail |
|---|
public MetaPrefSet()
| Method Detail |
|---|
protected void createChildHook(ElementState child)
createChildHook in class ElementStatechild - public java.lang.String[] getOrderedTabNames(java.lang.String[] tabList)
tabList - String Array that will hold category names.
public int getNumberOfTabs()
public java.util.Set<java.lang.String> getCategories()
public java.util.ArrayList<MetaPref> getMetaPrefListByCategory(java.lang.String cat)
cat - Name of category
public boolean add(MetaPref metaPref)
add in interface java.util.Collection<MetaPref>add in interface java.util.List<MetaPref>add in class ArrayListState<MetaPref>metaPref -
public static MetaPrefSet load(java.io.File file,
TranslationSpace translationSpace)
throws XMLTranslationException
file - translationSpace -
XMLTranslationException
public static MetaPrefSet load(ParsedURL purl,
TranslationSpace translationSpace)
throws XMLTranslationException
purl - translationSpace -
XMLTranslationExceptionpublic int getHeight()
public java.lang.String getTitle()
public int getWidth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||