- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- com.iamsoft.util.ui.javafx.swingfx.ProxyTableModel
-
- All Implemented Interfaces:
Serializable
,TableModel
public class ProxyTableModel extends AbstractTableModel
Proxy for TableModel.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description ProxyTableModel(JTable pTable)
ProxyTableModel(JTable pTable, javafx.beans.value.ObservableValue<TableModel> pTableModelProperty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getColumnClass(int pIdx)
int
getColumnCount()
String
getColumnName(int pIdx)
int
getRowCount()
Object
getValueAt(int pRowIdx, int pColIdx)
Note that if returned object is mutable, it should be properly synchronized.boolean
isCellEditable(int pRowIdx, int pColIdx)
void
setValueAt(Object pVal, int pRowIdx, int pColIdx)
Note that ifpVal
is mutable, it should be properly synchronized.-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Constructor Detail
-
ProxyTableModel
public ProxyTableModel(JTable pTable)
-
ProxyTableModel
public ProxyTableModel(JTable pTable, javafx.beans.value.ObservableValue<TableModel> pTableModelProperty)
-
-
Method Detail
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
-
getColumnName
public String getColumnName(int pIdx)
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getColumnClass
public Class<?> getColumnClass(int pIdx)
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int pRowIdx, int pColIdx)
- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
getValueAt
public Object getValueAt(int pRowIdx, int pColIdx)
Note that if returned object is mutable, it should be properly synchronized.
-
setValueAt
public void setValueAt(Object pVal, int pRowIdx, int pColIdx)
Note that ifpVal
is mutable, it should be properly synchronized.- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
-