org.jsqltool.gui
Class MainFrame

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

public class MainFrame
extends javax.swing.JFrame

Title: JSqlTool Project

Description: This is the main frame.

Copyright: Copyright (C) 2006 Mauro Carniel

This file is part of JSqlTool project. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it

See Also:
Serialized Form

Field Summary
(package private)  java.awt.BorderLayout borderLayout1
           
(package private)  javax.swing.JMenuItem closeAllMenuItem
           
(package private)  javax.swing.JButton commitButton
           
(package private)  javax.swing.ImageIcon commitImage
           
(package private)  javax.swing.JMenuItem commitMenuItem
           
(package private)  ConnWindows connWindowManager
           
(package private)  javax.swing.JPanel contentPane
           
(package private)  javax.swing.JMenuItem currSqlMenuItem
           
(package private)  javax.swing.JMenu dbMenu
           
(package private)  javax.swing.JMenuItem dbSchemaMenuItem
           
(package private)  javax.swing.JDesktopPane desktop
           
(package private)  javax.swing.JMenuItem explainPlanMenuItem
           
(package private)  java.awt.FlowLayout flowLayout1
           
(package private)  javax.swing.JMenuItem importSQLMenuItem
           
(package private)  javax.swing.JButton listaButton
           
(package private)  javax.swing.ImageIcon listaImage
           
(package private)  javax.swing.JMenuBar menuBar
           
(package private)  javax.swing.JMenu menuFile
           
(package private)  javax.swing.JMenuItem menuFileEndAllItem
           
(package private)  javax.swing.JMenuItem menuFileEndItem
           
(package private)  javax.swing.JMenuItem menuFileExit
           
(package private)  javax.swing.JMenuItem menuFileNewConn
           
(package private)  javax.swing.JMenuItem menuFileRep
           
(package private)  javax.swing.JMenu menuHelp
           
(package private)  javax.swing.JMenuItem menuHelpAbout
           
(package private)  javax.swing.JMenuItem optionsMenuItem
           
(package private)  javax.swing.JButton queryButton
           
(package private)  javax.swing.ImageIcon queryImage
           
(package private)  javax.swing.JMenuItem recallListMenuItem
           
(package private)  javax.swing.JButton rollbackButton
           
(package private)  javax.swing.ImageIcon rollbackImage
           
(package private)  javax.swing.JMenuItem rollbackMenuItem
           
(package private)  javax.swing.JMenuItem schemaBrowserMenuItem
           
(package private)  javax.swing.JButton schemaButton
           
(package private)  javax.swing.ImageIcon schemaImage
           
(package private)  javax.swing.JMenuItem sqlEditorMenuItem
           
(package private)  javax.swing.JMenu sqlMenu
           
(package private)  javax.swing.JPanel statusBar
           
(package private)  javax.swing.JToolBar toolbar
           
(package private)  javax.swing.JMenuItem traceMenuItem
           
(package private)  javax.swing.JMenu viewMenu
           
(package private)  javax.swing.JMenu winMenu
           
 
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, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, 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.Window
 
Fields inherited from class java.awt.Container
 
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
MainFrame()
          Construct the frame.
 
Method Summary
(package private)  void closeAllMenuItem_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void commitButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void commitMenuItem_actionPerformed(java.awt.event.ActionEvent e)
           
 void createSchemaFrame(DbConnectionUtil dbConnUtil)
           
 void createSQLFrame(DbConnectionUtil dbConnUtil)
           
 void createTableListFrame(DbConnectionUtil dbConnUtil)
           
(package private)  void currSqlMenuItem_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void dbSchemaMenuItem_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void explainPlanMenuItem_actionPerformed(java.awt.event.ActionEvent e)
           
static MainFrame getInstance()
           
(package private)  void importSQLMenuItem_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void listaButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void menuFileEndAllItem_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void menuFileEndItem_actionPerformed(java.awt.event.ActionEvent e)
           
 void menuFileExit_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void menuFileNewConn_actionPerformed(java.awt.event.ActionEvent e)
           
 void menuFileRep_actionPerformed(java.awt.event.ActionEvent e)
           
 void menuHelpAbout_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void optionsMenuItem_actionPerformed(java.awt.event.ActionEvent e)
           
protected  void processWindowEvent(java.awt.event.WindowEvent e)
           
(package private)  void queryButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void recallListMenuItem_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void rollbackButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void rollbackMenuItem_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void schemaBrowserMenuItem_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void schemaButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void sqlEditorMenuItem_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void traceMenuItem_actionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
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

contentPane

javax.swing.JPanel contentPane

menuBar

javax.swing.JMenuBar menuBar

menuFile

javax.swing.JMenu menuFile

menuFileExit

javax.swing.JMenuItem menuFileExit

menuHelp

javax.swing.JMenu menuHelp

menuHelpAbout

javax.swing.JMenuItem menuHelpAbout

toolbar

javax.swing.JToolBar toolbar

queryButton

javax.swing.JButton queryButton

listaButton

javax.swing.JButton listaButton

schemaButton

javax.swing.JButton schemaButton

commitButton

javax.swing.JButton commitButton

rollbackButton

javax.swing.JButton rollbackButton

queryImage

javax.swing.ImageIcon queryImage

listaImage

javax.swing.ImageIcon listaImage

schemaImage

