|
||||||||||
| 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.HotIPTableModel
| Field Summary |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
HotIPTableModel()
Creates new HotIPTableModel |
|
| Method Summary | |
void |
addRow(java.lang.Object[] HotIPSummary,
java.awt.Color rowColor,
int hashcode)
Adds a row to the table. |
void |
addRows(java.util.ArrayList hotIPs,
java.util.ArrayList color,
java.util.ArrayList hashcodes)
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 |
getHashCode(int rowNum)
Gets the hashcode associated with a particular row |
java.awt.Color |
getRowColor(int row)
Gets the color of the specified row. |
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. |
void |
removeAll()
Removes all rows from the table. |
void |
removeRow(int index)
Removes a row from the table. |
void |
removeRows(int[] rows)
Removes rows from the table. |
void |
updateRow(int rowNum,
java.lang.Object[] summary,
java.awt.Color color)
Updates the data for a particular row in the HotIPTable. |
| 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 |
| Constructor Detail |
public HotIPTableModel()
| Method Detail |
public void addRow(java.lang.Object[] HotIPSummary,
java.awt.Color rowColor,
int hashcode)
rowColor - the color to make the new row.hashcode - the hashcode of the HotIP
public void addRows(java.util.ArrayList hotIPs,
java.util.ArrayList color,
java.util.ArrayList hashcodes)
hotIPs - an ArrayList of String arrays containing the values to be added to the table.color - an ArrayList of Colors to be used for row colorization.hashcodes - an ArrayList of hashcodes corresponding to the HotIPs being added
public void updateRow(int rowNum,
java.lang.Object[] summary,
java.awt.Color color)
rowNum - the row to be updatedsummary - the data with which to update the row.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 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 java.awt.Color getRowColor(int row)
row - the index of the row for which to retrieve the Color.
public int getHashCode(int rowNum)
rowNum - the row number of interest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||