net.quartzware
Class RBEdit

java.lang.Object
  |
  +--net.quartzware.RBEdit

public class RBEdit
extends java.lang.Object

Main module for the RBEdit application.


Method Summary
 MainWindow getMainWindow()
          Returns the Window class which draws this RBEdit.
 Project getProject()
          Returns the Project class that contains the project file and options for the current session of RBEdit.
static RBEdit getRBEdit()
          Allows any class in the RBEdit application to get instant access to the Main module by calling 'RBEdit.getApp()'.
static void main(java.lang.String[] args)
          Java calls this static function to start the program.
 void newKey()
          Called when the user wants to add a new key PRE: none POST: new key may be added to the root
 void showNewKeyDlg()
          Displays a dialog to let the user enter options about a new key, then it creates the new key and adds it to all ResBundles in the project.
 boolean showNewProjectDlg()
          Displays a dialog to let the user enter options about a new project, then it creates the new project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
Java calls this static function to start the program. After it is called, it creates an instance of this class.
Parameters:
args - command line arguments, if any. PRE: none POST: a new RBEdit is created

getProject

public Project getProject()
Returns the Project class that contains the project file and options for the current session of RBEdit.
Returns:
The Project.

getMainWindow

public MainWindow getMainWindow()
Returns the Window class which draws this RBEdit.
Returns:
The MainWindow.

getRBEdit

public static RBEdit getRBEdit()
Allows any class in the RBEdit application to get instant access to the Main module by calling 'RBEdit.getApp()'.
Returns:
The MainWindow which draws this RBEdit.

showNewProjectDlg

public boolean showNewProjectDlg()
Displays a dialog to let the user enter options about a new project, then it creates the new project.
Returns:
true if we are importing an existing root. false if we are starting from scratch. PRE: none POST: returns whether we are using an existing root.

newKey

public void newKey()
Called when the user wants to add a new key PRE: none POST: new key may be added to the root

showNewKeyDlg

public void showNewKeyDlg()
Displays a dialog to let the user enter options about a new key, then it creates the new key and adds it to all ResBundles in the project. PRE: none POST: new key may be added to the root