|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.ui.viewer.EditorRegistrar
public class EditorRegistrar
EditorRegistrar maintains a list of registered file editors and provides methods to dynamically register file editors and create appropriate FileEditor (Panel) and EditorFrame (Window) instances for a given AbstractFile.
| Constructor Summary | |
|---|---|
EditorRegistrar()
|
|
| Method Summary | |
|---|---|
static EditorFrame |
createEditorFrame(MainFrame mainFrame,
AbstractFile file,
java.awt.Image icon)
Creates and returns an EditorFrame to start viewing the given file. |
static FileEditor |
createFileEditor(AbstractFile file)
Creates and returns an appropriate FileEditor for the given file type. |
static void |
registerFileEditor(EditorFactory factory)
Registers a FileEditor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditorRegistrar()
| Method Detail |
|---|
public static void registerFileEditor(EditorFactory factory)
factory - file editor factory to register.
public static EditorFrame createEditorFrame(MainFrame mainFrame,
AbstractFile file,
java.awt.Image icon)
mainFrame - the parent MainFrame instancefile - the file that will be displayed by the returned EditorFrameicon - editor frame's icon.
public static FileEditor createFileEditor(AbstractFile file)
throws UserCancelledException
file - the file that will be displayed by the returned FileEditor
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