All Packages Class Hierarchy This Package Previous Next Index
Class IMSWG.IW.Modelet
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----IMSWG.IW.Modelet
- public abstract class Modelet
- extends Frame
This class provides a framework for applets to be run under the
EOSDIS IMS V0 Web Gateway. It provides basic mechanisms for accessing
CGI parameters, building the exit URL, and handling the following
user interface items:
- the "OK" button
- the "Cancel" button
- the "jump menu" pop-up menu
- the status area
Subclasses of this class will have to use a go() routine rather than
the standard applet init() routine. This is necessary because we must
ensure that the necessary initialization of Modelet occurs before any
subclass of Modelet receives control.
-
messageDialog
- The Message Dialog.
-
messageLabel
- The message dialog label.
-
messagePanel
- The message dialog panel.
-
modeletCancelButton
- The "Cancel" Button.
-
modeletChoice
- The actual Choice (pop-up) to be added to the user interface by classes
inheriting from Modelet.
-
modeletOKButton
- The "OK" Button.
-
modeletStatusArea
- The StatusArea text area.
-
modifyParameters
- A copy of the original parameters that may be modified during processing
by subclasses of Modelet.
-
myJumpMenu
- Holds the 'command-and-control" info for the jump menu.
-
originalParameters
- Original version of the parsed parameters.
-
Modelet(Applet)
- This method creates the basic Modelet interface objects.
-
action(Event, Object)
- This action routine handles all user interface events for the
"OK" and "Cancel" buttons, calling the appropriate method depending
on which one was clicked.
-
buildBaseInterface()
-
-
cleanUp()
- Dummy routine to be overridden in any subclass of Modelet.
-
clearAwayFrame()
-
-
frameTitle(String)
-
-
go()
- Dummy routine to be overridden in any subclass of Modelet.
-
goAway(Parameters)
- This method accepts a set of parameters, determines where the Web
Gateway should go after finishing this transaction, saves this in
the information to be passed to the servlet, sends the info, and then
builds the proper URL to force ModeApplet to be invoked.
-
goAwayCancel()
- This method invokes the goAway method with the parameters
that were originally provided with the applet.
-
goAwayOK()
- This method invokes the goAway method with the parameters
as modified by the user during this interaction with the Modelet.
-
letItGo(boolean)
- This method restores the cursor to the default cursor and enables the frame.
-
loadMode(Parameters)
- This method builds the necessary URL to get back in contact with the
Web gateway and jumps to it.
-
loadMode(String, String, String)
-
-
loadMode(String, String, String, String)
- This method builds the necessary URL to get back in contact with the
Web gateway and pops up a new browser window using target name.
-
loadModePUKE(String, String, String, String, String)
-
-
lockItUp(String, boolean)
- This method changes the cursor to a wait cursor and disables the frame.
-
post(Parameters, String)
- Do a post request
-
reinit()
- Abstract method which must be overriden by a child of Modelet.
-
run()
- Abstract method to be overridden in any subclass of Modelet.
-
setTargetMode(String)
- Sets the mode to which ModeAPPLET should dispatch after control is
returned to the Web Gateway.
-
start()
- Dummy routine to be overridden in any subclass of Modelet.
myJumpMenu
public JumpMenu myJumpMenu
- Holds the 'command-and-control" info for the jump menu. Not initialized
statically because we don't know what to put in it until we have read
the parameters.
modeletChoice
public Choice modeletChoice
- The actual Choice (pop-up) to be added to the user interface by classes
inheriting from Modelet. Accessible as this.modeletChoice in subclasses.
modeletOKButton
public Button modeletOKButton
- The "OK" Button. Accessible as this.modeletOKButton in subclasses.
modeletCancelButton
public Button modeletCancelButton
- The "Cancel" Button. Accessible as this.modeletCancelButton in subclasses.
originalParameters
public Parameters originalParameters
- Original version of the parsed parameters. Should not be modified.
modifyParameters
public Parameters modifyParameters
- A copy of the original parameters that may be modified during processing
by subclasses of Modelet. Accessible as this.modifyParameters.
modeletStatusArea
public StatusArea modeletStatusArea
- The StatusArea text area. Accessible as this.modeletStatusArea in
subclasses.
messageDialog
public Dialog messageDialog
- The Message Dialog. Used to inform users when the frame is locked up.
Accessible as this.messageDialog in
subclasses.
messageLabel
public Label messageLabel
- The message dialog label. Used when frame is locked up as an
explanatory message.
Accessible as this.messageLabel in subclasses.
messagePanel
public Panel messagePanel
- The message dialog panel. Used when frame is locked up as panel for
explanatory message.
Accessible as this.messagePanel in subclasses.
Modelet
public Modelet(Applet passedApplet)
- This method creates the basic Modelet interface objects. It parses the
parameters, creating a Parameter object, and builds (but does not
display) the user interface items it is responsible for. It
must be called before any subclass can start using
these items.
go
public void go()
- Dummy routine to be overridden in any subclass of Modelet. This method
is used in the same manner as the init() method would be used in a
standard Applet.
- See Also:
- init
start
public void start()
- Dummy routine to be overridden in any subclass of Modelet. This method
is used in the same manner as the start() method would be used in a
standard Applet.
All child classes of Modelet are now required to have a
start() method which makes sure the applet is put into a consistent
state if the browser back button is used.
- See Also:
- start
cleanUp
public void cleanUp()
- Dummy routine to be overridden in any subclass of Modelet. This method
is used to close/stop/cleanup any windows/processes that are running
that should be stopped prior to the Frame being closed
buildBaseInterface
public void buildBaseInterface()
run
public void run()
- Abstract method to be overridden in any subclass of Modelet. This method
is used in the same manner as the init() method would be used in a
standard Applet.
- See Also:
- init
reinit
public void reinit()
- Abstract method which must be overriden by a child of Modelet.
This gets called by StartMapplet's (should be StartModelet) start()
method, anytime a Modelet applet is restarted.
action
public boolean action(Event e,
Object o)
- This action routine handles all user interface events for the
"OK" and "Cancel" buttons, calling the appropriate method depending
on which one was clicked.
- Overrides:
- action in class Component
post
public void post(Parameters theParameters,
String postString)
- Do a post request
goAway
public void goAway(Parameters theParameters)
- This method accepts a set of parameters, determines where the Web
Gateway should go after finishing this transaction, saves this in
the information to be passed to the servlet, sends the info, and then
builds the proper URL to force ModeApplet to be invoked.
goAwayOK
public void goAwayOK()
- This method invokes the goAway method with the parameters
as modified by the user during this interaction with the Modelet.
This method may be overridden to provide additional functionality
when the OK button is clicked.
- See Also:
- goAway
goAwayCancel
public void goAwayCancel()
- This method invokes the goAway method with the parameters
that were originally provided with the applet. This method may be
overridden to provide additional functionality when the Cancel
button is clicked.
- See Also:
- goAway
setTargetMode
public void setTargetMode(String newMode)
- Sets the mode to which ModeAPPLET should dispatch after control is
returned to the Web Gateway. Note that this is "mode", and not
"p.mode". Mode::switch expects "mode".
loadMode
public void loadMode(String mode,
String submode,
String moreParams)
loadMode
public void loadMode(Parameters theParameters)
- This method builds the necessary URL to get back in contact with the
Web gateway and jumps to it.
loadMode
public void loadMode(String mode,
String submode,
String moreParams,
String target)
- This method builds the necessary URL to get back in contact with the
Web gateway and pops up a new browser window using target name.
mode is the mode to go to.
submode is the submode to go to.
moreParams is a string of extra param tags. Each param tag should have
¶mName="value".
target is the name of the new browser window.
Note: This does not do a "clearAwayFrame".
loadModePUKE
public void loadModePUKE(String errNumber,
String errMessage,
String httpdHost,
String scriptName,
String sid)
clearAwayFrame
public void clearAwayFrame()
frameTitle
public void frameTitle(String title)
lockItUp
public void lockItUp(String dialogMessage,
boolean showIt)
- This method changes the cursor to a wait cursor and disables the frame.
letItGo
public void letItGo(boolean hideIt)
- This method restores the cursor to the default cursor and enables the frame.
All Packages Class Hierarchy This Package Previous Next Index