|
|||||||||||
| 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.ShuttleTableModel
The Table Model for the Shuttle Table. It has 6 Columns : "ShuttleID", "Location", "Activity", "Orders","Margin", "Revenue"
| Field Summary | |
private java.lang.String[] |
columnNames
the headers of the table columns |
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) |
ShuttleTableModel()
|
| Method Summary | |
void |
emptyTable()
empties the whole table |
java.lang.Class |
getColumnClass(int c)
Accessor method for the class of the given column |
int |
getColumnCount()
Accessor method for the number of columns of the table |
java.lang.String |
getColumnName(int col)
Accessor method for the name the given column col of the table |
int |
getRowCount()
Accessor method for the number of rows of the table |
java.lang.Object |
getValueAt(int row,
int col)
Accessor method for the content of the given table cell |
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)
Don't need to implement this method unless your table's data can change. |
| 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 |
ShuttleTableModel()
| 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 | ||||||||||