Class pmr.cml.CMLApplet
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.cml.CMLApplet
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----pmr.simplegraph.SimpleApplet
|
+----pmr.sgml.SGMLApplet
|
+----pmr.cml.CMLApplet
- public class CMLApplet
- extends SGMLApplet
simple CMLfile viewer; see SGMLApplet superclass for general details
IS THIS CLASS REALLY WANTED?
- Author:
- (C) P. Murray-Rust, 1996
-
CMLApplet()
-
-
CMLApplet(String)
-
-
chooseMIME(String)
-
-
createTree(String)
-
-
fileMenu(String[])
-
-
handleEvent(Event)
- this is called when the main menu bar is activated.
-
helpMenu(String)
-
-
init()
- It creates a tree via createTree();
-
loadFile()
-
-
main(String[])
- this is only run when an application.
-
paint(Graphics)
-
-
saveFile()
-
CMLApplet
public CMLApplet()
CMLApplet
public CMLApplet(String inputResourceName)
paint
public void paint(Graphics g)
- Overrides:
- paint in class SGMLApplet
init
public void init()
- It creates a tree via createTree();
- Overrides:
- init in class SGMLApplet
handleEvent
public boolean handleEvent(Event event)
- this is called when the main menu bar is activated. Quit is dealt with,
but normally this class should be subclassed as a way of dealing with
events
- Overrides:
- handleEvent in class SGMLApplet
fileMenu
public boolean fileMenu(String labels[])
- Overrides:
- fileMenu in class SGMLApplet
helpMenu
public boolean helpMenu(String label)
- Overrides:
- helpMenu in class SGMLApplet
chooseMIME
public void chooseMIME(String s)
loadFile
public void loadFile()
saveFile
public void saveFile()
createTree
public void createTree(String fileName) throws IOException, FileNotFoundException
main
public static void main(String args[])
- this is only run when an application. Note that running the class
(e.g. java pmr.cml.CMLApplet ) is enough to run it. It can be run
either on the command line with one or more arguments or graphically
All Packages Class Hierarchy This Package Previous Next Index