    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.

##

SimpleFrame()
SimpleFrame(String)

##

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

##

SimpleFrame

      public SimpleFrame()

SimpleFrame

      public SimpleFrame(String title)

##

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

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.

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