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.
-
dialogState
-
-
DialogFrame(Object, String, String, String, String, boolean)
- Constructs the Frame and then adds the Strings and Buttons to it.
-
action(Event, Object)
- Handles the buttons in this Dialog.
-
handleEvent(Event, Object)
- Handles close events for this floating Frame.
-
setCancelLabel(String)
- Constructs a new "Cancel" Button with the requested label.
-
setOKLabel(String)
- Constructs a new "OK" Button with the requested label.
-
show()
- Adds the buttons (in their final form) to the proper places and
shows the Frame.
dialogState
public boolean dialogState
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.
setOKLabel
public void setOKLabel(String newLabel)
- Constructs a new "OK" Button with the requested label.
Saves new label for testing in action routine.
setCancelLabel
public void setCancelLabel(String newLabel)
- Constructs a new "Cancel" Button with the requested label.
Saves new label for testing in action routine.
show
public void show()
- Adds the buttons (in their final form) to the proper places and
shows the Frame.
- Overrides:
- show in class Window
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
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