public class PropertyTableModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
(package private) String[] |
propertyNames |
(package private) Object |
target |
(package private) Workbench |
workbench |
listenerList
Constructor and Description |
---|
PropertyTableModel(Workbench wb,
Object t,
String[] pNames) |
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount()
Returns the number of columns in the model.
|
String |
getColumnName(int i) |
String |
getErrorMsg() |
String |
getFactTable() |
String |
getFactTableSchema() |
List<String> |
getNames() |
Object |
getParentTarget() |
int |
getRowCount()
Returns the number of rows in the model.
|
String |
getRowName(int i) |
Object |
getValue() |
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and
rowIndex . |
boolean |
isCellEditable(int row,
int col) |
void |
setErrorMsg(String errorMsg) |
void |
setFactTable(String factTable) |
void |
setFactTableSchema(String factTableSchema) |
void |
setNames(List<String> names) |
void |
setParentTarget(Object parentTarget) |
void |
setValueAt(Object value,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
String[] propertyNames
public PropertyTableModel(Workbench wb, Object t, String[] pNames)
public String getColumnName(int i)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public String getRowName(int i)
public boolean isCellEditable(int row, int col)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public int getColumnCount()
JTable
uses this method to determine how many columns it
should create and display by default.getRowCount()
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 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 value, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public Object getParentTarget()
public void setParentTarget(Object parentTarget)
public String getFactTable()
public void setFactTable(String factTable)
public String getFactTableSchema()
public void setFactTableSchema(String factTableSchema)
public String getErrorMsg()
public void setErrorMsg(String errorMsg)