|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--quoggles.auxiliary.ResultTable
Contains a JTable. Provides addRow methods that
insert a checkbox as the first column. The table's model will call methods
of a RowListener if the checkboxes in the first column are
clicked.
| Nested Class Summary | |
(package private) class |
ResultTable.ResultTableModel
The model of the ResultTable. |
(package private) class |
ResultTable.RTMouseListener
Mouse clicks are forwarded to the rowListener. |
| Field Summary | |
private int |
colCnt
Current number of columns |
private java.util.Map |
dataMap
Map of table rows |
private java.lang.Object |
lastSelectedValue
|
private int |
rowCnt
Current number of rows |
private RowListener |
rowListener
Class that is informed when rows are "marked/unmarked" |
private ResultJTable |
table
The table used as result table |
| Constructor Summary | |
ResultTable(RowListener rl)
Creates a new ResultTable registering the given
RowListener. |
|
| Method Summary | |
void |
addRow(java.util.Collection row)
Add the contents of the given list as a row. |
void |
addRow(java.lang.Object[] row)
Add the contents of the given array as a row. |
void |
clearTable()
Empties the table. |
javax.swing.JTable |
getTable()
Returns the JTable displaying the added rows. |
void |
updateWidths()
Assure that the standard cells have correct widths. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ResultJTable table
private java.util.Map dataMap
private int rowCnt
private int colCnt
private RowListener rowListener
private java.lang.Object lastSelectedValue
| Constructor Detail |
public ResultTable(RowListener rl)
ResultTable registering the given
RowListener.
| Method Detail |
public void updateWidths()
public javax.swing.JTable getTable()
JTable displaying the added rows.
JTable displaying the added rowspublic void clearTable()
public void addRow(java.lang.Object[] row)
row - the row to addpublic void addRow(java.util.Collection row)
row - the row to add
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||