All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.AppletFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----dtai.gwt.AppletFrame

public class AppletFrame
extends Frame
AppletFrame - provides a Frame (window) in which to host an applet.


Constructor Index

 o AppletFrame(AppletWrapper)
AppletFrame

Method Index

 o addWindowListener(WindowListener)
Adds the specified listener to be notified when component events occur on this component.
 o appletResize(int, int)
Called when the applet wants to be resized.
 o getAppletWrapper()
AppletWrapper
 o getStatusBar()
Returns the status bar text field component.
 o handleEvent(Event)
handleEvent
 o hide()
hides the applet.
 o keyDown(Event, int)
Catch keyDown event and, if tab, go to next focus component
 o processEvent(AWTEvent)
processEvent
 o processWindowEvent(WindowEvent)
 o removeWindowListener(WindowListener)
Removes the specified listener so it no longer receives window events on this window.
 o setDefaultLocation(int, int)
Set the default location, which might be overridden by command line arguments or an HTML file.
 o setDefaultSize(int, int)
Set the default size, which might be overridden by command line arguments or an HTML file.
 o show()
shows the applet.

Constructors

 o AppletFrame
 public AppletFrame(AppletWrapper appletWrapper)
AppletFrame

Parameters:
appletWrapper - wrapper object to pass applet

Methods

 o getAppletWrapper
 public AppletWrapper getAppletWrapper()
AppletWrapper

Returns:
AppletWrapper
 o getStatusBar
 public TextField getStatusBar()
Returns the status bar text field component.

Returns:
the status bar
 o setDefaultSize
 public void setDefaultSize(int default_width,
                            int default_height)
Set the default size, which might be overridden by command line arguments or an HTML file.

Parameters:
default_width - the default width of the window
default_height - the default width of the window
 o setDefaultLocation
 public void setDefaultLocation(int default_x,
                                int default_y)
Set the default location, which might be overridden by command line arguments or an HTML file.

Parameters:
default_x - the default x of the window
default_y - the default y of the window
 o hide
 public void hide()
hides the applet.

Overrides:
hide in class Component
 o show
 public void show()
shows the applet.

Overrides:
show in class Window
 o appletResize
 public void appletResize(int width,
                          int height)
Called when the applet wants to be resized. This causes the Frame (window) to be resized to accomodate the new Applet size.

Parameters:
width - the new width of the applet
height - the new height of the applet
 o keyDown
 public boolean keyDown(Event evt,
                        int key)
Catch keyDown event and, if tab, go to next focus component

Parameters:
evt - the Key Event
key - the key value
Returns:
boolean result
Overrides:
keyDown in class Component
 o addWindowListener
 public synchronized void addWindowListener(WindowListener l)
Adds the specified listener to be notified when component events occur on this component.

Parameters:
l - the listener to receive the events
 o removeWindowListener
 public synchronized void removeWindowListener(WindowListener l)
Removes the specified listener so it no longer receives window events on this window.

Parameters:
l - the listener to remove
 o handleEvent
 public boolean handleEvent(Event evt)
handleEvent

Parameters:
evt - the Event to handle
Returns:
boolean result of event handling
Overrides:
handleEvent in class Component
 o processEvent
 protected void processEvent(AWTEvent e)
processEvent

Parameters:
e - a WindowEvent- we handle WINDOW_CLOSING WINDOW_CLOSED WINDOW_OPENED WINDOW_ICONIFIED WINDOW_DEICONIFIED
Returns:
boolean result
 o processWindowEvent
 protected void processWindowEvent(WindowEvent e)

All Packages  Class Hierarchy  This Package  Previous  Next  Index