public class SpeciesBatchTableModel extends org.nuiton.jaxx.application.swing.table.AbstractApplicationTableModel<SpeciesBatchRowModel>
| Modifier and Type | Field and Description |
|---|---|
static org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> |
ATTACHMENT |
static org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> |
COMMENT |
static org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> |
COMPUTED_NUMBER |
protected Set<org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel>> |
frequencyCols
Columns for the frequency edition.
|
static org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> |
ID |
protected SampleCategoryModel |
sampleCategoryModel
Sample categories model.
|
protected Set<SampleCategoryColumnIdentifier<SpeciesBatchRowModel>> |
sampleCols
Columns implied in the sample category definition.
|
static org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> |
SPECIES |
static org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> |
SPECIES_TO_CONFIRM |
static org.nuiton.jaxx.application.swing.table.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 |
|---|---|
protected void |
collectShell(SpeciesBatchRowModel row,
Set<SpeciesBatchRowModel> collectedRows) |
SpeciesBatchRowModel |
createNewRow() |
int |
getNextChildRowIndex(SpeciesBatchRowModel 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. |
SpeciesBatchRowModel |
getPreviousSibling(SpeciesBatchRowModel 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,
org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> propertyName) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex,
org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> propertyName,
SpeciesBatchRowModel entry) |
Serializable |
updateSampleCategorieValue(SpeciesBatchRowModel row,
int columnIndex,
Serializable newValue)
Update the sample category value of the given
row. |
void |
updateShell(Set<SpeciesBatchRowModel> shell,
int columnIndex)
Update all the given cells for the given column.
|
protected void |
updateShell(SpeciesBatchRowModel entry,
int columnIndex)
Update all the cells of the given row shell for a given column.
|
addNewRow, addNewRow, addNewRow, fireTableCellUpdated, fireTableRowsInserted, fireTableRowUpdatedShell, getCell, getColumnCount, getColumnIndex, getColumnName, getEntry, getIdentifier, getRowCount, getRowIndex, getRows, getValueAt, isCellEditable, isCreateEmptyRowIsEmpty, isCreateNewRow, isFirstRow, isLastRow, moveDown, moveUp, onBeforeRowsChanged, onRowAdded, onRowRemoved, onRowsChanged, onRowUpdated, removeRow, setNoneEditableCols, setRows, setValueAt, updateRowaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListenerpublic static final org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> ID
public static final org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> SPECIES
public static final org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> WEIGHT
public static final org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> COMPUTED_NUMBER
public static final org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> COMMENT
public static final org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> ATTACHMENT
public static final org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> SPECIES_TO_CONFIRM
protected final Set<org.nuiton.jaxx.application.swing.table.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)
protected void collectShell(SpeciesBatchRowModel row, Set<SpeciesBatchRowModel> collectedRows)
collectShell in class org.nuiton.jaxx.application.swing.table.AbstractApplicationTableModel<SpeciesBatchRowModel>public SpeciesBatchRowModel createNewRow()
createNewRow in class org.nuiton.jaxx.application.swing.table.AbstractApplicationTableModel<SpeciesBatchRowModel>public void setValueAt(Object aValue, int rowIndex, int columnIndex, org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> propertyName, SpeciesBatchRowModel entry)
setValueAt in class org.nuiton.jaxx.application.swing.table.AbstractApplicationTableModel<SpeciesBatchRowModel>protected boolean isCellEditable(int rowIndex,
int columnIndex,
org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> propertyName)
isCellEditable in class org.nuiton.jaxx.application.swing.table.AbstractApplicationTableModel<SpeciesBatchRowModel>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(SpeciesBatchRowModel 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 Serializable updateSampleCategorieValue(SpeciesBatchRowModel 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 SpeciesBatchRowModel getPreviousSibling(SpeciesBatchRowModel row)
null if not exist.row - where to startnull if not exist.public void updateShell(Set<SpeciesBatchRowModel> shell, int columnIndex)
shell - shell to updatecolumnIndex - the column index to updatepublic List<Species> getSpeciesList()
protected void updateShell(SpeciesBatchRowModel entry, int columnIndex)
entry - the first row to updatecolumnIndex - the column index to updateCopyright © 2012–2015 Ifremer. All rights reserved.