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: ConfigDescriptionModel [javadoc | source]
java.lang.Object
   javax.swing.AbstractListModel
      org.jfree.report.modules.gui.config.model.ConfigDescriptionModel

All Implemented Interfaces:
    ListModel, Serializable

This list model implementation collects all config description entries defined in JFreeReport. This model is used to create a configuration key definition; it directly manipulates the metadata for the keys as stored in the config-description.xml file.
Constructor:
 public ConfigDescriptionModel() 
Method from org.jfree.report.modules.gui.config.model.ConfigDescriptionModel Summary:
add,   contains,   get,   getElementAt,   getSize,   importFromConfig,   indexOf,   load,   remove,   removeAll,   save,   sort,   toArray,   updated
Methods from javax.swing.AbstractListModel:
addListDataListener,   getListDataListeners,   getListeners,   removeListDataListener
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.report.modules.gui.config.model.ConfigDescriptionModel Detail:
 public  void add(ConfigDescriptionEntry entry) 
    Adds the given entry to the end of the list.
 public boolean contains(ConfigDescriptionEntry entry) 
    Checks whether the given entry is already contained in this list.
 public ConfigDescriptionEntry get(int pos) 
    Returns the entry stored on the given list position.
 public Object getElementAt(int index) 
    Returns the value at the specified index.
 public int getSize() 
    Returns the length of the list.
 public  void importFromConfig(Configuration config) 
    Imports all entries from the given report configuration. Only new entries will be added to the list. This does not add report properties supplied via the System.properties.
 public int indexOf(ConfigDescriptionEntry entry) 
    Returns the index of the given entry or -1, if the entry is not in the list.
 public  void load(InputStream in) throws IOException, SAXException, ParserConfigurationException 
    Loads the entries from the given xml file. The file must be in the format of the config-description.xml file.
 public  void remove(ConfigDescriptionEntry entry) 
    Removes the given entry from the list.
 public  void removeAll(int[] indices) 
 public  void save(OutputStream out,
    String encoding) throws IOException 
    Saves the model into an xml file.
 public  void sort() 
    Sorts the entries of the list. Be aware that calling this method does not fire an updat event; you have to do this manually.
 public ConfigDescriptionEntry[] toArray() 
    Returns the contents of this model as object array.
 public  void updated() 
    Fires an contents changed event for all elements in the list.