public class EditableMetaDataTableModel extends AbstractTableModel
listenerList| Constructor and Description |
|---|
EditableMetaDataTableModel() |
| Modifier and Type | Method and Description |
|---|---|
Class |
getColumnClass(int columnIndex)
Returns
Object.class regardless of columnIndex. |
int |
getColumnCount()
Returns the number of columns in the model.
|
String |
getColumnName(int column)
Returns a default name for the column using spreadsheet conventions: A, B, C, ...
|
Locale |
getLocale() |
EditableMetaData |
getMetaData(int row) |
int |
getRowCount()
Returns the number of rows in the model.
|
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and rowIndex. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns false.
|
boolean |
isValidValue(int row,
int col) |
void |
populate(EditableMetaData[] data) |
void |
setLocale(Locale locale) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
This empty implementation is provided so users don't have to implement this method if their data model is not
editable.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic Locale getLocale()
public void setLocale(Locale locale)
public void populate(EditableMetaData[] data)
public EditableMetaData getMetaData(int row)
public int getRowCount()
JTable uses this method to determine how many rows it
should display. This method should be quick, as it is called frequently during rendering.getColumnCount()public int getColumnCount()
JTable uses this method to determine how many columns it
should create and display by default.getRowCount()public String getColumnName(int column)
column cannot be found, returns an empty string.getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - the column being queriedcolumnpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelrowIndex - the row being queriedcolumnIndex - the column being queriedpublic Class getColumnClass(int columnIndex)
Object.class regardless of columnIndex.getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumnIndex - the column being queriedpublic Object getValueAt(int rowIndex, int columnIndex)
columnIndex and rowIndex.rowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queriedpublic void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelaValue - value to assign to cellrowIndex - row of cellcolumnIndex - column of cellpublic boolean isValidValue(int row,
int col)
Copyright © 2018 Hitachi Vantara. All rights reserved.