- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- com.iamsoft.util.ui.swing.PropertyEditorTableModel
-
- All Implemented Interfaces:
Serializable,TableModel
public class PropertyEditorTableModel extends AbstractTableModel
Edit map of key/value pairs.- See Also:
EnhancedSwingWorker, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringVAL-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description PropertyEditorTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRow(int pIdx, String pKey, String pVal)voidaddRow(String pKey, String pVal)Class<?>getColumnClass(int pIdx)intgetColumnCount()StringgetColumnName(int pIdx)intgetRowCount()StringgetValueAt(int pRow, int pCol)booleanhasUniqueKeys()booleanisCellEditable(int pRow, int pCol)voidremoveRows(int pFromRow, int pToRow)voidsetValueAt(Object pVal, int pRow, int pCol)-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
VAL
public static final String VAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
removeRows
public void removeRows(int pFromRow, int pToRow)- Parameters:
pFromRow- Inclusive range start.pToRow- Exclusive range end.
-
getColumnCount
public int getColumnCount()
-
getRowCount
public int getRowCount()
-
getValueAt
public String getValueAt(int pRow, int pCol)
-
getColumnClass
public Class<?> getColumnClass(int pIdx)
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getColumnName
public String getColumnName(int pIdx)
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int pRow, int pCol)- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
setValueAt
public void setValueAt(Object pVal, int pRow, int pCol)
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
hasUniqueKeys
public boolean hasUniqueKeys()
-
-