|
||||||||||
| 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.AlertsTableModel
| Field Summary | |
int |
filterCol
the column by which we're filtering. |
boolean |
filtering
filtering enabled(true) or disabled(false) |
java.lang.String |
filterVal
String to keep track of the value that we're filtering on |
boolean |
sortAsc
sorting ascending(true) or descending(false) |
int |
sortCol
the column by which we're sorting. |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
AlertsTableModel()
|
|
| Method Summary | |
void |
addRow(java.lang.Object[] alertSummary)
Adds a row to the table. |
void |
addRows(java.util.ArrayList alertSummary)
Adds rows to the table. |
void |
filter(boolean filter,
java.lang.String filterValue,
int column)
Filters 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 the table for a specified value. |
java.lang.Class |
getColumnClass(int c)
Gets the Class types for the data in a specified column. |
int |
getColumnCount()
Gets the total number of columns in the table. |
java.lang.String |
getColumnName(int col)
Gets the name of a specified column. |
int |
getRowCount()
Gets the total number of rows in the table. |
java.lang.Object |
getValueAt(int row,
int col)
Gets the value of the data at a particular table cell. |
boolean |
isCellEditable(int row,
int col)
Whether or not the specified cell is editable. |
boolean |
isColorized()
Whether or not the table is colorized. |
void |
removeAll()
Removes all rows from the table. |
void |
removeRow(int index)
Removes a row from the table. |
void |
setColorized(boolean colorized)
Enable/disable table colorization. |
void |
sort()
Sorts the table. |
void |
updateRow(int rowNum,
java.lang.Object[] alertSummary)
Updates a row's data. |
| 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 AlertsTableModel()
| 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 removeAll()
public void updateRow(int rowNum,
java.lang.Object[] alertSummary)
rowNum - the row number to updatealertSummary - a 7-element String array containing the data with which to update the row.public java.lang.Class getColumnClass(int c)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelc - the column number for which to retrieve the Class type.
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 column number for which to retrieve the name.
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 boolean isCellEditable(int row,
int col)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic 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 it.filterValue - the value to look for when filtering.column - the column in which to look for filterValue when filtering.public void sort()
public int find(java.lang.String findStr,
int startRow)
findStr - the String value for which to search.startRow - the row at which to begin the search.
public int find(java.lang.String findStr,
int startRow,
int column)
findStr - the String value for which to search.startRow - the row at which to begin the search.column - the column in which to search for the findStr.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||