public class DataBatchAssistantTableModel extends Object implements TableModel
JIPipeDataTable
to display additional columns.
For example, it is capable of displaying previews.Constructor and Description |
---|
DataBatchAssistantTableModel(JTable table,
JIPipeDataTable dataTable)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
void |
addTableModelListener(TableModelListener l) |
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
JIPipeDataTable |
getDataTable() |
int |
getRowCount() |
JScrollPane |
getScrollPane() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
removeTableModelListener(TableModelListener l) |
void |
setScrollPane(JScrollPane scrollPane) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
int |
toAnnotationColumnIndex(int columnIndex)
Converts the column index to an annotation column index, or returns -1 if the column is not one
|
int |
toDataAnnotationColumnIndex(int columnIndex)
Converts the column index to a data annotation column index, or returns -1 if the column is not one
|
void |
updateRenderedPreviews() |
public DataBatchAssistantTableModel(JTable table, JIPipeDataTable dataTable)
table
- the tabledataTable
- the wrapped slotpublic JIPipeDataTable getDataTable()
public int toAnnotationColumnIndex(int columnIndex)
columnIndex
- absolute column indexpublic int toDataAnnotationColumnIndex(int columnIndex)
columnIndex
- absolute column indexpublic 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 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 JScrollPane getScrollPane()
public void setScrollPane(JScrollPane scrollPane)
public void updateRenderedPreviews()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.