org.globus.cog.gridface.interfaces
Interface ViewerPanel

All Superinterfaces:
GridFace
All Known Subinterfaces:
FileViewerPanel, ImageViewerPanel
All Known Implementing Classes:
ImageViewerImplToolBar

public interface ViewerPanel
extends GridFace

A viewer panel hs an area in which an object is rendered for viewing.
+--------------------------------+
| Location: ___________________ |
+--------------------------------+
| |
| |
| Viewer Window |
| |
| |
| |
+ -------------------------------+
A viewer panel contains a location and a URI pointing to a peace of information to be viewed. This could be files, or even a query to an information system or database. a viewer can have support for multiple protocols. Only protocols that are registered can be viewed.


Method Summary
 void register(String mimetype, Object viewer)
          Regoisters a viewer for a particulat protocol.
 void setDefault(Object viewer)
          Sets the default viewer to
 
Methods inherited from interface org.globus.cog.gridface.interfaces.GridFace
lastUpdateTime, register, setLabel, setName, update
 

Method Detail

register

public void register(String mimetype,
                     Object viewer)
Regoisters a viewer for a particulat protocol.

Parameters:
mimetype - a String the mimetype. For now we use a combination of endings and prefixes. E.g. gridftp://..../a.jpg. Will fetch and display in an image in the viewer. The file will be downloaded to the local computer.
viewer - an Object The viewer the displays the result in the view window.

setDefault

public void setDefault(Object viewer)
Sets the default viewer to

Parameters:
viewer - an Object value