Class wb.WBFrame
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class wb.WBFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----wb.WBFrame

public class WBFrame
extends Frame
WBFrame (Shared Graphics Editor/White Board) WBFrame holds all the components of the White Board and launches the Listener if invoked with a set of participants. However, White Board or WBFrame can be constructed without a set of participants and yet be able to start a conference by entering the username and hostname in the textwindow (yet to be implemented).

Constructor Index

 o WBFrame()
Default Constructor Invokes to a single user Graphics Editor that can be dynamically changed to multi-user.
 o WBFrame(String[], int)
Constructor which takes in an array of string and the number of users.

Method Index

 o Exit()
Method Exit to quit the conference and Exit the WhiteBoard/Shared Graphics Editor
 o HangUp()
Method HangUp to quit the conference
 o action(Event, Object)
Method action takes care generic MenuItem handler.
 o handleEvent(Event)
Handles the event.

Constructors

 o WBFrame
  public WBFrame()
Default Constructor Invokes to a single user Graphics Editor that can be dynamically changed to multi-user. (yet to incorporate this)
 o WBFrame
  public WBFrame(String args[],
                 int nousers)
Constructor which takes in an array of string and the number of users. (provided as a quick and dirty solution)
Parameters:
args - list of strings in the form of username hostname does not do any checking First user/host pair must be the local username/hostname
nousers - the number of users.

Methods

 o HangUp
  public void HangUp()
Method HangUp to quit the conference
 o Exit
  public void Exit()
Method Exit to quit the conference and Exit the WhiteBoard/Shared Graphics Editor
 o action
  public boolean action(Event evt,
                        Object obj)
Method action takes care generic MenuItem handler.
Parameters:
evt - the event
obj - the object/action that is occuring
Overrides:
action in class Component
 o handleEvent
  public boolean handleEvent(Event evt)
Handles the event. Returns true if the event is handled I had to use this just to be sure that the keyboard events reach others components like WBCanvas. KeyBoard Events used to filter here on the Sun solaris(2.3 2.4) but was okay on Win95.
Parameters:
evt - the event that is to be handled.
Overrides:
handleEvent in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index