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.
-
AppletFrame(AppletWrapper)
- AppletFrame
-
addWindowListener(WindowListener)
- Adds the specified listener to be notified when component
events occur on this component.
-
appletResize(int, int)
- Called when the applet wants to be resized.
-
getAppletWrapper()
- AppletWrapper
-
getStatusBar()
- Returns the status bar text field component.
-
handleEvent(Event)
- handleEvent
-
hide()
- hides the applet.
-
keyDown(Event, int)
- Catch keyDown event and, if tab, go to next focus component
-
processEvent(AWTEvent)
- processEvent
-
processWindowEvent(WindowEvent)
-
-
removeWindowListener(WindowListener)
- Removes the specified listener so it no longer receives
window events on this window.
-
setDefaultLocation(int, int)
- Set the default location, which might be overridden by command
line arguments or an HTML file.
-
setDefaultSize(int, int)
- Set the default size, which might be overridden by command line
arguments or an HTML file.
-
show()
- shows the applet.
AppletFrame
public AppletFrame(AppletWrapper appletWrapper)
- AppletFrame
- Parameters:
- appletWrapper - wrapper object to pass applet
getAppletWrapper
public AppletWrapper getAppletWrapper()
- AppletWrapper
- Returns:
- AppletWrapper
getStatusBar
public TextField getStatusBar()
- Returns the status bar text field component.
- Returns:
- the status bar
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
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
hide
public void hide()
- hides the applet.
- Overrides:
- hide in class Component
show
public void show()
- shows the applet.
- Overrides:
- show in class Window
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
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
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
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
handleEvent
public boolean handleEvent(Event evt)
- handleEvent
- Parameters:
- evt - the Event to handle
- Returns:
- boolean result of event handling
- Overrides:
- handleEvent in class Component
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
processWindowEvent
protected void processWindowEvent(WindowEvent e)
All Packages Class Hierarchy This Package Previous Next Index