net.sourceforge.squirrel_sql.plugins.dataimport.gui
Class ImportFileDialog

java.lang.Object
  extended by net.sourceforge.squirrel_sql.client.gui.desktopcontainer.DialogWidget
      extended by net.sourceforge.squirrel_sql.plugins.dataimport.gui.ImportFileDialog
All Implemented Interfaces:
IWidget

public class ImportFileDialog
extends DialogWidget

This dialog has some options to specify how the file is imported into the database.

Author:
Thorsten Mürell

Constructor Summary
ImportFileDialog(ISession session, IFileImporter importer, ITableInfo table, TableColumnInfo[] columns)
          The standard constructor
 
Method Summary
 void ok()
          This is invoked if the user presses ok
 void setPreviewData(String[][] data)
          Sets the preview data for the dialog
 void suggestColumns()
           
 
Methods inherited from class net.sourceforge.squirrel_sql.client.gui.desktopcontainer.DialogWidget
addNotify, addWidgetListener, centerWithinDesktop, dispose, fireWidgetClosed, fireWidgetClosing, getAwtContainer, getBounds, getClientProperty, getContentPane, getDelegate, getHeight, getInternalFrame, getRootPane, getSize, getTitle, getWidth, isClosed, isIcon, isToolWindow, isVisible, makeToolWindow, moveToFront, pack, putClientProperty, removeWidgetListener, requestFocus, setBorder, setBounds, setContentPane, setDefaultCloseOperation, setFrameIcon, setLayer, setMaximum, setPreferredSize, setSelected, setSize, setTitle, setVisible, showOk, toFront, updateUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportFileDialog

public ImportFileDialog(ISession session,
                        IFileImporter importer,
                        ITableInfo table,
                        TableColumnInfo[] columns)
The standard constructor

Parameters:
session - The session
importer - The file importer
table - The table to import into
columns - The columns of the import table
Method Detail

setPreviewData

public void setPreviewData(String[][] data)
Sets the preview data for the dialog

Parameters:
data -

suggestColumns

public void suggestColumns()

ok

public void ok()
This is invoked if the user presses ok



Copyright © 2001-2011. All Rights Reserved.