ca.sqlpower.architect.swingui
Class IndexColumnTable

java.lang.Object
  extended by ca.sqlpower.architect.swingui.IndexColumnTable

public class IndexColumnTable
extends java.lang.Object

This class will be used to display the columns that are contained in an index. This table will be used by the IndexEditPanel class.


Field Summary
static java.lang.String COL_NAME
           
static java.lang.String IN_INDEX
           
static java.lang.String ORDER
           
 
Constructor Summary
IndexColumnTable(SQLTable parent, SQLIndex index, SQLIndex actualIndex)
          Constructor of the Index Column table.
 
Method Summary
 void cleanUp()
           
 void finalizeIndex()
          This will re-add all the proper SQLColumns to the SQLIndex depending on the ordering that the user provided in the JTable.
 javax.swing.JTable getTable()
          Returns the table this class is managing.
 void moveRow(boolean direction)
          This will move a row (or a set of rows) in the table from a start position index to the destinations index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IN_INDEX

public static java.lang.String IN_INDEX

COL_NAME

public static java.lang.String COL_NAME

ORDER

public static java.lang.String ORDER
Constructor Detail

IndexColumnTable

public IndexColumnTable(SQLTable parent,
                        SQLIndex index,
                        SQLIndex actualIndex)
Constructor of the Index Column table.

Method Detail

cleanUp

public void cleanUp()

finalizeIndex

public void finalizeIndex()
This will re-add all the proper SQLColumns to the SQLIndex depending on the ordering that the user provided in the JTable.


moveRow

public void moveRow(boolean direction)
This will move a row (or a set of rows) in the table from a start position index to the destinations index. The direction boolean: up = true, down = false


getTable

public javax.swing.JTable getTable()
Returns the table this class is managing.



Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca