org.jsqltool.gui
Class SchemaFrame

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JInternalFrame
                          |
                          +--org.jsqltool.gui.SchemaFrame
All Implemented Interfaces:
javax.accessibility.Accessible, DbConnWindow, java.awt.dnd.DragSourceListener, java.awt.dnd.DropTargetListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class SchemaFrame
extends javax.swing.JInternalFrame
implements DbConnWindow, java.awt.dnd.DragSourceListener, java.awt.dnd.DropTargetListener

Title: JSqlTool Project

Description: Window used to view in a schema a set of tables/views/synonyms (with related foreign key relations).

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

Nested Class Summary
(package private)  class SchemaFrame.DragGestureAdapter
          DRAG MANAGEMENT
(package private)  class SchemaFrame.SynFilterController
          Description: Inner class which manages filter events on synonyms.
(package private)  class SchemaFrame.TableFilterController
          Description: Inner class which manages filter events on tables.
(package private)  class SchemaFrame.ViewFilterController
          Description: Inner class which manages filter events on views.
 
Field Summary
(package private)  java.awt.BorderLayout borderLayout1
           
(package private)  java.awt.BorderLayout borderLayout2
           
(package private)  java.awt.BorderLayout borderLayout3
           
(package private)  java.awt.BorderLayout borderLayout4
           
(package private)  java.awt.BorderLayout borderLayout5
           
(package private)  java.awt.BorderLayout borderLayout6
           
(package private)  javax.swing.JComboBox catComboBox
           
(package private)  javax.swing.JLabel catLabel
           
(package private)  javax.swing.JPanel catPanel
           
(package private)  javax.swing.JButton expButton
           
(package private)  javax.swing.ImageIcon expImage
           
(package private)  java.awt.FlowLayout flowLayout1
           
(package private)  java.awt.GridBagLayout gridBagLayout1
           
(package private)  javax.swing.JButton loadButton
           
(package private)  javax.swing.ImageIcon loadImage
           
(package private)  javax.swing.JPanel mainPanel
           
(package private)  javax.swing.JButton printButton
           
(package private)  javax.swing.JButton printFitButton
           
(package private)  javax.swing.ImageIcon printFitImage
           
(package private)  javax.swing.ImageIcon printImage
           
(package private)  javax.swing.JButton saveButton
           
(package private)  javax.swing.ImageIcon saveImage
           
(package private)  javax.swing.JPanel schemaPanel
           
(package private)  javax.swing.JScrollPane schemaScrollPane
           
(package private)  javax.swing.JList sinList
           
(package private)  javax.swing.JScrollPane sinScrollPane
           
(package private)  javax.swing.JSplitPane splitPane
           
(package private)  javax.swing.JPanel synPanel
           
(package private)  javax.swing.JPanel tablePanel
           
(package private)  javax.swing.JScrollPane tableScrollPane
           
(package private)  javax.swing.JList tablesList
           
(package private)  javax.swing.JPanel tablesPanel
           
(package private)  javax.swing.JTabbedPane tableTabbedPane
           
(package private)  javax.swing.JPanel toolbarPanel
           
(package private)  javax.swing.JList viewList
           
(package private)  javax.swing.JPanel viewPanel
           
(package private)  javax.swing.JScrollPane viewScrollPane
           
(package private)  javax.swing.JComboBox zoomComboBox
           
 
Fields inherited from class javax.swing.JInternalFrame
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_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, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SchemaFrame()
           
