dbfeditor
Class DBFEditor

java.lang.Object
  extended by dbfeditor.DBFEditor

public class DBFEditor
extends java.lang.Object

DBFEditor - This class provides and application with a GUI for loading a .dbf file

Author:
Richard McKenna

Constructor Summary
DBFEditor()
          Constructor for a DBFEditor.
 
Method Summary
static void autoSizeAllColumns()
          This helper method automatically resizes all the table's columns according to how wide the data inside is such that the user may read all the data.
static void autoSizeColumn(int columnIndex)
          This method resizes the columnIndex column according to the with needed by its contents.
static javax.swing.JCheckBox getIncreasingCheckBox()
          This method returns the JCheckBox for determining to whether or not to sort by increasing values or decreasing values.
static javax.swing.JTable getTable()
          This method returns the JTable being used by the DBFEditor.
static javax.swing.JFrame getWindow()
          This method returns the JFrame window of the DBFEditor.
static void initHandlers()
          This method initializes all of our event handlers.
static void initSortingCriteriaComboBoxData(javax.swing.JComboBox initComboBox, DBFTable dbfTable)
          This method resets and reloads the sorting criteria combo box with the fields currently in the table and with the most recent sorting criteria.
static void initWindow()
          This method initializes our GUI's window.
static void layoutGUI()
          This method constructs and organizes all the GUI components in their proper containers.
static void loadDBFIntoTable(DBFTable data)
          This method loads the contents of the data argument, which is a fully loaded .dbf file, into our JTable.
static java.awt.Image loadImage(java.lang.String path)
          This method loads an Image which we may use for our buttons, and makes sure it's fully loaded before our application continues.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBFEditor

public DBFEditor()
Constructor for a DBFEditor. Layout the GUI as well as everything that is necessary to use the DBFEditor.

Method Detail

getWindow

public static javax.swing.JFrame getWindow()
This method returns the JFrame window of the DBFEditor.

Returns:
The DBFEditor Frame.

getTable

public static javax.swing.JTable getTable()
This method returns the JTable being used by the DBFEditor.

Returns:
The JTable that is being edited by the DBFEditor.

getIncreasingCheckBox

public static javax.swing.JCheckBox getIncreasingCheckBox()
This method returns the JCheckBox for determining to whether or not to sort by increasing values or decreasing values.

Returns:
Whether or not to sort increasing.

initWindow

public static void initWindow()
This method initializes our GUI's window.


layoutGUI

public static void layoutGUI()
This method constructs and organizes all the GUI components in their proper containers.


initSortingCriteriaComboBoxData

public static void initSortingCriteriaComboBoxData(javax.swing.JComboBox initComboBox,
                                                   DBFTable dbfTable)
This method resets and reloads the sorting criteria combo box with the fields currently in the table and with the most recent sorting criteria. This is used after changing the fields.


loadImage

public static java.awt.Image loadImage(java.lang.String path)
This method loads an Image which we may use for our buttons, and makes sure it's fully loaded before our application continues.


initHandlers

public static void initHandlers()
This method initializes all of our event handlers.


loadDBFIntoTable

public static void loadDBFIntoTable(DBFTable data)
This method loads the contents of the data argument, which is a fully loaded .dbf file, into our JTable.


autoSizeAllColumns

public static void autoSizeAllColumns()
This helper method automatically resizes all the table's columns according to how wide the data inside is such that the user may read all the data.


autoSizeColumn

public static void autoSizeColumn(int columnIndex)
This method resizes the columnIndex column according to the with needed by its contents.