org.bioquery.gui
Class BQFrame

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--org.bioquery.gui.BQFrame
All Implemented Interfaces:
javax.accessibility.Accessible, BQGUI, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class BQFrame
extends javax.swing.JFrame
implements BQGUI

The BQFrame class is the top-level container that holds the GUI, and thus runs the client-side portion of the BioQuery application. It handles the layout, holds the menu and toolbars and detects their events. It contains the references to the views of the GUI, as well as to the controller classes that make network connections and hold system properties.

Author:
James Brundege
See Also:
Serialized Form

Inner classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Inner classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Inner classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
protected  org.bioquery.gui.BQFrame.BQFrameAction aboutBioQuery
           
protected  org.bioquery.gui.BQFrame.BQFrameAction accountOptions
           
protected  org.bioquery.gui.BQFrame.BQFrameAction changePassword
           
protected  org.bioquery.gui.BQFrame.BQFrameAction closeFile
           
protected  org.bioquery.gui.BQFrame.BQFrameAction configureProxyServer
           
protected  org.bioquery.gui.BQFrame.BQFrameAction copy
           
protected  org.bioquery.gui.BQFrame.BQFrameAction copyFile
           
protected  org.bioquery.gui.BQFrame.BQFrameAction createDirectory
           
protected  org.bioquery.gui.BQFrame.BQFrameAction createNewAccount
           
protected  org.bioquery.gui.BQFrame.BQFrameAction cut
           
protected  org.bioquery.gui.BQFrame.BQFrameAction deleteFile
           
protected  org.bioquery.gui.BQFrame.BQFrameAction exit
           
protected  org.bioquery.gui.BQFrame.BQFrameAction feedback
           
protected  org.bioquery.gui.BQFrame.BQFrameAction fileManager
           
protected  org.bioquery.gui.BQFrame.BQFrameAction helpContents
           
protected  org.bioquery.gui.BQFrame.BQFrameAction login
           
protected  org.bioquery.gui.BQFrame.BQFrameAction logout
           
protected  org.bioquery.gui.BQFrame.BQFrameAction moveFile
           
protected  org.bioquery.gui.BQFrame.BQFrameAction newQuery
           
protected  org.bioquery.gui.BQFrame.BQFrameAction openFile
           
protected  org.bioquery.gui.BQFrame.BQFrameAction openLocally
           
protected  org.bioquery.gui.BQFrame.BQFrameAction paste
           
protected  org.bioquery.gui.BQFrame.BQFrameAction print
           
protected  org.bioquery.gui.BQFrame.BQFrameAction redo
           
protected  org.bioquery.gui.BQFrame.BQFrameAction refreshScreen
           
protected  org.bioquery.gui.BQFrame.BQFrameAction renameFile
           
protected  org.bioquery.gui.BQFrame.BQFrameAction saveAsFile
           
protected  org.bioquery.gui.BQFrame.BQFrameAction saveFile
           
protected  org.bioquery.gui.BQFrame.BQFrameAction saveLocally
           
protected  org.bioquery.gui.BQFrame.BQFrameAction undo
           
protected  org.bioquery.gui.BQFrame.BQFrameAction viewTutorial
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
BQFrame()
           
BQFrame(java.lang.String title)
           
 
Method Summary
 void addView(View theView)
           
 void configureProxyServer()
           
 void createNewAccount()
           
 void displayError(java.lang.Exception ex)
           
 void displayError(java.lang.Exception ex, java.lang.String message)
           
 void displayError(java.lang.String message)
           
 void displayFileManager(java.util.List fileList)
           
 void displayMessage(java.lang.String message)
           
 void displayView(java.lang.Object theContent, View receivingView, java.lang.String path, java.lang.String filename)
          Displays theContent in an appropriate View.
 BQFileManager getBQFileManager()
           
 FileManagerView getFileManagerView()
           
 ProgramManager getProgramManager()
           
 QueryManager getQueryManager()
           
 void guestDemo()
           
protected  boolean isLoggedIn()
           
 void login()
           
 void loginFailed()
           
 void loginSucceeded()
           
 void logout()
           
 boolean saveAsFile(View viewToSave)
           
 boolean saveFile(View viewToSave)
           
 boolean saveLocally(View viewToSave)
           
 void setEnabling()
           
 void showHelpDialog(java.lang.String firstPage)
           
 void showWelcomeDialog()
           
protected  void toggleFileManager()
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, remove, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle
 
Methods inherited from class java.awt.Window
addWindowListener, applyResourceBundle, applyResourceBundle, dispose, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isShowing, pack, postEvent, processEvent, removeWindowListener, setCursor, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

newQuery

protected org.bioquery.gui.BQFrame.BQFrameAction newQuery

closeFile

protected org.bioquery.gui.BQFrame.BQFrameAction closeFile