SchemaFrame(MainFrame parent, DbConnectionUtil dbConnUtil)
           
 
Method Summary
(package private)  void catComboBox_itemStateChanged(java.awt.event.ItemEvent e)
           
 void dragDropEnd(java.awt.dnd.DragSourceDropEvent event)
          This message goes to DragSourceListener, informing it that the dragging has ended.
 void dragEnter(java.awt.dnd.DragSourceDragEvent event)
          This message goes to DragSourceListener, informing it that the dragging has entered the DropSite
 void dragEnter(java.awt.dnd.DropTargetDragEvent event)
          This method is invoked when you are dragging over the DropSite.
 void dragExit(java.awt.dnd.DragSourceEvent event)
          This message goes to DragSourceListener, informing it that the dragging has exited the DropSite.
 void dragExit(java.awt.dnd.DropTargetEvent event)
          This method is invoked when you are exit the DropSite without dropping.
 void dragOver(java.awt.dnd.DragSourceDragEvent event)
          This message goes to DragSourceListener, informing it that the dragging is currently ocurring over the DropSite.
 void dragOver(java.awt.dnd.DropTargetDragEvent event)
          This method is invoked when a drag operation is going on.
 void drop(java.awt.dnd.DropTargetDropEvent event)
          This method is invoked when a drop event has occurred.
 void dropActionChanged(java.awt.dnd.DragSourceDragEvent event)
          This method is invoked when the user changes the dropAction.
 void dropActionChanged(java.awt.dnd.DropTargetDragEvent event)
          This method is invoked if the use modifies the current drop gesture.
(package private)  void expButton_actionPerformed(java.awt.event.ActionEvent e)
           
 DbConnectionUtil getDbConnectionUtil()
           
(package private)  void loadButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void loadProfile(java.lang.String fileName)
          Method called by LoadFileDialog class: load the specified profile file.
(package private)  void printButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void printFitButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void saveButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void updateLists()
           
(package private)  void zoomComboBox_itemStateChanged(java.awt.event.ItemEvent e)
           
 
Methods inherited from class javax.swing.JInternalFrame
addImpl, addInternalFrameListener, createRootPane, dispose, doDefaultCloseAction, fireInternalFrameEvent, getAccessibleContext, getContentPane, getDefaultCloseOperation, getDesktopIcon, getDesktopPane, getFocusCycleRootAncestor, getFocusOwner, getFrameIcon, getGlassPane, getInternalFrameListeners, getJMenuBar, getLayer, getLayeredPane, getMenuBar, getMostRecentFocusOwner, getNormalBounds, getRootPane, getTitle, getUI, getUIClassID, getWarningString, hide, isClosable, isClosed, isFocusCycleRoot, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isRootPaneCheckingEnabled, isSelected, moveToBack, moveToFront, pack, paintComponent, paramString, remove, removeInternalFrameListener, reshape, restoreSubcomponentFocus, setClosable, setClosed, setContentPane, setDefaultCloseOperation, setDesktopIcon, setFocusCycleRoot, setFrameIcon, setGlassPane, setIcon, setIconifiable, setJMenuBar, setLayer, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setNormalBounds, setResizable, setRootPane, setRootPaneCheckingEnabled, setSelected, setTitle, setUI, show, toBack, toFront, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mainPanel

javax.swing.JPanel mainPanel

splitPane

javax.swing.JSplitPane splitPane

schemaScrollPane

javax.swing.JScrollPane schemaScrollPane

borderLayout1

java.awt.BorderLayout borderLayout1

tableTabbedPane

javax.swing.JTabbedPane tableTabbedPane

tableScrollPane

javax.swing.JScrollPane tableScrollPane

viewScrollPane

javax.swing.JScrollPane viewScrollPane

sinScrollPane

javax.swing.JScrollPane sinScrollPane

tablesList

javax.swing.JList tablesList

viewList

javax.swing.JList viewList

sinList

javax.swing.JList sinList

tablesPanel

javax.swing.JPanel tablesPanel

borderLayout2

java.awt.BorderLayout borderLayout2

catPanel

javax.swing.JPanel catPanel

catLabel

javax.swing.JLabel catLabel

catComboBox

javax.swing.JComboBox catComboBox

gridBagLayout1

java.awt.GridBagLayout gridBagLayout1

tablePanel

javax.swing.JPanel tablePanel

viewPanel

javax.swing.JPanel viewPanel

synPanel

javax.swing.JPanel synPanel

borderLayout3

java.awt.BorderLayout borderLayout3

borderLayout4

java.awt.BorderLayout borderLayout4

borderLayout5

java.awt.BorderLayout borderLayout5

borderLayout6

