sub_arctic.lib
Class interactor_app

java.lang.Object
  |
  +--sub_arctic.lib.interactor_app
Direct Known Subclasses:
FileDialogTest

public class interactor_app
extends java.lang.Object
implements std_constraint_consts

This class right now is basically a placeholder for the top-level object of a stand-alone application. It is intended that later on this class will provide you with many mechanisms for doing fun things on a per-application basis.

For now, please just subclass this object when doing your application development. Stay tuned...


Field Summary
protected  java.lang.String[] _argv
          Arguments from the command line.
 
Constructor Summary
interactor_app(java.lang.String[] argv)
          Construct an interactor app given an array of strings, presumably those passed in from the command line.
 
Method Summary
 void app_initialize()
          Initialize your applications data structures here.
 java.lang.String[] command_line_arguments()
          Access the command line arguments.
 void frame_initialize()
          Initialize your applications frames here.
 boolean initialize()
          This is the function you should call to begin your application.
 boolean parse_arguments(java.lang.String[] argv)
          Parse the command line arguments supplied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_argv

protected java.lang.String[] _argv
Arguments from the command line.
Constructor Detail

interactor_app

public interactor_app(java.lang.String[] argv)
Construct an interactor app given an array of strings, presumably those passed in from the command line.
Parameters:
String[] - argv the array of arguments passed from the operating system.
Method Detail

command_line_arguments

public java.lang.String[] command_line_arguments()
Access the command line arguments.
Returns:
String[] the arguments from the user on the command line

parse_arguments

public boolean parse_arguments(java.lang.String[] argv)
Parse the command line arguments supplied. In a future version, this may contain automatic (table driven?) mechanisms for parsing arguments and extracting values. Right now this does nothing but return true.
Parameters:
String[] - argv an array of arguments to parse
Returns:
boolean return true if the arguments supplied result in a safe state for the application to proceed, return false if not.

initialize

public boolean initialize()
This is the function you should call to begin your application. It performs various toolkit and application level initialization and then performs the following sequence of calls:
parse_arguments() (
Parse the arguments supplied. If this call returns false, the following stages are skipped)
app_initialize()
Initialize your data structures here, assuming command line arguments parsed ok
frame_initialize()
Perform creation of your applications frame(s) here
Returns:
boolean returns true if the application's command line arguments are reasonable, false otherwise

app_initialize

public void app_initialize()
Initialize your applications data structures here. You can assume that the command line arguments have already been processed and were parsed successfully.

frame_initialize

public void frame_initialize()
Initialize your applications frames here. You can assume that the command line arguments have already been processed and were parsed successfully.