|
||||||||||
| 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.AlertHistoryTableModel
| Field Summary | |
boolean |
sortAsc
Whether or not the table is sorted in ascending order |
int |
sortCol
The column on which sorting is enabled |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
AlertHistoryTableModel()
Creates new IncidentsTableModel |
|
| Method Summary | |
void |
addRow(java.lang.Object a)
Adds a row to the table. |
void |
addRows(java.util.ArrayList alertSummary)
Adds rows to the table. |
java.lang.Class |
getColumnClass(int c)
Gets the Class type of the data at the 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)
Get the data at a specified 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)
Enables/disables colorization of the table. |
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 int sortCol
public boolean sortAsc
| Constructor Detail |
public AlertHistoryTableModel()
| Method Detail |
public void addRow(java.lang.Object a)
a - the object to be added to the table.public void addRows(java.util.ArrayList alertSummary)
alertSummary - an ArrayList of String arrays containing the data to be added to the table.public void removeRow(int index)
index - the index number of the row to be removed.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 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 column name.
public java.lang.Object getValueAt(int row,
int col)
row - the row number containing the cell for which to retrieve data.col - the column number containing the cell for which to retrieve data.
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 number containing the cell of interest.
public void setColorized(boolean colorized)
colorized - true to enable colorization, false to disable colorization.public boolean isColorized()
public void sort()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||