public class ParameterTable extends Object implements TableModel
Modifier and Type | Class and Description |
---|---|
static class |
ParameterTable.Deserializer
Deserializes a
ParameterTable |
static class |
ParameterTable.ParameterColumn
Column in the parameter table
|
static class |
ParameterTable.Serializer
Serializes a
ParameterTable |
Constructor and Description |
---|
ParameterTable()
Creates a new table
|
ParameterTable(ParameterTable other)
Creates a copy
|
Modifier and Type | Method and Description |
---|---|
void |
addColumn(ParameterTable.ParameterColumn column,
Object initialValue)
Adds a new column to the table
|
void |
addRow()
Creates a new empty row
|
void |
addRow(List<Object> row)
Adds a row with raw values.
|
void |
addTableModelListener(TableModelListener l) |
void |
clear()
Clears the table
|
boolean |
containsColumn(String column) |
ParameterTable.ParameterColumn |
getColumn(int col)
Returns the column definition of given index
|
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
int |
getColumnIndex(String column) |
ParameterTable.ParameterColumn |
getColumnInfo(int columnIndex) |
String |
getColumnName(int columnIndex) |
EventBus |
getEventBus() |
int |
getRowCount() |
Supplier<List<Object>> |
getRowGenerator() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
removeColumn(int col)
Removes the specified column
|
void |
removeRow(int index)
Removes the row with the specified index
|
void |
removeTableModelListener(TableModelListener l) |
void |
setRowGenerator(Supplier<List<Object>> rowGenerator) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
public ParameterTable()
public ParameterTable(ParameterTable other)
other
- the originalpublic void addColumn(ParameterTable.ParameterColumn column, Object initialValue)
column
- the columninitialValue
- the initial valuepublic int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
public Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
public ParameterTable.ParameterColumn getColumnInfo(int columnIndex)
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
public void addTableModelListener(TableModelListener l)
addTableModelListener
in interface TableModel
public void removeTableModelListener(TableModelListener l)
removeTableModelListener
in interface TableModel
public void addRow()
public void removeRow(int index)
index
- the indexpublic ParameterTable.ParameterColumn getColumn(int col)
col
- column indexpublic void removeColumn(int col)
col
- the column indexpublic EventBus getEventBus()
public boolean containsColumn(String column)
public int getColumnIndex(String column)
public void clear()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.