javax.swing.ImageIcon schemaImage

commitImage

javax.swing.ImageIcon commitImage

rollbackImage

javax.swing.ImageIcon rollbackImage

statusBar

javax.swing.JPanel statusBar

borderLayout1

java.awt.BorderLayout borderLayout1

menuFileNewConn

javax.swing.JMenuItem menuFileNewConn

desktop

javax.swing.JDesktopPane desktop

menuFileEndItem

javax.swing.JMenuItem menuFileEndItem

menuFileEndAllItem

javax.swing.JMenuItem menuFileEndAllItem

connWindowManager

ConnWindows connWindowManager

viewMenu

javax.swing.JMenu viewMenu

sqlMenu

javax.swing.JMenu sqlMenu

dbMenu

javax.swing.JMenu dbMenu

winMenu

javax.swing.JMenu winMenu

currSqlMenuItem

javax.swing.JMenuItem currSqlMenuItem

recallListMenuItem

javax.swing.JMenuItem recallListMenuItem

explainPlanMenuItem

javax.swing.JMenuItem explainPlanMenuItem

importSQLMenuItem

javax.swing.JMenuItem importSQLMenuItem

schemaBrowserMenuItem

javax.swing.JMenuItem schemaBrowserMenuItem

dbSchemaMenuItem

javax.swing.JMenuItem dbSchemaMenuItem

sqlEditorMenuItem

javax.swing.JMenuItem sqlEditorMenuItem

commitMenuItem

javax.swing.JMenuItem commitMenuItem

rollbackMenuItem

javax.swing.JMenuItem rollbackMenuItem

optionsMenuItem

javax.swing.JMenuItem optionsMenuItem

closeAllMenuItem

javax.swing.JMenuItem closeAllMenuItem

traceMenuItem

javax.swing.JMenuItem traceMenuItem

menuFileRep

javax.swing.JMenuItem menuFileRep

flowLayout1

java.awt.FlowLayout flowLayout1
Constructor Detail

MainFrame

public MainFrame()
Construct the frame.

Method Detail

getInstance

public static MainFrame getInstance()
Returns:
instance of the class

menuFileExit_actionPerformed

public void menuFileExit_actionPerformed(java.awt.event.ActionEvent e)

menuFileRep_actionPerformed

public void menuFileRep_actionPerformed(java.awt.event.ActionEvent e)

menuHelpAbout_actionPerformed

public void menuHelpAbout_actionPerformed(java.awt.event.ActionEvent e)

processWindowEvent

protected void processWindowEvent(java.awt.event.WindowEvent e)
Overrides:
processWindowEvent in class javax.swing.JFrame

createTableListFrame

public void createTableListFrame(DbConnectionUtil dbConnUtil)

createSchemaFrame

public void createSchemaFrame(DbConnectionUtil dbConnUtil)

createSQLFrame

public void createSQLFrame(DbConnectionUtil dbConnUtil)

menuFileNewConn_actionPerformed

void menuFileNewConn_actionPerformed(java.awt.event.ActionEvent e)

menuFileEndAllItem_actionPerformed

void menuFileEndAllItem_actionPerformed(java.awt.event.ActionEvent e)

menuFileEndItem_actionPerformed

void menuFileEndItem_actionPerformed(java.awt.event.ActionEvent e)

queryButton_actionPerformed

void queryButton_actionPerformed(java.awt.event.ActionEvent e)

listaButton_actionPerformed

void listaButton_actionPerformed(java.awt.event.ActionEvent e)

schemaButton_actionPerformed

void schemaButton_actionPerformed(java.awt.event.ActionEvent e)

commitButton_actionPerformed

void commitButton_actionPerformed(java.awt.event.ActionEvent e)

rollbackButton_actionPerformed

void rollbackButton_actionPerformed(java.awt.event.ActionEvent e)

optionsMenuItem_actionPerformed

void optionsMenuItem_actionPerformed(java.awt.event.ActionEvent e)

commitMenuItem_actionPerformed

void commitMenuItem_actionPerformed(java.awt.event.ActionEvent e)

rollbackMenuItem_actionPerformed

void rollbackMenuItem_actionPerformed(java.awt.event.ActionEvent e)

sqlEditorMenuItem_actionPerformed

void sqlEditorMenuItem_actionPerformed(java.awt.event.ActionEvent e)

schemaBrowserMenuItem_actionPerformed

void schemaBrowserMenuItem_actionPerformed(java.awt.event.ActionEvent e)

dbSchemaMenuItem_actionPerformed

void dbSchemaMenuItem_actionPerformed(java.awt.event.ActionEvent e)

closeAllMenuItem_actionPerformed

void closeAllMenuItem_actionPerformed(java.awt.event.ActionEvent e)

currSqlMenuItem_actionPerformed

void currSqlMenuItem_actionPerformed(java.awt.event.ActionEvent e)

explainPlanMenuItem_actionPerformed

void explainPlanMenuItem_actionPerformed(java.awt.event.ActionEvent e)

importSQLMenuItem_actionPerformed

void importSQLMenuItem_actionPerformed(java.awt.event.ActionEvent e)

recallListMenuItem_actionPerformed

void recallListMenuItem_actionPerformed(java.awt.event.ActionEvent e)

traceMenuItem_actionPerformed

void traceMenuItem_actionPerformed(java.awt.event.ActionEvent e)