|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
de.upb.swtpra05.group03.companycontrol.plugin.ShuttleInformation.RoutingTableModel
| Field Summary | |
private java.lang.String[] |
columnNames
the headers of the columns of the table |
private java.lang.Object[][] |
data
an array for the data to be filled in the table |
private int |
rowCount
counter for the number of rows |
private static long |
serialVersionUID
Comment for serialVersionUID |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
(package private) |
RoutingTableModel()
|
| Method Summary | |
void |
emptyTable()
empties the whole table |
java.lang.Class |
getColumnClass(int c)
|
int |
getColumnCount()
|
java.lang.String |
getColumnName(int col)
|
int |
getRowCount()
|
java.lang.Object |
getValueAt(int row,
int col)
|
boolean |
isCellEditable(int row,
int col)
Don't need to implement this method unless your table's editable. |
void |
setData(java.lang.Object[][] data)
This method causes the table to get filled with given data and updates the counter for the rows |
void |
setValueAt(java.lang.Object value,
int row,
int col)
|
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
serialVersionUID
private java.lang.String[] columnNames
private java.lang.Object[][] data
private int rowCount
| Constructor Detail |
RoutingTableModel()
| Method Detail |
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
public java.lang.Object getValueAt(int row,
int col)
public java.lang.Class getColumnClass(int c)
public boolean isCellEditable(int row,
int col)
public void setData(java.lang.Object[][] data)
data - the new data to be filled in the table
public void setValueAt(java.lang.Object value,
int row,
int col)
public void emptyTable()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||