saveFile

protected org.bioquery.gui.BQFrame.BQFrameAction saveFile

saveAsFile

protected org.bioquery.gui.BQFrame.BQFrameAction saveAsFile

openLocally

protected org.bioquery.gui.BQFrame.BQFrameAction openLocally

saveLocally

protected org.bioquery.gui.BQFrame.BQFrameAction saveLocally

print

protected org.bioquery.gui.BQFrame.BQFrameAction print

exit

protected org.bioquery.gui.BQFrame.BQFrameAction exit

openFile

protected org.bioquery.gui.BQFrame.BQFrameAction openFile

createDirectory

protected org.bioquery.gui.BQFrame.BQFrameAction createDirectory

renameFile

protected org.bioquery.gui.BQFrame.BQFrameAction renameFile

copyFile

protected org.bioquery.gui.BQFrame.BQFrameAction copyFile

moveFile

protected org.bioquery.gui.BQFrame.BQFrameAction moveFile

deleteFile

protected org.bioquery.gui.BQFrame.BQFrameAction deleteFile

undo

protected org.bioquery.gui.BQFrame.BQFrameAction undo

redo

protected org.bioquery.gui.BQFrame.BQFrameAction redo

cut

protected org.bioquery.gui.BQFrame.BQFrameAction cut

copy

protected org.bioquery.gui.BQFrame.BQFrameAction copy

paste

protected org.bioquery.gui.BQFrame.BQFrameAction paste

login

protected org.bioquery.gui.BQFrame.BQFrameAction login

accountOptions

protected org.bioquery.gui.BQFrame.BQFrameAction accountOptions

changePassword

protected org.bioquery.gui.BQFrame.BQFrameAction changePassword

createNewAccount

protected org.bioquery.gui.BQFrame.BQFrameAction createNewAccount

configureProxyServer

protected org.bioquery.gui.BQFrame.BQFrameAction configureProxyServer

logout

protected org.bioquery.gui.BQFrame.BQFrameAction logout

fileManager

protected org.bioquery.gui.BQFrame.BQFrameAction fileManager

refreshScreen

protected org.bioquery.gui.BQFrame.BQFrameAction refreshScreen

helpContents

protected org.bioquery.gui.BQFrame.BQFrameAction helpContents

viewTutorial

protected org.bioquery.gui.BQFrame.BQFrameAction viewTutorial

feedback

protected org.bioquery.gui.BQFrame.BQFrameAction feedback

aboutBioQuery

protected org.bioquery.gui.BQFrame.BQFrameAction aboutBioQuery
Constructor Detail

BQFrame

public BQFrame(java.lang.String title)

BQFrame

public BQFrame()
Method Detail

getBQFileManager

public BQFileManager getBQFileManager()

getQueryManager

public QueryManager getQueryManager()

getProgramManager

public ProgramManager getProgramManager()

getFileManagerView

public FileManagerView getFileManagerView()

guestDemo

public void guestDemo()

showHelpDialog

public void showHelpDialog(java.lang.String firstPage)

showWelcomeDialog

public void showWelcomeDialog()

setEnabling

public void setEnabling()

addView

public void addView(View theView)

isLoggedIn

protected boolean isLoggedIn()

toggleFileManager

protected void toggleFileManager()

displayFileManager

public void displayFileManager(java.util.List fileList)
Specified by:
displayFileManager in interface BQGUI

loginSucceeded

public void loginSucceeded()
Specified by:
loginSucceeded in interface BQGUI

loginFailed

public void loginFailed()
Specified by:
loginFailed in interface BQGUI

displayError

public void displayError(java.lang.String message)
Specified by:
displayError in interface BQGUI

displayError

public void displayError(java.lang.Exception ex)
Specified by:
displayError in interface BQGUI

displayError

public void displayError(java.lang.Exception ex,
                         java.lang.String message)
Specified by:
displayError in interface BQGUI

displayMessage

public void displayMessage(java.lang.String message)
Specified by:
displayMessage in interface BQGUI

displayView

public void displayView(java.lang.Object theContent,
                        View receivingView,
                        java.lang.String path,
                        java.lang.String filename)
Displays theContent in an appropriate View. If displayView is given, will simply hand theContent to the view and ask it to display it. If displayView is null, then it will determine the most appropriate View type from the class of theContent.
NOTE: This is a Thread-safe method! This method is safe to call from any Thread. It will run it's contents on the Event-dispatching Thread via SwingUtilities.invokeLater
Specified by:
displayView in interface BQGUI

login

public void login()

logout

public void logout()

createNewAccount

public void createNewAccount()

configureProxyServer

public void configureProxyServer()

saveFile

public boolean saveFile(View viewToSave)

saveAsFile

public boolean saveAsFile(View viewToSave)

saveLocally

public boolean saveLocally(View viewToSave)