public class BenthosBatchUIHandler extends AbstractTuttiBatchTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchTableModel,BenthosBatchUI>
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
qualitative_unsorted_id
id of the unsorted qualitative value to remove of V/HV universe.
|
protected SampleCategoryModel |
sampleCategoryModel
Sample categories model.
|
protected WeightUnit |
weightUnit
Weight unit.
|
| Constructor and Description |
|---|
BenthosBatchUIHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(CreateBenthosBatchUIModel batchRootRowModel) |
protected void |
addHighlighters(org.jdesktop.swingx.JXTable table) |
void |
addSampleCategoryBatch(BenthosBatchRowModel parentBatch,
SampleCategoryModelEntry sampleCategoryDef,
List<SplitBenthosBatchRowModel> rows,
Float totalRowWeight) |
protected <C extends Serializable> |
addSampleCategoryColumnToModel(TableColumnModel columnModel,
org.nuiton.jaxx.application.swing.table.ColumnIdentifier<BenthosBatchRowModel> columnIdentifier,
org.nuiton.decorator.Decorator<C> decorator,
TableCellRenderer defaultRenderer,
WeightUnit weightUnit) |
protected void |
addToSpeciesUsed(BenthosBatchRowModel row) |
void |
afterInit(BenthosBatchUI ui) |
void |
beforeInit(BenthosBatchUI ui) |
protected void |
beforeOpenPopup(int rowIndex,
int columnIndex) |
void |
collectChildren(BenthosBatchRowModel row,
Set<BenthosBatchRowModel> collectedRows) |
protected BenthosBatch |
convertRowToEntity(BenthosBatchRowModel row,
boolean convertParent) |
protected org.nuiton.jaxx.application.swing.table.ColumnIdentifier<BenthosBatchRowModel> |
getAttachementIdentifier() |
protected org.nuiton.jaxx.application.swing.table.ColumnIdentifier<BenthosBatchRowModel> |
getCommentIdentifier() |
protected JComponent |
getComponentToFocus() |
String |
getFilterBenthosBatchRootButtonText(int rootNumber) |
Integer |
getQualitative_unsorted_id() |
SampleCategoryModel |
getSampleCategoryModel() |
Set<Serializable> |
getSampleUsedValues(BenthosBatchRowModel row,
int sampleCategoryId)
Return all the sample category values (of the given
sampleCategoryId) for all brothers of the given row. |
protected SpeciesBatchDecorator<BenthosBatchRowModel> |
getSpeciesColumnDecorator() |
protected SpeciesBatchDecoratorComparator<BenthosBatchRowModel> |
getSpeciesRowComparator() |
org.jdesktop.swingx.JXTable |
getTable() |
BenthosBatchTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<BenthosBatchUIModel> |
getValidator() |
protected void |
initBatchTable(org.jdesktop.swingx.JXTable table,
org.jdesktop.swingx.table.TableColumnModelExt columnModel,
BenthosBatchTableModel tableModel) |
protected boolean |
isRowValid(BenthosBatchRowModel row)
Validates the given row.
|
BenthosBatchRowModel |
loadBatch(BenthosBatch aBatch,
BenthosBatchRowModel parentRow,
List<BenthosBatchRowModel> rows) |
protected void |
loadBatchRow(BenthosBatchRowModel parentRow,
BenthosBatchRowModel newRow,
Integer sampleCategoryId,
Serializable categoryValue,
Float categoryWeight,
Float categoryComputedWeight) |
void |
onCloseUI() |
protected void |
onModelRowsChanged(List<BenthosBatchRowModel> rows) |
protected void |
onRowModified(int rowIndex,
BenthosBatchRowModel row,
String propertyName,
Object oldValue,
Object newValue)
Invoke each time the
AbstractTuttiBeanUIModel.modify state on
the current selected row changed. |
void |
removeFromSpeciesUsed(BenthosBatchRowModel row) |
void |
saveRow(BenthosBatchRowModel row) |
void |
saveRows(Iterable<BenthosBatchRowModel> rows) |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<BenthosBatchRowModel> rowMonitor,
BenthosBatchRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
void |
selectFishingOperation(FishingOperation bean) |
void |
splitBatch(SampleCategoryModelEntry sampleCategoryDef,
List<SplitBenthosBatchRowModel> rows,
Float totalRowWeight) |
void |
updateTotalFromFrequencies(BenthosBatchRowModel row) |
addAttachementHighlighter, addCommentHighlighter, clearTableSelectioncleanrRowMonitor, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, onAfterSelectedRowChanged, onRowModifyStateChanged, onRowValidStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraddColumnToModel, addFloatColumnToModel, buildReminderLabelTitle, buildReminderLabelTitle, clearValidators, closeUI, getConfig, getContext, getDataContext, getDecorator, getPersistenceService, getPropertiesToIgnore, getTopestUI, getValidateCruiseOperationsService, getValidationService, getWeightStringValue, getWeightStringValue, initButton, initButtonAttachment, initJXTitledPanel, initLabel, initNumberEditor, initTextField, initUIComponent, listenModelModifiy, listenValidationTableHasNoFatalError, listenValidatorValid, listModelIsModify, registerValidators, resetComboBoxAction, showInformationMessageaddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, addIntegerColumnToModel, affectKeyStroke, askCancelEditBeforeLeaving, askSaveBeforeLeaving, autoSelectRowInTable, changeValidatorContext, closeDialog, decorate, decorate, getListValidators, getModel, getParentContainer, getSimpleValidators, getUI, incrementsMessage, initBeanComboBox, initBeanComboBox, initBeanFilterableComboBox, initBeanFilterableComboBox, initBeanList, initBeanList, initComponentToFocus, initCoordinateDMDEditor, initCoordinateDMSEditor, initDatePicker, initNumberEditor, initScrollPane, initTimeEditor, initUI, initValidators, isAutoSelectOnFocus, newComboModel, newListCellRender, newListCellRender, newListCellRender, newNumberCellRenderer, newTableCellRender, newTableCellRender, newTableCellRender, openDialog, openRowMenu, quitInternalScreen, quitScreen, quitScreen, selectListData, setBoolean, setDate, setFile, setText, showSuccessMessage, useListValidators, useSimpleValidatorsprotected SampleCategoryModel sampleCategoryModel
protected WeightUnit weightUnit
protected Integer qualitative_unsorted_id
protected org.nuiton.jaxx.application.swing.table.ColumnIdentifier<BenthosBatchRowModel> getCommentIdentifier()
protected org.nuiton.jaxx.application.swing.table.ColumnIdentifier<BenthosBatchRowModel> getAttachementIdentifier()
public void selectFishingOperation(FishingOperation bean)
public BenthosBatchTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>protected boolean isRowValid(BenthosBatchRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
BenthosBatchRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiBatchTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchTableModel,BenthosBatchUI>rowIndex - row index of the modified rowrow - modified rowpropertyName - name of the modified property of the rowoldValue - old value of the modified propertynewValue - new value of the modified propertyprotected void saveSelectedRowIfRequired(TuttiBeanMonitor<BenthosBatchRowModel> rowMonitor, BenthosBatchRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected void onModelRowsChanged(List<BenthosBatchRowModel> rows)
onModelRowsChanged in class AbstractTuttiTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>protected void addHighlighters(org.jdesktop.swingx.JXTable table)
protected void beforeOpenPopup(int rowIndex,
int columnIndex)
beforeOpenPopup in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<BenthosBatchUIModel,BenthosBatchUI>public jaxx.runtime.validator.swing.SwingValidator<BenthosBatchUIModel> getValidator()
getValidator in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<BenthosBatchUIModel,BenthosBatchUI>public void beforeInit(BenthosBatchUI ui)
beforeInit in interface jaxx.runtime.spi.UIHandler<BenthosBatchUI>beforeInit in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<BenthosBatchUIModel,BenthosBatchUI>public void afterInit(BenthosBatchUI ui)
protected void initBatchTable(org.jdesktop.swingx.JXTable table,
org.jdesktop.swingx.table.TableColumnModelExt columnModel,
BenthosBatchTableModel tableModel)
protected JComponent getComponentToFocus()
getComponentToFocus in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<BenthosBatchUIModel,BenthosBatchUI>public void onCloseUI()
onCloseUI in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<BenthosBatchUIModel,BenthosBatchUI>public SampleCategoryModel getSampleCategoryModel()
public Integer getQualitative_unsorted_id()
public void addBatch(CreateBenthosBatchUIModel batchRootRowModel)
public void splitBatch(SampleCategoryModelEntry sampleCategoryDef, List<SplitBenthosBatchRowModel> rows, Float totalRowWeight)
public void addSampleCategoryBatch(BenthosBatchRowModel parentBatch, SampleCategoryModelEntry sampleCategoryDef, List<SplitBenthosBatchRowModel> rows, Float totalRowWeight)
public void updateTotalFromFrequencies(BenthosBatchRowModel row)
public void saveRows(Iterable<BenthosBatchRowModel> rows)
public String getFilterBenthosBatchRootButtonText(int rootNumber)
public void collectChildren(BenthosBatchRowModel row, Set<BenthosBatchRowModel> collectedRows)
public BenthosBatchRowModel loadBatch(BenthosBatch aBatch, BenthosBatchRowModel parentRow, List<BenthosBatchRowModel> rows)
public void removeFromSpeciesUsed(BenthosBatchRowModel row)
public void saveRow(BenthosBatchRowModel row)
public Set<Serializable> getSampleUsedValues(BenthosBatchRowModel row, int sampleCategoryId)
sampleCategoryId) for all brothers of the given row.row - the rowsampleCategoryId - id of the sample category to seek in brothers of the given rowsampleCategoryId) for all brothers of the given row.protected void loadBatchRow(BenthosBatchRowModel parentRow, BenthosBatchRowModel newRow, Integer sampleCategoryId, Serializable categoryValue, Float categoryWeight, Float categoryComputedWeight)
protected <C extends Serializable> void addSampleCategoryColumnToModel(TableColumnModel columnModel, org.nuiton.jaxx.application.swing.table.ColumnIdentifier<BenthosBatchRowModel> columnIdentifier, org.nuiton.decorator.Decorator<C> decorator, TableCellRenderer defaultRenderer, WeightUnit weightUnit)
protected void addToSpeciesUsed(BenthosBatchRowModel row)
protected BenthosBatch convertRowToEntity(BenthosBatchRowModel row, boolean convertParent)
protected SpeciesBatchDecoratorComparator<BenthosBatchRowModel> getSpeciesRowComparator()
protected SpeciesBatchDecorator<BenthosBatchRowModel> getSpeciesColumnDecorator()
Copyright © 2012–2015 Ifremer. All rights reserved.