- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- bdv.ui.sourcetable.SourceTableModel
-
- All Implemented Interfaces:
Serializable,TableModel
public class SourceTableModel extends AbstractTableModel
- Author:
- Tobias Pietzsch
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLOR_COLUMNstatic intIS_ACTIVE_COLUMNstatic intIS_CURRENT_COLUMNstatic intNAME_COLUMN-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description SourceTableModel(ViewerState state, ConverterSetups converterSetups)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getColumnClass(int columnIndex)intgetColumnCount()StringgetColumnName(int column)intgetRowCount()bdv.ui.sourcetable.SourceTableModel.SourceModelgetValueAt(int rowIndex)ObjectgetValueAt(int rowIndex, int columnIndex)booleanisCellEditable(int rowIndex, int columnIndex)-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
-
-
-
Field Detail
-
NAME_COLUMN
public static final int NAME_COLUMN
- See Also:
- Constant Field Values
-
IS_CURRENT_COLUMN
public static final int IS_CURRENT_COLUMN
- See Also:
- Constant Field Values
-
IS_ACTIVE_COLUMN
public static final int IS_ACTIVE_COLUMN
- See Also:
- Constant Field Values
-
COLOR_COLUMN
public static final int COLOR_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SourceTableModel
public SourceTableModel(ViewerState state, ConverterSetups converterSetups)
-
-
Method Detail
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
-
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
-
getColumnClass
public Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getValueAt
public bdv.ui.sourcetable.SourceTableModel.SourceModel getValueAt(int rowIndex)
-
-