|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ViewerFactory
A common interface for instanciating FileViewer implementations, and finding out if a viewer is capable
of viewing a particular file.
| Method Summary | |
|---|---|
boolean |
canViewFile(AbstractFile file)
Returns true if this factory can create a file viewer for the specified file. |
FileViewer |
createFileViewer()
Returns a new instance of FileViewer. |
| Method Detail |
|---|
boolean canViewFile(AbstractFile file)
throws WarnUserException
true if this factory can create a file viewer for the specified file.
The FileEditor may base its decision stricly upon the file's name and its extension or may wish to read some of the file and compare it to a magic number.
file - file for which a viewer must be created.
true if this factory can create a file viewer for the specified file.
WarnUserException - if the specified file can be viewed after the warning message contained in the
exception is displayed to the end user.FileViewer createFileViewer()
FileViewer.
FileViewer.
|
|||||||||
| 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