|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel edu.upenn.crimson.QueryTableModel
public class QueryTableModel
QueryTableModel. This is a TableModel that is used by QueryManager to list the queries. It is maintained here so that it can be updated easily whenever the query list is rebuilt.
Field Summary | |
---|---|
private java.lang.String[] |
columnNames
|
private java.util.ArrayList |
queries
Stores the Queries that are in the table. |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
QueryTableModel()
|
Method Summary | |
---|---|
void |
addRow(Query query)
Append a new row to the end of the table. |
void |
addRowAt(Query query,
int row)
Add new row to table. |
int |
getColumnCount()
|
java.lang.String |
getColumnName(int col)
|
Query |
getRow(int row)
Returns the Query that represents the specified row in the table. |
int |
getRowCount()
|
java.lang.Object |
getValueAt(int row,
int col)
"ID", "Tree", "Leaf Selection", "Seq Selection" |
void |
removeAllRows()
Removes all rows from the table. |
void |
removeRow(int row)
Removes the Query that represents the specified row in the table. |
void |
removeRows(int[] rows)
Removes the Queries that represent the rows specified. |
void |
removeRows(int minRow,
int maxRow)
Removes the Queries that represent the specified row in the table. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList queries
private java.lang.String[] columnNames
Constructor Detail |
---|
public QueryTableModel()
Method Detail |
---|
public void addRow(Query query)
public void addRowAt(Query query, int row)
public Query getRow(int row)
public void removeRow(int row)
public void removeRows(int[] rows)
public void removeRows(int minRow, int maxRow)
public void removeAllRows()
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int row, int col)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |