Class ncsa.horizon.awt.SimpleFrame
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.horizon.awt.SimpleFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----ncsa.horizon.awt.SimpleFrame

public class SimpleFrame
extends Frame
A frame that provides minimal event handling, i.e., WINDOW_DESTROY.

Constructor Index

 o SimpleFrame()
 o SimpleFrame(String)

Method Index

 o handleEvent(Event)
Provide minimal event handling: close window on WINDOW_DESTROY.
 o setKillOnClose()
Destroy this frame and exit application when a WINDOW_DESTROY event is received.
 o setKillOnClose(boolean)
Set flag to either hide frame or exit application when a WINDOW_DESTROY event is received.

Constructors

 o SimpleFrame
  public SimpleFrame()
 o SimpleFrame
  public SimpleFrame(String title)

Methods

 o handleEvent
  public boolean handleEvent(Event ev)
Provide minimal event handling: close window on WINDOW_DESTROY.
Parameters:
ev - the Frame event.
Overrides:
handleEvent in class Component
 o setKillOnClose
  public void setKillOnClose(boolean flag)
Set flag to either hide frame or exit application when a WINDOW_DESTROY event is received.
Parameters:
flag - True if exit application on window close; false to simply hide the frame.
 o setKillOnClose
  public void setKillOnClose()
Destroy this frame and exit application when a WINDOW_DESTROY event is received.

All Packages  Class Hierarchy  This Package  Previous  Next  Index