| java.lang.Object net.sourceforge.squirrel_sql.client.gui.FileViewerFactory
FileViewerFactory | public class FileViewerFactory (Code) | | This factory stores instances of HtmlViewerSheet (viewer) objects
keyed by the URL of the file they are displaying. When a viewer is requested
the collection of existing viewers is checked and if one exists it is
returned, otherwise a new one is created and returned. When a viewer is
closed iy is removed from the collection.
author: Colin Bell |
closeAllViewers | public synchronized void closeAllViewers()(Code) | | |
getInstance | public static FileViewerFactory getInstance()(Code) | | Return the single instance of this class.
The singleton instance of this class. |
getViewer | public synchronized HtmlViewerSheet getViewer(MainFrame parent, URL url)(Code) | | Return the viewer for the passed URL.
Parameters: parent - MDI parent frame to hold the new viewer. Parameters: url - The URL to be displayed. the viewer for the passed URL. throws: IllegalArgumentException - Thrown if null MainFrame or URL passed. |
|
|