- 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 String
VAL
-
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 void
addRow(int pIdx, String pKey, String pVal)
void
addRow(String pKey, String pVal)
Class<?>
getColumnClass(int pIdx)
int
getColumnCount()
String
getColumnName(int pIdx)
int
getRowCount()
String
getValueAt(int pRow, int pCol)
boolean
hasUniqueKeys()
boolean
isCellEditable(int pRow, int pCol)
void
removeRows(int pFromRow, int pToRow)
void
setValueAt(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:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getColumnName
public String getColumnName(int pIdx)
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int pRow, int pCol)
- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
setValueAt
public void setValueAt(Object pVal, int pRow, int pCol)
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
hasUniqueKeys
public boolean hasUniqueKeys()
-
-