java.awt.BorderLayout borderLayout6

toolbarPanel

javax.swing.JPanel toolbarPanel

schemaPanel

javax.swing.JPanel schemaPanel

printButton

javax.swing.JButton printButton

printImage

javax.swing.ImageIcon printImage

printFitButton

javax.swing.JButton printFitButton

printFitImage

javax.swing.ImageIcon printFitImage

loadButton

javax.swing.JButton loadButton

loadImage

javax.swing.ImageIcon loadImage

saveButton

javax.swing.JButton saveButton

saveImage

javax.swing.ImageIcon saveImage

expButton

javax.swing.JButton expButton

expImage

javax.swing.ImageIcon expImage

flowLayout1

java.awt.FlowLayout flowLayout1

zoomComboBox

javax.swing.JComboBox zoomComboBox
Constructor Detail

SchemaFrame

public SchemaFrame(MainFrame parent,
                   DbConnectionUtil dbConnUtil)

SchemaFrame

public SchemaFrame()
Method Detail

loadProfile

public final void loadProfile(java.lang.String fileName)
Method called by LoadFileDialog class: load the specified profile file.

Parameters:
fileName - profile file name

updateLists

public void updateLists()

loadButton_actionPerformed

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

saveButton_actionPerformed

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

expButton_actionPerformed

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

printFitButton_actionPerformed

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

printButton_actionPerformed

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

getDbConnectionUtil

public DbConnectionUtil getDbConnectionUtil()
Specified by:
getDbConnectionUtil in interface DbConnWindow

catComboBox_itemStateChanged

void catComboBox_itemStateChanged(java.awt.event.ItemEvent e)

zoomComboBox_itemStateChanged

void zoomComboBox_itemStateChanged(java.awt.event.ItemEvent e)

dragEnter

public final void dragEnter(java.awt.dnd.DragSourceDragEvent event)
This message goes to DragSourceListener, informing it that the dragging has entered the DropSite

Specified by:
dragEnter in interface java.awt.dnd.DragSourceListener

dragExit

public final void dragExit(java.awt.dnd.DragSourceEvent event)
This message goes to DragSourceListener, informing it that the dragging has exited the DropSite.

Specified by:
dragExit in interface java.awt.dnd.DragSourceListener

dragOver

public final void dragOver(java.awt.dnd.DragSourceDragEvent event)
This message goes to DragSourceListener, informing it that the dragging is currently ocurring over the DropSite.

Specified by:
dragOver in interface java.awt.dnd.DragSourceListener

dropActionChanged

public final void dropActionChanged(java.awt.dnd.DragSourceDragEvent event)
This method is invoked when the user changes the dropAction.

Specified by:
dropActionChanged in interface java.awt.dnd.DragSourceListener

dragDropEnd

public final void dragDropEnd(java.awt.dnd.DragSourceDropEvent event)
This message goes to DragSourceListener, informing it that the dragging has ended.

Specified by:
dragDropEnd in interface java.awt.dnd.DragSourceListener

dragEnter

public final void dragEnter(java.awt.dnd.DropTargetDragEvent event)
This method is invoked when you are dragging over the DropSite.

Specified by:
dragEnter in interface java.awt.dnd.DropTargetListener

dragExit

public final void dragExit(java.awt.dnd.DropTargetEvent event)
This method is invoked when you are exit the DropSite without dropping.

Specified by:
dragExit in interface java.awt.dnd.DropTargetListener

dragOver

public final void dragOver(java.awt.dnd.DropTargetDragEvent event)
This method is invoked when a drag operation is going on.

Specified by:
dragOver in interface java.awt.dnd.DropTargetListener

drop

public final void drop(java.awt.dnd.DropTargetDropEvent event)
This method is invoked when a drop event has occurred.

Specified by:
drop in interface java.awt.dnd.DropTargetListener

dropActionChanged

public final void dropActionChanged(java.awt.dnd.DropTargetDragEvent event)
This method is invoked if the use modifies the current drop gesture.

Specified by:
dropActionChanged in interface java.awt.dnd.DropTargetListener