|
||||||||||
| 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.IncidentTableModel
| Field Summary |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
IncidentTableModel()
Creates new IncidentsTableModel |
|
| Method Summary | |
void |
addRow(Incident i)
Adds a row to the table. |
void |
addRow(java.lang.Object a)
Adds a row to the table. |
void |
addRows(java.util.ArrayList incList)
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. |
void |
insertRow(java.lang.Object a,
int index)
Inserts a row into the table at the specified index. |
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. |
| 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 IncidentTableModel()
| Method Detail |
public void addRow(java.lang.Object a)
a - an array of Strings containing the values to be added to the table.public void addRow(Incident i)
i - an Incident containing the values to be added to the table.Incidentpublic void addRows(java.util.ArrayList incList)
incList - an ArrayList of Incidents containing values to be added to the table.Incident
public void insertRow(java.lang.Object a,
int index)
a - an array of Strings containing the values to be inserted into the table.index - the index at which to insert the new row into the table.public void removeRow(int index)
index - the index of the row to be removed from the table.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 void setColorized(boolean colorized)
colorized - true to enable colorization, false to disable it.public boolean isColorized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||