All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class IMSWG.IU.DialogFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----IMSWG.IU.DialogFrame

public class DialogFrame
extends Frame
Provides a Frame to put a pop-up Dialog in for an Applet.


Variable Index

 o dialogState

Constructor Index

 o DialogFrame(Object, String, String, String, String, boolean)
Constructs the Frame and then adds the Strings and Buttons to it.

Method Index

 o action(Event, Object)
Handles the buttons in this Dialog.
 o handleEvent(Event, Object)
Handles close events for this floating Frame.
 o setCancelLabel(String)
Constructs a new "Cancel" Button with the requested label.
 o setOKLabel(String)
Constructs a new "OK" Button with the requested label.
 o show()
Adds the buttons (in their final form) to the proper places and shows the Frame.

Variables

 o dialogState
 public boolean dialogState

Constructors

 o DialogFrame
 public DialogFrame(Object whoFrom,
                    String title,
                    String line1,
                    String line2,
                    String line3,
                    boolean hasCancel)
Constructs the Frame and then adds the Strings and Buttons to it.

Methods

 o setOKLabel
 public void setOKLabel(String newLabel)
Constructs a new "OK" Button with the requested label. Saves new label for testing in action routine.

 o setCancelLabel
 public void setCancelLabel(String newLabel)
Constructs a new "Cancel" Button with the requested label. Saves new label for testing in action routine.

 o show
 public void show()
Adds the buttons (in their final form) to the proper places and shows the Frame.

Overrides:
show in class Window
 o action
 public boolean action(Event evt,
                       Object obj)
Handles the buttons in this Dialog. In both cases, we dispose the dialog to free up resources. We then cast the handle to the Object to be called back to a DialogResult and call the callback routine to pass back the dialog state.

This allows us to send an Object of any kind into this routine, as long as it implements DialogResult (and therefor the proper callback).

Overrides:
action in class Component
 o handleEvent
 public boolean handleEvent(Event e,
                            Object o)
Handles close events for this floating Frame. Insulates the applet window from the window-close event.


All Packages  Class Hierarchy  This Package  Previous  Next  Index