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).
-
WBFrame()
- Default Constructor
Invokes to a single user Graphics Editor that can be dynamically changed
to multi-user.
-
WBFrame(String[], int)
- Constructor which takes in an array of string and the number of users.
-
Exit()
- Method Exit to quit the conference and Exit the
WhiteBoard/Shared Graphics Editor
-
HangUp()
- Method HangUp to quit the conference
-
action(Event, Object)
-
Method action takes care generic MenuItem handler.
-
handleEvent(Event)
- Handles the event.
WBFrame
public WBFrame()
- Default Constructor
Invokes to a single user Graphics Editor that can be dynamically changed
to multi-user. (yet to incorporate this)
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.
HangUp
public void HangUp()
- Method HangUp to quit the conference
Exit
public void Exit()
- Method Exit to quit the conference and Exit the
WhiteBoard/Shared Graphics Editor
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
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