Package elki.gui.util
Class ParametersModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- elki.gui.util.ParametersModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class ParametersModel extends javax.swing.table.AbstractTableModel
A Swing TableModel that uses aDynamicParameters
object as storage.- Since:
- 0.3
- Author:
- Erich Schubert
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
columns
Column headers in modelprivate static Logging
LOG
Loggerprivate DynamicParameters
parameters
Parameter storageprivate static long
serialVersionUID
Serial version
-
Constructor Summary
Constructors Constructor Description ParametersModel(DynamicParameters parameters)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getColumnClass(int columnIndex)
int
getColumnCount()
java.lang.String
getColumnName(int column)
int
getRowCount()
java.lang.Object
getValueAt(int rowIndex, int columnIndex)
boolean
isCellEditable(int rowIndex, int columnIndex)
void
setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial version- See Also:
- Constant Field Values
-
LOG
private static final Logging LOG
Logger
-
parameters
private DynamicParameters parameters
Parameter storage
-
columns
public static final java.lang.String[] columns
Column headers in model
-
-
Constructor Detail
-
ParametersModel
public ParametersModel(DynamicParameters parameters)
Constructor- Parameters:
parameters
- Parameter store
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
-
getRowCount
public int getRowCount()
-
getValueAt
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
-
getColumnName
public java.lang.String getColumnName(int column)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getColumnClass
public java.lang.Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
setValueAt
public void setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
-