public class SpeciesBatchTableModel extends AbstractTuttiTableModel<SpeciesBatchRowModel>
| Modifier and Type | Field and Description |
|---|---|
static ColumnIdentifier<SpeciesBatchRowModel> |
ATTACHMENT |
static ColumnIdentifier<SpeciesBatchRowModel> |
COMMENT |
static ColumnIdentifier<SpeciesBatchRowModel> |
COMPUTED_NUMBER |
protected Set<ColumnIdentifier<SpeciesBatchRowModel>> |
frequencyCols
Columns for the frequency edition.
|
protected SampleCategoryModel |
sampleCategoryModel
Sample categories model.
|
protected Set<SampleCategoryColumnIdentifier<SpeciesBatchRowModel>> |
sampleCols
Columns implied in the sample category definition.
|
static ColumnIdentifier<SpeciesBatchRowModel> |
SPECIES |
static ColumnIdentifier<SpeciesBatchRowModel> |
SPECIES_TO_CONFIRM |
static ColumnIdentifier<SpeciesBatchRowModel> |
WEIGHT |
protected WeightUnit |
weightUnit
Weight unit.
|
createEmptyRowIsEmpty, createNewRow, identifiers, noneEditableCols, rowslistenerList| Constructor and Description |
|---|
SpeciesBatchTableModel(WeightUnit weightUnit,
SampleCategoryModel sampleCategoryModel,
org.jdesktop.swingx.table.TableColumnModelExt columnModel) |
| Modifier and Type | Method and Description |
|---|---|
SpeciesBatchRowModel |
createNewRow() |
Integer |
getNextEditableFrequencyRow(Integer rowIndex)
Return the next editable row index for frequency from the given
rowIndex, or null if none found. |
protected boolean |
isCellEditable(int rowIndex,
int columnIndex,
ColumnIdentifier<SpeciesBatchRowModel> propertyName) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex,
ColumnIdentifier<SpeciesBatchRowModel> propertyName,
SpeciesBatchRowModel entry) |
addNewRow, addNewRow, addNewRow, fireTableCellUpdated, getColumnCount, getEntry, getIdentifier, getRowCount, getRowIndex, getRows, getValueAt, isCellEditable, isCreateEmptyRowIsEmpty, isCreateNewRow, onRowAdded, onRowsChanged, removeRow, setNoneEditableCols, setRows, setValueAt, updateRowaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListenerpublic static final ColumnIdentifier<SpeciesBatchRowModel> SPECIES
public static final ColumnIdentifier<SpeciesBatchRowModel> WEIGHT
public static final ColumnIdentifier<SpeciesBatchRowModel> COMPUTED_NUMBER
public static final ColumnIdentifier<SpeciesBatchRowModel> COMMENT
public static final ColumnIdentifier<SpeciesBatchRowModel> ATTACHMENT
public static final ColumnIdentifier<SpeciesBatchRowModel> SPECIES_TO_CONFIRM
protected final Set<ColumnIdentifier<SpeciesBatchRowModel>> frequencyCols
protected final Set<SampleCategoryColumnIdentifier<SpeciesBatchRowModel>> sampleCols
protected final SampleCategoryModel sampleCategoryModel
protected final WeightUnit weightUnit
public SpeciesBatchTableModel(WeightUnit weightUnit, SampleCategoryModel sampleCategoryModel, org.jdesktop.swingx.table.TableColumnModelExt columnModel)
public SpeciesBatchRowModel createNewRow()
createNewRow in class AbstractTuttiTableModel<SpeciesBatchRowModel>public void setValueAt(Object aValue, int rowIndex, int columnIndex, ColumnIdentifier<SpeciesBatchRowModel> propertyName, SpeciesBatchRowModel entry)
setValueAt in class AbstractTuttiTableModel<SpeciesBatchRowModel>protected boolean isCellEditable(int rowIndex,
int columnIndex,
ColumnIdentifier<SpeciesBatchRowModel> propertyName)
isCellEditable in class AbstractTuttiTableModel<SpeciesBatchRowModel>public Integer getNextEditableFrequencyRow(Integer rowIndex)
rowIndex, or null if none found.rowIndex - the starting index where to lookrowIndex, or null if none found.Copyright © 2012–2013 Ifremer. All rights reserved.