public class CustomizeResourcesTableModel extends PAbstractSortingTableModel
listenerList| Constructor and Description |
|---|
CustomizeResourcesTableModel()
constructor for the tabelModel
|
| Modifier and Type | Method and Description |
|---|---|
Class |
getColumnClass(int columnNo)
gets the Class for the Column
|
int |
getColumnCount()
returns the column Count of the model
|
String |
getColumnName(int col)
returns the column Name of the specified
|
Object |
getValueForColumn(Object o,
int colIndex)
getValueForColumn returns the Value for the cell
|
boolean |
isCellEditable(int row,
int col)
This determines whether cell is editable.
|
void |
setValueAt(Object value,
int row,
int col)
sets the value for the table cell at the specified row and column
|
protected void |
sortOnColumn(int sortColumn)
This will sort the object array on the column index
sortColumn and fire the model to update the view. |
formatTable, getLastClickedColumn, getRowAt, getRowCount, getSelectedData, getSelectedDataArray, getTable, getValueAt, setAscending, setData, sortOnColumnOfRangeaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic CustomizeResourcesTableModel()
public Object getValueForColumn(Object o, int colIndex)
getValueForColumn in class PAbstractSortingTableModelo - ObjectcolIndex - intpublic Class getColumnClass(int columnNo)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic boolean isCellEditable(int row,
int col)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelprotected void sortOnColumn(int sortColumn)
PAbstractSortingTableModelsortColumn and fire the model to update the view.
Subclasses should override this, but also call
super.sortOnColumn(sortColumn) for simple sorringsortOnColumn in class PAbstractSortingTableModelsortColumn - int the column index on which sorting should happen.public void setValueAt(Object value, int row, int col)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcol - intpublic int getColumnCount()
Copyright © 2003, 2023, Oracle and/or its affiliates.