DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.display
Class CollapseBeanInitializer

java.lang.Object
  extended by org.dlese.dpc.schemedit.display.CollapseBeanInitializer

public class CollapseBeanInitializer
extends Object

Class to initialize a CollapseBean which controls the visibility of fields in the metadata editor. All fields that are deeper than a threshold level are opened, while those shallower are closed.

Author:
Jonathan Ostwald

Constructor Summary
CollapseBeanInitializer(CollapseBean collapseBean, Document doc, int baseLevel, MetaDataFramework framework)
          Constructor for the CollapseBeanInitializer object
CollapseBeanInitializer(CollapseBean collapseBean, Document doc, MetaDataFramework framework)
          Constructor for the CollapseBeanInitializer object
 
Method Summary
 void init()
          Initializes visiblity of elements in the metadata editor.
protected  void prtln(String s)
          NOT YET DOCUMENTED
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollapseBeanInitializer

public CollapseBeanInitializer(CollapseBean collapseBean,
                               Document doc,
                               MetaDataFramework framework)
Constructor for the CollapseBeanInitializer object

Parameters:
collapseBean - collapseBean to be initialized
doc - instance document
framework - framework of instance document

CollapseBeanInitializer

public CollapseBeanInitializer(CollapseBean collapseBean,
                               Document doc,
                               int baseLevel,
                               MetaDataFramework framework)
Constructor for the CollapseBeanInitializer object

Parameters:
collapseBean - collapseBean to be initialized
doc - instance document
baseLevel - Configured baseLevel for the framework - used to compute relative "level"
framework - Description of the Parameter
Method Detail

init

public void init()
Initializes visiblity of elements in the metadata editor. Currently, expands all nodes except those at a level below THRESHOLD_LEVEL.


prtln

protected final void prtln(String s)
NOT YET DOCUMENTED

Parameters:
s - NOT YET DOCUMENTED

DLESE Tools
v1.6.0