Class DisplayList

java.lang.Object
   |
   +----DisplayList

public class DisplayList
extends Object
implements Parsable
A list of displays that are each a separate window

This code is (c) 1996 Leemon Baird <leemon@cs.cmu.edu>, http://www.cs.cmu.edu/~baird
The source and object code may be redistributed freely. If the code is modified, please state so in the comments.

Version:
1.01, 24 July 96
Author:
Leemon Baird

Variable Index

 o displays
The list of displays
 o embed
Is each display embedded in the HTML page?

Constructor Index

 o DisplayList()
constructor that does nothing
 o DisplayList(int[], int[], int[], int[], Boolean[], Display[], Applet)
This constructor takes the same parameters that parse() parses, and initializes this object just as if it had been created by parsing instead.

Method Index

 o BNF(int)
 o destroy()
when the simulator is destroyed, it asks the DisplayList to dispose of every Display's window.
 o getParameters(int)
Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
 o getWatchManager()
Get the WatchManager being used
 o initialize(int)
Initialize, either partially or completely.
 o parse(Parser, int)
Parse the input file to get the parameters for this object.
 o setWatchManager(WatchManager, String)
Set the WatchManager, and create the window
 o unparse(Unparser, int)
Output a description of this object that can be parsed with parse().

Variables

 o displays
 public Display displays[]
The list of displays

 o embed
 public Boolean embed[]
Is each display embedded in the HTML page?

Constructors

 o DisplayList
 public DisplayList()
constructor that does nothing

 o DisplayList
 public DisplayList(int x[],
                    int y[],
                    int width[],
                    int height[],
                    Boolean embedDisp[],
                    Display displayList[],
                    Applet applet)
This constructor takes the same parameters that parse() parses, and initializes this object just as if it had been created by parsing instead. All the arrays should be the same length. They give the (x,y) coordinates of the upper-left corner of each display, its width and height, whether it should be embedded, and the Display it contains. The last parameter is the applet that owns this display list.

Methods

 o getParameters
 public Object[][] getParameters(int lang)
Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.

See Also:
getParameters
 o BNF
 public String BNF(int lang)
 o unparse
 public void unparse(Unparser u,
                     int lang)
Output a description of this object that can be parsed with parse().

 o parse
 public Object parse(Parser p,
                     int lang) throws ParserException
Parse the input file to get the parameters for this object.

Throws: ParserException
parser didn't find the required token
 o getWatchManager
 public WatchManager getWatchManager()
Get the WatchManager being used

 o setWatchManager
 public void setWatchManager(WatchManager wm,
                             String name)
Set the WatchManager, and create the window

 o destroy
 public void destroy()
when the simulator is destroyed, it asks the DisplayList to dispose of every Display's window.

 o initialize
 public void initialize(int level)
Initialize, either partially or completely.

See Also:
initialize