Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org.jfree.report.modules.gui » config » model » [javadoc | source]
org.jfree.report.modules.gui.config.model
public class: ModuleNodeFactory [javadoc | source]
java.lang.Object
   org.jfree.report.modules.gui.config.model.ModuleNodeFactory
The module node factory is used to build the lists of modules and their assigned keys for the ConfigTreeModel.
Constructor:
 public ModuleNodeFactory(InputStream in) throws IOException 
    Creates a new module node factory and initializes the factory from the given input stream. The stream will be used to build a ConfigDescription model and should contain suitable XML content.
    Parameters:
    in - the input stream from where to read the model content.
    Throws:
    IOException - if an error occured while reading the stream.
Method from org.jfree.report.modules.gui.config.model.ModuleNodeFactory Summary:
getEntryForKey,   getGlobalNodes,   getLocalNodes,   getPackage,   init
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.report.modules.gui.config.model.ModuleNodeFactory Detail:
 public ConfigDescriptionEntry getEntryForKey(String key) 
    Returns the entry for the given key or null, if the key has no metadata.
 public ArrayList getGlobalNodes() 
    Returns all global nodes. You have to initialize the factory before using this method.
 public ArrayList getLocalNodes() 
    Returns all local nodes. You have to initialize the factory before using this method.
 public static String getPackage(Class c) 
    Returns the name of the package for the given class. This is a workaround for the classloader behaviour of JDK1.2.2 where no package objects are created.
 public  void init(HierarchicalConfiguration config) throws ConfigTreeModelException 
    (Re)Initializes the factory from the given report configuration. This will assign all keys frmo the report configuration to the model and assignes the definition from the configuration description if possible.