|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--medi.swing.util.TableUtils
Contains a set of function to manage tables.
Constructor Summary | |
TableUtils()
Creates new TableUtils |
Method Summary | |
static void |
clearIndexedTable(javax.swing.JTable table)
Clears an indexed table. |
static void |
clearSortedTable(javax.swing.JTable table)
Clears a sorted table. |
static void |
clearTable(javax.swing.JTable table)
Clears a normal table. |
static void |
fillIndexedTable(javax.swing.JTable table,
DbIterator rowIt,
int[] colIndexes,
int indexPos)
Fills an indexed table. |
static void |
fillIndexedTable(javax.swing.JTable table,
java.util.Iterator rowIt,
int[] colIndexes,
int indexPos)
Fills an indexed table. |
static void |
fillSortedTable(javax.swing.JTable table,
DbIterator rowIt,
int[] colIndexes,
int indexPos)
Fills a sorted table. |
static void |
fillSortedTable(javax.swing.JTable table,
java.util.Iterator rowIt,
int[] colIndexes,
int indexPos)
Fills a sorted table. |
static void |
fillTable(javax.swing.JTable table,
DbIterator rowIt,
int[] colIndexes)
Fills a normal table. |
static void |
fillTable(javax.swing.JTable table,
java.lang.String scriptFileName)
Fills a table with a single column using data from a script file. |
static void |
saveTable(javax.swing.JTable table,
java.lang.String scriptFileName)
Saves a table with a single column into a script file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TableUtils()
Method Detail |
public static void fillTable(javax.swing.JTable table, DbIterator rowIt, int[] colIndexes) throws DbException
table
- The table to use.rowIt
- The iterator containing the data.colIndexes
- The indexes to use in getting columns in the iterator's rows.
DbException
- If something goes wrong.public static void fillTable(javax.swing.JTable table, java.lang.String scriptFileName)
table
- The table to be filled.scriptFileName
- The file name of the script to use.public static void fillIndexedTable(javax.swing.JTable table, DbIterator rowIt, int[] colIndexes, int indexPos) throws DbException
table
- The table to use.rowIt
- The iterator that contains the data.colIndexes
- The indexes to use in getting columns in the iterator's rows.indexPos
- The column to use as an index.
DbException
- If something goes wrong.public static void fillIndexedTable(javax.swing.JTable table, java.util.Iterator rowIt, int[] colIndexes, int indexPos) throws DbException
table
- The table to use.rowIt
- The iterator that contains the data.colIndexes
- The indexes to use in getting columns in the iterator's rows.indexPos
- The position of the column to use as an index.
DbException
- If something goes wrong.public static void fillSortedTable(javax.swing.JTable table, DbIterator rowIt, int[] colIndexes, int indexPos) throws DbException
table
- The table to use.rowIt
- The iterator that contains the data.colIndexes
- The indexes to use in getting columns in the iterator's rows.indexPos
- The position of the column to use as an index.
DbException
- If something goes wrong.public static void fillSortedTable(javax.swing.JTable table, java.util.Iterator rowIt, int[] colIndexes, int indexPos) throws DbException
table
- The table to use.rowIt
- The iterator containing the data.colIndexes
- The indexes to use in getting columns in the iterator's rows.indexPos
- The position of the column to use as an index.
DbException
- If something goes wrong.public static void clearTable(javax.swing.JTable table)
table
- The table to use.public static void clearIndexedTable(javax.swing.JTable table)
table
- The table to use.public static void clearSortedTable(javax.swing.JTable table)
table
- The table to use.public static void saveTable(javax.swing.JTable table, java.lang.String scriptFileName) throws java.io.IOException
table
- The table to use.scriptFileName
- The file name of the script to use.
java.io.IOException
- If the operation does not work.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |