edu.upenn.gloDB.gui
Class Root
java.lang.Object
edu.upenn.gloDB.gui.Root
public class Root
- extends java.lang.Object
Base window for GUI.
- Version:
- $Id: Root.java,v 1.35.2.28 2007/03/01 21:17:33 fisher Exp $
Field Summary |
static javax.swing.JTextArea |
history
This will contain all commands that the GUI generates and sends
to the console to be run. |
static javax.swing.JTextArea |
messages
This will contain all error and warning messages. |
private static Root.RootFrame |
rootFrame
|
static boolean |
showMessages
Flag whether to display messages in the 'messages' panel. |
static javax.swing.JLabel |
statusBar
|
Constructor Summary |
Root()
|
Method Summary |
static void |
runCommand(java.lang.String msg,
boolean toConsole)
This will add the String to the history and if 'toConsole',
then run the command through the console. |
static javax.swing.JFrame |
show()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rootFrame
private static Root.RootFrame rootFrame
messages
public static javax.swing.JTextArea messages
- This will contain all error and warning messages. This output
panel can be disabled by setting the 'showMessages' flag to
false. When disabled, all messages printed will be displayed
in the console.
showMessages
public static boolean showMessages
- Flag whether to display messages in the 'messages' panel. If
false, then print the messages in the console. If true, then
messages will only go to the messages panel and not the console.
history
public static javax.swing.JTextArea history
- This will contain all commands that the GUI generates and sends
to the console to be run. The text in this panel can be copied
and pasted into a python file to run directly in the console.
statusBar
public static javax.swing.JLabel statusBar
Root
public Root()
show
public static javax.swing.JFrame show()
runCommand
public static void runCommand(java.lang.String msg,
boolean toConsole)
- This will add the String to the history and if 'toConsole',
then run the command through the console.
Copyright 2012 Stephen Fisher and Junhyong Kim, University of Pennsylvania. All Rights Reserved.