|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tuneology.avm.mrj.MRJPlugin
This class exists as a glue layer for MRJ. MRJ is obsolete as of Java 1.4, but we are forced to use Java 1.3.1, and therefore MRJ, because Apple has not updated Quicktime for Java to work with Java 1.4.
Constructor Summary | |
MRJPlugin()
The constructor registers this class as a listener for all the MRJ events. |
Method Summary | |
int |
getFileCreator(java.io.File f)
|
int |
getFileType(java.io.File f)
|
java.io.File |
getPrefsDirectory()
|
java.io.File |
getTempDirectory()
|
java.io.File |
getTrashDirectory()
|
void |
handleAbout()
Callback from MRJ. |
void |
handleOpenApplication()
Callback from MRJ. |
void |
handleOpenFile(java.io.File f)
|
void |
handlePrefs()
Callback from MRJ. |
void |
handlePrintFile(java.io.File f)
Callback from MRJ. |
void |
handleQuit()
Callback from MRJ. |
static java.lang.String |
intToString(int i)
|
void |
openBrowserWindow(java.lang.String url)
Call this to open an url in a new browser window. |
void |
openURL(java.lang.String url)
|
void |
registerApplListener(ApplListener listener)
The application calls this to register a listener. |
void |
removeApplListener(ApplListener listener)
The application calls this to un-register a listener. |
void |
setFileTypeAndCreator(java.io.File f,
int typ,
int creator)
|
static int |
stringToInt(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MRJPlugin()
Method Detail |
public java.io.File getPrefsDirectory() throws java.io.FileNotFoundException
getPrefsDirectory
in interface CorePlugin
public java.io.File getTempDirectory() throws java.io.FileNotFoundException
getTempDirectory
in interface CorePlugin
public java.io.File getTrashDirectory() throws java.io.FileNotFoundException
getTrashDirectory
in interface CorePlugin
public void openBrowserWindow(java.lang.String url) throws java.io.IOException
openBrowserWindow
in interface CorePlugin
java.io.IOException
- public void handleAbout()
handleAbout
in interface com.apple.mrj.MRJAboutHandler
public void handleOpenApplication()
handleOpenApplication
in interface com.apple.mrj.MRJOpenApplicationHandler
public void handlePrefs()
handlePrefs
in interface com.apple.mrj.MRJPrefsHandler
public void handlePrintFile(java.io.File f)
handlePrintFile
in interface com.apple.mrj.MRJPrintDocumentHandler
public void handleQuit() throws java.lang.IllegalStateException
handleQuit
in interface com.apple.mrj.MRJQuitHandler
public void handleOpenFile(java.io.File f)
handleOpenFile
in interface com.apple.mrj.MRJOpenDocumentHandler
public void registerApplListener(ApplListener listener)
registerApplListener
in interface CorePlugin
public void removeApplListener(ApplListener listener)
removeApplListener
in interface CorePlugin
public void openURL(java.lang.String url) throws java.io.IOException
public int getFileType(java.io.File f) throws java.io.IOException
public int getFileCreator(java.io.File f) throws java.io.IOException
public void setFileTypeAndCreator(java.io.File f, int typ, int creator) throws java.io.IOException
public static int stringToInt(java.lang.String s)
public static java.lang.String intToString(int i)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |