Class edu.cornell.lassp.mck10.ConfigurePack.ConfigurableCollection
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.cornell.lassp.mck10.ConfigurePack.ConfigurableCollection

java.lang.Object
   |
   +----java.util.Observable
           |
           +----edu.cornell.lassp.mck10.ConfigurePack.Configurable
                   |
                   +----edu.cornell.lassp.mck10.ConfigurePack.ConfigurableCollection

public class ConfigurableCollection
extends Configurable

ConfigurableCollection is a subclass of Configurable used to create trees of configurable variables. A ConfigurableCollection must be passed to each new Configurable variable in its constructor, in order to give the new variable a place in a tree. If no ConfigurableCollection is passed, the new variable will stand on its own, and will lack much of the functionality of a Configurable in a tree. Trees created with ConfigurableCollections do a number of things:

If a ConfigurableCollection is created without a parent, it will be the root of its tree. If the root is passed an Applet (for PARAM tags), or an argv[] array (for command-line parameters), or a configuration file, it will try to provide default values for the variables in its tree. Otherwise, it will be a "dead" root, and it will not try to provide these services for its children.

ConfigurableCollection provides several non-public methods which are called by a collection's children: