public interface TableViewColumn
| 限定符和类型 | 方法和说明 |
|---|---|
Class |
getColumnClass()
Returns the most specific superclass for all the cell values
in the column.
|
Comparator |
getComparator()
Returns the number of columns in the model.
|
String |
getName()
Returns the name of the column.
|
Object |
getValue(Object pRowObject)
Returns the value for the cell.
|
boolean |
isCellEditable(Object pRowObject)
Returns true if the cell is editable.
|
boolean |
isDefaultVisible()
Return the default visibility status
|
boolean |
isSearchable()
Return the searchable status.
|
boolean |
isSortable()
Return the sortable status.
|
void |
setValue(Object pValue,
Object pRowObject)
Sets the value in the cell to
aValue. |
Comparator getComparator()
JTable uses this method to determine how many columns it
should create and display by default.#getRowCountString getName()
Class getColumnClass()
JTable to set up a
default renderer and editor for the column.boolean isCellEditable(Object pRowObject)
setValueAt on the cell will not
change the value of that cell.pRowObject - the row whose value to be queried#setValueAtObject getValue(Object pRowObject)
pRowObject - the row whose value is to be queriedvoid setValue(Object pValue, Object pRowObject)
aValue.pValue - the new valuepRowObject - the row whose value is to be changed#getValueAt,
isCellEditable(java.lang.Object)boolean isSortable()
boolean isSearchable()
boolean isDefaultVisible()
Copyright © 2023 onecode. All rights reserved.