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, sortOnColumnOfRange
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public CustomizeResourcesTableModel()
public Object getValueForColumn(Object o, int colIndex)
getValueForColumn
in class PAbstractSortingTableModel
o
- ObjectcolIndex
- intpublic Class getColumnClass(int columnNo)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
protected void sortOnColumn(int sortColumn)
PAbstractSortingTableModel
sortColumn
and fire the model to update the view.
Subclasses should override this, but also call
super.sortOnColumn(sortColumn) for simple sorringsortOnColumn
in class PAbstractSortingTableModel
sortColumn
- int the column index on which sorting should happen.public void setValueAt(Object value, int row, int col)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
col
- intpublic int getColumnCount()
Copyright © 2003, 2023, Oracle and/or its affiliates.