Class ncsa.horizon.modules.MetadataViewer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.horizon.modules.MetadataViewer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ncsa.horizon.modules.MetadataViewer

public class MetadataViewer
extends Panel
A panel which displays Metadata in hierarchical (tree-like) fashion. It uses some ready-made packages and some custom classes to do that.

Using it should be simple. The user of the class should simply create an object of type MetadataViewer and allocate a (600, 400) pixel area in her application or applet in order to display the Metadata object that needs to be displayed. The Metadata object to be displayed can be displayed immediately if it is passed with the constructor, for example,

     MetadataViewer mdv = new MetadataViewer(mdata);
     mdv.display();
     ScrollablePanel span = new ScrollablePanel(mdv);
     setLayout(new BorderLayout());
     this.add("Center",span);
where `mdata' is the Metadata object the user wants to be displayed.


Constructor Index

 o MetadataViewer(Metadata)
Constructs a MetadataViewer object set to display the specified Metadata object.

Method Index

 o display()
Resizes and sets up the Metadata object to be displayed within the viewer.
 o getMetadata()
Returns the Metadata object associated with the MetadataViewer.

Constructors

 o MetadataViewer
  public MetadataViewer(Metadata mdata)
Constructs a MetadataViewer object set to display the specified Metadata object.
Parameters:
mdata - the object to be displayed

Methods

 o display
  public void display()
Resizes and sets up the Metadata object to be displayed within the viewer.
 o getMetadata
  public Metadata getMetadata()
Returns the Metadata object associated with the MetadataViewer.
Returns:
the Metadata object associated with the MetadataViewer, null if there is no associated object

All Packages  Class Hierarchy  This Package  Previous  Next  Index