public class BenthosBatchTableModel extends AbstractTuttiTableModel<BenthosBatchRowModel>
| Modifier and Type | Field and Description |
|---|---|
static ColumnIdentifier<BenthosBatchRowModel> |
ATTACHMENT |
static ColumnIdentifier<BenthosBatchRowModel> |
COMMENT |
static ColumnIdentifier<BenthosBatchRowModel> |
COMPUTED_NUMBER |
protected Set<ColumnIdentifier<BenthosBatchRowModel>> |
frequencyCols
Columns for the frequency edition.
|
protected SampleCategoryModel |
sampleCategoryModel
Sample categories model.
|
protected Set<SampleCategoryColumnIdentifier<BenthosBatchRowModel>> |
sampleCols
Columns implies in the sample category definition.
|
static ColumnIdentifier<BenthosBatchRowModel> |
SPECIES |
static ColumnIdentifier<BenthosBatchRowModel> |
SPECIES_TO_CONFIRM |
static ColumnIdentifier<BenthosBatchRowModel> |
WEIGHT |
protected WeightUnit |
weightUnit
Weight unit.
|
createEmptyRowIsEmpty, createNewRow, identifiers, noneEditableCols, rowslistenerList| Constructor and Description |
|---|
BenthosBatchTableModel(WeightUnit weightUnit,
SampleCategoryModel sampleCategoryModel,
org.jdesktop.swingx.table.TableColumnModelExt columnModel) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectShell(BenthosBatchRowModel row,
Set<BenthosBatchRowModel> collectedRows) |
BenthosBatchRowModel |
createNewRow() |
int |
getNextChildRowIndex(BenthosBatchRowModel row)
Return the index of the next row that can be inserted as a child of the
given row.
|
Integer |
getNextEditableFrequencyRow(Integer rowIndex)
Return the next editable row index for frequency from the given
rowIndex, or null if none found. |
BenthosBatchRowModel |
getPreviousSibling(BenthosBatchRowModel row)
Return previous sibling row, or
null if not exist. |
Integer |
getSampleCategoryId(int columnIndex)
Return the sample category id of a column or
null if not on a
sample category column. |
List<Species> |
getSpeciesList()
Return the list of used species in the table (used to fill the
comparator cache for species sort)
|
protected boolean |
isCellEditable(int rowIndex,
int columnIndex,
ColumnIdentifier<BenthosBatchRowModel> propertyName) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex,
ColumnIdentifier<BenthosBatchRowModel> propertyName,
BenthosBatchRowModel entry) |
void |
updateSampleCategorieValue(BenthosBatchRowModel row,
int columnIndex,
Serializable newValue)
Update the sample category value of the given
row. |
protected void |
updateShell(BenthosBatchRowModel entry,
int columnIndex)
Update all the cells of the given row shell for a given column.
|
void |
updateShell(Set<BenthosBatchRowModel> shell,
int columnIndex)
Update all the given cells for the given column.
|
addNewRow, addNewRow, addNewRow, fireTableCellUpdated, fireTableRowsInserted, fireTableRowUpdatedShell, 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<BenthosBatchRowModel> SPECIES
public static final ColumnIdentifier<BenthosBatchRowModel> WEIGHT
public static final ColumnIdentifier<BenthosBatchRowModel> COMPUTED_NUMBER
public static final ColumnIdentifier<BenthosBatchRowModel> COMMENT
public static final ColumnIdentifier<BenthosBatchRowModel> ATTACHMENT
public static final ColumnIdentifier<BenthosBatchRowModel> SPECIES_TO_CONFIRM
protected final Set<ColumnIdentifier<BenthosBatchRowModel>> frequencyCols
protected final Set<SampleCategoryColumnIdentifier<BenthosBatchRowModel>> sampleCols
protected final SampleCategoryModel sampleCategoryModel
protected final WeightUnit weightUnit
public BenthosBatchTableModel(WeightUnit weightUnit, SampleCategoryModel sampleCategoryModel, org.jdesktop.swingx.table.TableColumnModelExt columnModel)
protected void collectShell(BenthosBatchRowModel row, Set<BenthosBatchRowModel> collectedRows)
collectShell in class AbstractTuttiTableModel<BenthosBatchRowModel>public BenthosBatchRowModel createNewRow()
createNewRow in class AbstractTuttiTableModel<BenthosBatchRowModel>public void setValueAt(Object aValue, int rowIndex, int columnIndex, ColumnIdentifier<BenthosBatchRowModel> propertyName, BenthosBatchRowModel entry)
setValueAt in class AbstractTuttiTableModel<BenthosBatchRowModel>protected boolean isCellEditable(int rowIndex,
int columnIndex,
ColumnIdentifier<BenthosBatchRowModel> propertyName)
isCellEditable in class AbstractTuttiTableModel<BenthosBatchRowModel>public Integer getNextEditableFrequencyRow(Integer rowIndex)
rowIndex, or null if none found.rowIndex - the starting index where to lookrowIndex, or null if none found.public final int getNextChildRowIndex(BenthosBatchRowModel row)
row - the parent rowpublic Integer getSampleCategoryId(int columnIndex)
null if not on a
sample category column.columnIndex - index of the column to look atnull if not on a
sample category column.public void updateSampleCategorieValue(BenthosBatchRowModel row, int columnIndex, Serializable newValue)
row.row - the row to walk throughcolumnIndex - index of the column where the sample category isnewValue - new sample category value to setpublic BenthosBatchRowModel getPreviousSibling(BenthosBatchRowModel row)
null if not exist.row - where to startnull if not exist.public void updateShell(Set<BenthosBatchRowModel> shell, int columnIndex)
shell - shell to updatecolumnIndex - the column index to updatepublic List<Species> getSpeciesList()
protected void updateShell(BenthosBatchRowModel entry, int columnIndex)
entry - the first row to updatecolumnIndex - the column index to updateCopyright © 2012–2013 Ifremer. All rights reserved.