public class JIPipeExtendedMultiDataTableModel extends Object implements TableModel
JIPipeDataTable
Please not the previews are initialized with deferred rendering.
You will need to set a scroll pane to. Then the rendering will work.Constructor and Description |
---|
JIPipeExtendedMultiDataTableModel(JTable table,
boolean withCompartmentAndAlgorithm) |
Modifier and Type | Method and Description |
---|---|
void |
add(JIPipeProject project,
JIPipeDataTable dataTable)
Adds an
JIPipeDataTableMetadata |
void |
addTableModelListener(TableModelListener l) |
void |
clearPreviewCache() |
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
List<String> |
getDataAnnotationColumns() |
int |
getRow(int multiRow)
Returns the location
|
int |
getRowCount() |
List<Integer> |
getRowList() |
JScrollPane |
getScrollPane() |
JIPipeDataTable |
getSlot(int row)
Gets the slot that defined the specified row
|
List<JIPipeDataTable> |
getSlotList() |
List<String> |
getTextAnnotationColumns() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isWithCompartmentAndAlgorithm() |
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 JIPipeExtendedMultiDataTableModel(JTable table, boolean withCompartmentAndAlgorithm)
public List<JIPipeDataTable> getSlotList()
public void add(JIPipeProject project, JIPipeDataTable dataTable)
JIPipeDataTableMetadata
project
- The projectdataTable
- The data slotpublic int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public int toAnnotationColumnIndex(int columnIndex)
columnIndex
- absolute column indexpublic int toDataAnnotationColumnIndex(int columnIndex)
columnIndex
- absolute column indexpublic String getColumnName(int columnIndex)
getColumnName
in interface TableModel
public Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
public boolean isWithCompartmentAndAlgorithm()
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public void clearPreviewCache()
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 JIPipeDataTable getSlot(int row)
row
- Row indexpublic int getRow(int multiRow)
multiRow
- the rowpublic 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.