org.xnap.gui.viewer
Interface Viewer

All Known Implementing Classes:
AbstractViewer, AcrobatViewerPlugin, BitziPlugin, ImageViewerPlugin, JMFPlayerPlugin, MP3TagEditorPlugin, TextViewerPlugin, VideoInfoPlugin, VorbisViewerPlugin, ZipViewerPlugin

public interface Viewer

Defines the requirements for classes that provides preview and possibly edit functionality for files.


Method Summary
 void close()
          Invoked when the viewer is hidden.
 javax.swing.JComponent getComponent()
          Hmm, that makes not much sense.
 javax.swing.Icon getIcon()
          Returns a 16x16 icon.
 java.lang.String getName()
          Returns the name of this viewer.
 void open(java.io.File file)
          Invoked when a file should be displayed.
 

Method Detail

getIcon

javax.swing.Icon getIcon()
Returns a 16x16 icon.


getComponent

javax.swing.JComponent getComponent()
Hmm, that makes not much sense. We want to support threading.


getName

java.lang.String getName()
Returns the name of this viewer.


open

void open(java.io.File file)
Invoked when a file should be displayed.


close

void close()
Invoked when the viewer is hidden.



Copyright © 2001-2005 XNap Team. All Rights Reserved.