com.jidesoft.grid
Class ListTableModelAdapter
java.lang.Object
javax.swing.table.AbstractTableModel
com.jidesoft.grid.ListTableModelAdapter
- All Implemented Interfaces:
- ContextSensitiveTableModel, Serializable, EventListener, ListDataListener, TableModel
public class ListTableModelAdapter
- extends AbstractTableModel
- implements ListDataListener, ContextSensitiveTableModel
The table model used by DualTable.
- Since:
- 3.5.2
- See Also:
- Serialized Form
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListTableModelAdapter
public ListTableModelAdapter(ListModel listModel,
TableModelAdapter tableModelAdapter)
getListModel
public ListModel getListModel()
setListModel
public void setListModel(ListModel listModel)
getTableModelAdapter
public TableModelAdapter getTableModelAdapter()
setTableModelAdapter
public void setTableModelAdapter(TableModelAdapter tableModelAdapter)
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interface TableModel
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnName
in interface TableModel
- Overrides:
getColumnName
in class AbstractTableModel
getColumnClass
public Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interface TableModel
- Overrides:
getColumnClass
in class AbstractTableModel
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interface TableModel
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
- Specified by:
getValueAt
in interface TableModel
setValueAt
public void setValueAt(Object aValue,
int rowIndex,
int columnIndex)
- Specified by:
setValueAt
in interface TableModel
- Overrides:
setValueAt
in class AbstractTableModel
intervalAdded
public void intervalAdded(ListDataEvent e)
- Specified by:
intervalAdded
in interface ListDataListener
intervalRemoved
public void intervalRemoved(ListDataEvent e)
- Specified by:
intervalRemoved
in interface ListDataListener
contentsChanged
public void contentsChanged(ListDataEvent e)
- Specified by:
contentsChanged
in interface ListDataListener
getConverterContextAt
public ConverterContext getConverterContextAt(int rowIndex,
int columnIndex)
- Description copied from interface:
ContextSensitiveTableModel
- Gets the converter context at cell (row, column).
For a special row index like -1, please return the default converter context for the entire column if there is any.
- Specified by:
getConverterContextAt
in interface ContextSensitiveTableModel
- Parameters:
rowIndex
- the row indexcolumnIndex
- the column index
- Returns:
- converter context
getEditorContextAt
public EditorContext getEditorContextAt(int rowIndex,
int columnIndex)
- Description copied from interface:
ContextSensitiveTableModel
- Gets the editor context at cell (row, column).
For a special row index like -1, please return the default editor context for the entire column if there is any.
- Specified by:
getEditorContextAt
in interface ContextSensitiveTableModel
- Parameters:
rowIndex
- the row indexcolumnIndex
- the column index
- Returns:
- editor context
getCellClassAt
public Class<?> getCellClassAt(int rowIndex,
int columnIndex)
- Description copied from interface:
ContextSensitiveTableModel
- Gets the type at cell (row, column).
For a special row index like -1, please return the default column class for the entire column if there is any.
- Specified by:
getCellClassAt
in interface ContextSensitiveTableModel
- Parameters:
rowIndex
- the row indexcolumnIndex
- the column index
- Returns:
- type