All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class IMSWG.IW.Mapplet.Mapplet

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----IMSWG.IW.Modelet
                                           |
                                           +----IMSWG.IW.Mapplet.Mapplet

public class Mapplet
extends Modelet
implements DialogResult
Main map-selection applet. Uses Modelet to talk to the Web gateway; uses DialogResult to provide a callback hook for an OKDialog used to verify the action if the user clears an existing selection.

See Also:
DialogResult, Modelet

Constructor Index

 o Mapplet(Applet)
This method creates the user interface items to be placed on the screen and actually starts up the applet.

Method Index

 o action(Event, Object)
action method for menu bar events, ok and cancel button events
 o cleanUp()
Dummy routine to be overridden in any subclass of Modelet.
 o go()
Dummy routine to be overridden in any subclass of Modelet.
 o goAway(Parameters)
Overrides default Modelet goAway.
 o goAwayCancel()
Overrides default Modelet "Cancel" button processing.
 o goAwayOK()
Overrides default Modelet "OK" button processing.
 o processResult(DialogFrame, boolean)
See DialogResult callback routine .
 o reinit()
Overrides the abstract method in Modelet Gets called whenever the applet gets restarted.
 o showHelp()
Popup a help page in the browser when the Help Menu Item is clicked.
 o start()
Dummy routine to be overridden in any subclass of Modelet.

Constructors

 o Mapplet
 public Mapplet(Applet theStartUp)
This method creates the user interface items to be placed on the screen and actually starts up the applet.

Methods

 o start
 public void start()
Dummy routine to be overridden in any subclass of Modelet.

Overrides:
start in class Modelet
 o reinit
 public void reinit()
Overrides the abstract method in Modelet Gets called whenever the applet gets restarted. The mapplet directs the browser to reload the cgi containing the mapplet so that the current session state is initialize in a new mapplet.

Overrides:
reinit in class Modelet
See Also:
Modelet, reinit
 o go
 public void go()
Dummy routine to be overridden in any subclass of Modelet.

Overrides:
go in class Modelet
 o cleanUp
 public void cleanUp()
Dummy routine to be overridden in any subclass of Modelet.

Overrides:
cleanUp in class Modelet
 o goAwayOK
 public void goAwayOK()
Overrides default Modelet "OK" button processing. If there is no selection in the modified parameters, we check the original ones to see if there was when we got control (i.e., the user has hit "Clear", then "OK", without making a new selection. We put up a dialog box and ask if this is OK. If so, we set the submode to DELETECAT and then exit to ModeApplet. Otherwise, we simply exit, returning control to the Mapplet.

Overrides:
goAwayOK in class Modelet
 o goAwayCancel
 public void goAwayCancel()
Overrides default Modelet "Cancel" button processing. Kills the display options window (if it is open), and then uses Modelet's goAwayCancel.

Overrides:
goAwayCancel in class Modelet
 o goAway
 public void goAway(Parameters modifyParameters)
Overrides default Modelet goAway.

Overrides:
goAway in class Modelet
 o processResult
 public void processResult(DialogFrame d,
                           boolean which)
See DialogResult callback routine . The @see DialogFrame class calls this routine in its @see DialogFrame#action routine. We save the status of the Dialog processing, send the dialog away, and then decide what to do.

If the user cancelled the deletion, we simply return to main-line applet processing. If the user accepted the deletion, we set the submode to DELETECAT and invoke the @see Modelet.goAway method to exit the applet.

See Also:
DialogResult, DialogFrame
 o showHelp
 public void showHelp()
Popup a help page in the browser when the Help Menu Item is clicked.

 o action
 public boolean action(Event e,
                       Object o)
action method for menu bar events, ok and cancel button events

Overrides:
action in class Modelet

All Packages  Class Hierarchy  This Package  Previous  Next  Index