|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.ui.viewer.ViewerRegistrar
public class ViewerRegistrar
ViewerRegistrar maintains a list of registered file viewers and provides methods to dynamically register file viewers and create appropriate FileViewer (Panel) and ViewerFrame (Window) instances for a given AbstractFile.
| Constructor Summary | |
|---|---|
ViewerRegistrar()
|
|
| Method Summary | |
|---|---|
static FileViewer |
createFileViewer(AbstractFile file)
Creates and returns an appropriate FileViewer for the given file type. |
static ViewerFrame |
createViewerFrame(MainFrame mainFrame,
AbstractFile file,
java.awt.Image icon)
Creates and returns a ViewerFrame to start viewing the given file. |
static void |
registerFileViewer(ViewerFactory factory)
Registers a FileViewer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewerRegistrar()
| Method Detail |
|---|
public static void registerFileViewer(ViewerFactory factory)
factory - file viewer factory to register.
public static ViewerFrame createViewerFrame(MainFrame mainFrame,
AbstractFile file,
java.awt.Image icon)
mainFrame - the parent MainFrame instancefile - the file that will be displayed by the returned ViewerFrameicon - window's icon.
public static FileViewer createFileViewer(AbstractFile file)
throws UserCancelledException
file - the file that will be displayed by the returned FileViewer
UserCancelledException - if the user has been asked to confirm the operation and cancelled
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard