|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--org.tfe.console.Tables.AlertCollectionTableModel
| Field Summary | |
int |
filterCol
integer to keep track of which column by which we're filtering |
boolean |
filtering
boolean telling whether or not table filtering is enabled. |
java.lang.String |
filterVal
String to keep track of the value that we're filtering on |
boolean |
sortAsc
boolean telling whether sorting is ascending or descending (true = ascending, false = descending. |
int |
sortCol
integer to keep track of which column by which we're sorting |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
AlertCollectionTableModel()
|
|
| Method Summary | |
void |
addRow(java.lang.Object[] alertSummary)
Adds a row. |
void |
addRows(java.util.ArrayList alertSummary)
Adds rows. |
void |
filter(boolean filter,
java.lang.String filterValue,
int column)
Enables/disables filtering on the table. |
int |
find(java.lang.String findStr,
int startRow)
Searches the table for a specified value. |
int |
find(java.lang.String findStr,
int startRow,
int column)
Searches a particular column for a specified value. |
java.lang.Class |
getColumnClass(int c)
Gets the datatype for each column. |
int |
getColumnCount()
Gets the total number of columns in the table. |
java.lang.String |
getColumnName(int col)
Gets the name of the column at the specified index. |
int |
getRowCount()
Gets the total number of rows in the table. |
java.lang.Object |
getValueAt(int row,
int col)
Gets the value at the specified row and column in the table. |
boolean |
isCellEditable(int row,
int col)
Whether or not the cell at the specified row and column is editable. |
boolean |
isColorized()
Whether or not the table is colorized. |
void |
removeAll()
Removes all rows from the table. |
void |
removeRow(int index)
Removes the row at the specified index. |
void |
removeRows(int[] rows)
Removes a group of rows from the table. |
void |
setColorized(boolean colorized)
Enables/disabled colorization of the table. |
void |
setValueAt(int row,
int col,
java.lang.Object val)
Sets the value at the specified row and column in the table. |
void |
sort()
Sorts the table. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public boolean sortAsc
public boolean filtering
public int sortCol
public int filterCol
public java.lang.String filterVal
| Constructor Detail |
public AlertCollectionTableModel()
| Method Detail |
public void addRow(java.lang.Object[] alertSummary)
alertSummary - a String array containing the values to be added to the table.public void addRows(java.util.ArrayList alertSummary)
alertSummary - an ArrayList of String arrays containing the values to be added to the table.public void removeRow(int index)
index - the index number of the row to be removed from the table.public void removeRows(int[] rows)
public void removeAll()
public java.lang.Class getColumnClass(int c)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelc - the column number.
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcol - the index of the column who's name is to be retrieved.
public java.lang.Object getValueAt(int row,
int col)
row - the row number containing the data to be retrieved.col - the column number containing the data to be retrieved.
public void setValueAt(int row,
int col,
java.lang.Object val)
row - the row number containing the cell to be modified.col - the column number containing the cell to be modified.val - the value to be entered into the specified cell.
public boolean isCellEditable(int row,
int col)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrow - the row containing the cell of interest.col - the column containing the cell of interest
public void setColorized(boolean colorized)
colorized - true to enable colorization, false to disable it.public boolean isColorized()
public void filter(boolean filter,
java.lang.String filterValue,
int column)
filter - true to enable filtering, false to disable filtering.filterValue - the value to search for when filtering.column - the column on which to filter.public void sort()
public int find(java.lang.String findStr,
int startRow)
findStr - a String value for which to search the table.startRow - the starting row number (integer) of the search.
public int find(java.lang.String findStr,
int startRow,
int column)
findStr - a String value for which to search the table.startRow - the starting row number (integer) of the search.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||