org.jsqltool.gui
Class TableExportDialog

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--javax.swing.JDialog
                                |
                                +--org.jsqltool.gui.TableExportDialog
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.event.TableModelListener, javax.swing.WindowConstants

public class TableExportDialog
extends javax.swing.JDialog
implements javax.swing.event.TableModelListener

Title: JSqlTool Project

Description: Dialog used to export table content. Table content can be exported as: - SQL insert statements - text data, with a custom delimiter (e.g. ",") - XLS (Excel) file format

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)  java.awt.BorderLayout borderLayout2
           
(package private)  javax.swing.JButton cancelButton
           
(package private)  javax.swing.JRadioButton clipRadioButton
           
(package private)  javax.swing.JPanel colPanel
           
(package private)  javax.swing.JScrollPane colsScrollPane
           
(package private)  javax.swing.JTable colsTable
           
(package private)  javax.swing.JTextField delimTF
           
(package private)  javax.swing.ButtonGroup dest
           
(package private)  javax.swing.JLabel destLabel
           
(package private)  javax.swing.JLabel fileLabel
           
(package private)  javax.swing.JButton filenameButton
           
(package private)  javax.swing.JTextField filenameTF
           
(package private)  javax.swing.JRadioButton fileRadioButton
           
(package private)  javax.swing.ButtonGroup formatButtonGroup
           
(package private)  javax.swing.JLabel formatLabel
           
(package private)  java.awt.GridBagLayout gridBagLayout1
           
(package private)  java.awt.GridBagLayout gridBagLayout2
           
(package private)  java.awt.GridBagLayout gridBagLayout3
           
(package private)  javax.swing.JPanel headPanel
           
(package private)  javax.swing.JPanel mainPanel
           
(package private)  javax.swing.JCheckBox nullCheckBox
           
(package private)  javax.swing.JButton okButton
           
(package private)  javax.swing.JPanel optionsPanel
           
(package private)  javax.swing.JCheckBox pkCheckBox
           
(package private)  javax.swing.JCheckBox schemaCheckBox
           
(package private)  javax.swing.JScrollPane scrollPane
           
(package private)  javax.swing.JButton selButton
           
(package private)  javax.swing.JRadioButton sqlRadioButton
           
(package private)  javax.swing.JTabbedPane tabbedPane
           
(package private)  javax.swing.JTextField tableTF
           
(package private)  javax.swing.JPanel tabPanel
           
(package private)  javax.swing.JRadioButton txtRadioButton
           
(package private)  javax.swing.JButton unselButton
           
(package private)  javax.swing.JLabel whereLabel
           
(package private)  javax.swing.JTextPane wherePane
           
(package private)  javax.swing.JRadioButton xlsRadioButton
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
 
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, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TableExportDialog()
           
TableExportDialog(javax.swing.JFrame frame, DbConnectionUtil dbConnUtil, java.lang.String tableName)
           
 
Method Summary
(package private)  void cancelButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void clipRadioButton_itemStateChanged(java.awt.event.ItemEvent e)
           
(package private)  void filenameButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void fileRadioButton_itemStateChanged(java.awt.event.ItemEvent e)
           
(package private)  void nullCheckBox_itemStateChanged(java.awt.event.ItemEvent e)
           
(package private)  void okButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void pkCheckBox_itemStateChanged(java.awt.event.ItemEvent e)
           
(package private)  void selButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void sqlRadioButton_itemStateChanged(java.awt.event.ItemEvent e)
           
 void tableChanged(javax.swing.event.TableModelEvent e)
           
(package private)  void txtRadioButton_itemStateChanged(java.awt.event.ItemEvent e)
           
(package private)  void unselButton_actionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, 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, removeNotify, 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, remove, 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
 

Field Detail

mainPanel

javax.swing.JPanel mainPanel

borderLayout1

java.awt.BorderLayout borderLayout1

headPanel

javax.swing.JPanel headPanel

tabPanel

javax.swing.JPanel tabPanel

tabbedPane

javax.swing.JTabbedPane tabbedPane

borderLayout2

java.awt.BorderLayout borderLayout2

tableTF

javax.swing.JTextField tableTF

cancelButton

javax.swing.JButton cancelButton

okButton

javax.swing.JButton okButton

gridBagLayout1

java.awt.GridBagLayout gridBagLayout1

optionsPanel

javax.swing.JPanel optionsPanel

colPanel

javax.swing.JPanel colPanel

whereLabel

javax.swing.JLabel whereLabel

scrollPane

javax.swing.JScrollPane scrollPane

wherePane

javax.swing.JTextPane wherePane

destLabel

javax.swing.JLabel destLabel

clipRadioButton

javax.swing.JRadioButton clipRadioButton

fileRadioButton

javax.swing.JRadioButton fileRadioButton

fileLabel

javax.swing.JLabel fileLabel

filenameTF

javax.swing.JTextField filenameTF

filenameButton

javax.swing.JButton filenameButton

schemaCheckBox

javax.swing.JCheckBox schemaCheckBox

gridBagLayout2

java.awt.GridBagLayout gridBagLayout2

dest

javax.swing.ButtonGroup dest

gridBagLayout3

java.awt.GridBagLayout gridBagLayout3

colsScrollPane

javax.swing.JScrollPane colsScrollPane

colsTable

javax.swing.JTable colsTable

nullCheckBox

javax.swing.JCheckBox nullCheckBox

pkCheckBox

javax.swing.JCheckBox pkCheckBox

selButton

javax.swing.JButton selButton

unselButton

javax.swing.JButton unselButton

formatLabel

javax.swing.JLabel formatLabel

sqlRadioButton

javax.swing.JRadioButton sqlRadioButton

formatButtonGroup

javax.swing.ButtonGroup formatButtonGroup

txtRadioButton

javax.swing.JRadioButton txtRadioButton

delimTF

javax.swing.JTextField delimTF

xlsRadioButton

javax.swing.JRadioButton xlsRadioButton
Constructor Detail

TableExportDialog

public TableExportDialog(javax.swing.JFrame frame,
                         DbConnectionUtil dbConnUtil,
                         java.lang.String tableName)

TableExportDialog

public TableExportDialog()
Method Detail

tableChanged

public void tableChanged(javax.swing.event.TableModelEvent e)
Specified by:
tableChanged in interface javax.swing.event.TableModelListener

okButton_actionPerformed

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

cancelButton_actionPerformed

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

filenameButton_actionPerformed

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

clipRadioButton_itemStateChanged

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

fileRadioButton_itemStateChanged

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

unselButton_actionPerformed

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

selButton_actionPerformed

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

nullCheckBox_itemStateChanged

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

pkCheckBox_itemStateChanged

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

txtRadioButton_itemStateChanged

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

sqlRadioButton_itemStateChanged

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