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

Constructor Index

 o CMLApplet()
 o CMLApplet(String)

Method Index

 o chooseMIME(String)
 o createTree(String)
 o fileMenu(String[])
 o handleEvent(Event)
this is called when the main menu bar is activated.
 o helpMenu(String)
 o init()
It creates a tree via createTree();
 o loadFile()
 o main(String[])
this is only run when an application.
 o paint(Graphics)
 o saveFile()

Constructors

 o CMLApplet
  public CMLApplet()
 o CMLApplet
  public CMLApplet(String inputResourceName)

Methods

 o paint
  public void paint(Graphics g)
Overrides:
paint in class SGMLApplet
 o init
  public void init()
It creates a tree via createTree();
Overrides:
init in class SGMLApplet
 o 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
 o fileMenu
  public boolean fileMenu(String labels[])
Overrides:
fileMenu in class SGMLApplet
 o helpMenu
  public boolean helpMenu(String label)
Overrides:
helpMenu in class SGMLApplet
 o chooseMIME
  public void chooseMIME(String s)
 o loadFile
  public void loadFile()
 o saveFile
  public void saveFile()
 o createTree
  public void createTree(String fileName) throws IOException, FileNotFoundException
 o 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