|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel org.mov.ui.AbstractTableModel
public abstract class AbstractTableModel
Helper for constructing table models. This abstract table model allows you to pass a list of columns for describing a table. The model will then take care of returning information to the table about each column.
Column
,
Serialized FormField Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
AbstractTableModel()
Create a new table model with no columns. |
|
AbstractTableModel(java.util.List columns)
Create a new table model with the set of columns. |
Method Summary | |
---|---|
Column |
getColumn(int columnNumber)
Get a column. |
java.lang.Class |
getColumnClass(int columnNumber)
Get data type of column data. |
int |
getColumnCount()
Get number of columns in table. |
java.lang.String |
getColumnName(int columnNumber)
Get short name of column. |
void |
setColumns(java.util.List columns)
Sets the columns in the table model. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.table.TableModel |
---|
getRowCount, getValueAt |
Constructor Detail |
---|
public AbstractTableModel()
public AbstractTableModel(java.util.List columns)
columns
- Table's columns.Method Detail |
---|
public int getColumnCount()
public java.lang.String getColumnName(int columnNumber)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
columnNumber
- Column number.
public java.lang.Class getColumnClass(int columnNumber)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
columnNumber
- Column number.
public void setColumns(java.util.List columns)
columns
- New columns.public Column getColumn(int columnNumber)
columnNumber
- Column number.
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |