|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.williams.cs.ljil.finitizer.ui.FSPBuilderUI
public class FSPBuilderUI
Main class for the FSP builder UI. A Singleton.
| Field Summary | |
|---|---|
protected FSPBuilder |
fspbLogic
FSP Builder State |
static FSPBuilderUI |
instance
|
protected javax.swing.JProgressBar |
progressBar
|
protected javax.swing.JFrame |
rootFrame
|
protected javax.swing.JSplitPane |
splitPane
UI elements we want to keep track of |
protected javax.swing.JLabel |
statusBar
|
protected FSPBuilderToolbar |
toolbar
|
static java.lang.String |
VERSION
|
| Method Summary | |
|---|---|
java.lang.Object |
chooseFromList(java.lang.String prompt,
java.lang.Object[] choices)
Display a list of choices and allow the user to select one. |
void |
doBuildFSP()
Invoke fsp generator |
void |
doOpen()
Run an open dialog and open a file. |
void |
doSave()
|
static FSPBuilderUI |
getInstance()
Get the instance of this singleton class. |
java.net.URL |
getResourceURL(java.lang.String filename)
Return the URL for a resource within this program. |
boolean |
isLoaded()
Test whether a file is currently loaded. |
static void |
main(java.lang.String[] args)
Initialize the UI. |
protected void |
openFile(java.io.File file)
Open a file. |
protected void |
reportException(java.lang.String title,
java.lang.String message,
java.lang.Exception detail)
Display a warning box to report an exception to the user. |
protected void |
showDefaultCursor()
Displays the normal cursor that the user sees when the program is waiting for the user. |
protected void |
showWaitCursor()
Displays a busy cursor. |
void |
statusMessage(java.lang.String s)
Set a message in the status bar. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final javax.swing.JSplitPane splitPane
protected final javax.swing.JLabel statusBar
protected final javax.swing.JFrame rootFrame
protected final FSPBuilderToolbar toolbar
protected final javax.swing.JProgressBar progressBar
protected FSPBuilder fspbLogic
public static final java.lang.String VERSION
public static FSPBuilderUI instance
| Method Detail |
|---|
public static FSPBuilderUI getInstance()
public boolean isLoaded()
public void statusMessage(java.lang.String s)
s - the message to display. It should not be null.
protected void reportException(java.lang.String title,
java.lang.String message,
java.lang.Exception detail)
title - The title appearing in the warning box. It should not be null.message - The message identifying the error. It should not be null.detail - The exception that was thrown. The exception should have a toString method that prints a
message that will be sensible to the user. It should not be null.public void doBuildFSP()
public void doOpen()
protected void openFile(java.io.File file)
file - The name of the file to openprotected void showWaitCursor()
protected void showDefaultCursor()
public static void main(java.lang.String[] args)
public java.lang.Object chooseFromList(java.lang.String prompt,
java.lang.Object[] choices)
chooseFromList in interface InteractiveFrontendprompt - The message to display in the dialog box.choices - The list of choices that the user can select from. If null, the user can enter any value. The
first value in the array is treated as the default value.
fspbuilder.InteractiveFrontend#chooseFromList(java.lang.String, java.util.Vector)public java.net.URL getResourceURL(java.lang.String filename)
filename - - the filename of the desired resource. This should not include a path.
public void doSave()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||