public class BenthosBatchUIHandler extends AbstractTuttiBatchTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,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 ValidateCruiseOperationsService |
validationCruiseService |
protected ValidationService |
validationService |
protected WeightUnit |
weightUnit
Weight unit.
|
persistenceServiceCONFIRMATION_FORMAT, context, ui| Constructor and Description |
|---|
BenthosBatchUIHandler(TuttiUI<?,?> parentUi,
BenthosBatchUI ui) |
addAttachementHighlighter, addCommentHighlighter, clearTableSelection, initBatchTablecleanrRowMonitor, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, onAfterSelectedRowChanged, onRowModifyStateChanged, onRowValidStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, askCancelEditBeforeLeaving, askSaveBeforeLeaving, autoSelectRowInTable, buildReminderLabelTitle, buildReminderLabelTitle, changeValidatorContext, clearValidators, closeDialog, closeUI, decorate, decorate, getConfig, getContext, getDataContext, getDecorator, getModel, getPropertiesToIgnore, getTopestUI, getUI, incrementsMessage, initBeanFilterableComboBox, initBeanFilterableComboBox, initBeanList, initBeanList, initButton, initButtonAttachment, initDatePicker, initLabel, initNumberEditor, initScrollPane, initTextField, initTimeEditor, initUI, isAutoSelectOnFocus, listenModelModifiy, listenValidationTableHasNoFatalError, listenValidatorValid, listModelIsModify, newComboModel, newListCellRender, newListCellRender, newListCellRender, newTableCellRender, newTableCellRender, newTableCellRender, openDialog, openRowMenu, quitScreen, registerValidators, selectListData, setBoolean, setDate, setText, showInformationMessage, showSuccessMessageprotected ValidationService validationService
protected ValidateCruiseOperationsService validationCruiseService
protected final SampleCategoryModel sampleCategoryModel
protected final WeightUnit weightUnit
protected final Integer qualitative_unsorted_id
public BenthosBatchUIHandler(TuttiUI<?,?> parentUi, BenthosBatchUI ui)
protected ColumnIdentifier<BenthosBatchRowModel> getCommentIdentifier()
getCommentIdentifier in class AbstractTuttiBatchTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>protected ColumnIdentifier<BenthosBatchRowModel> getAttachementIdentifier()
getAttachementIdentifier in class AbstractTuttiBatchTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>public void selectFishingOperation(FishingOperation bean)
selectFishingOperation in class AbstractTuttiBatchTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>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,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)
addHighlighters in class AbstractTuttiBatchTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>protected void beforeOpenPopup(int rowIndex,
int columnIndex)
AbstractTuttiUIHandlerbeforeOpenPopup in class AbstractTuttiUIHandler<BenthosBatchUIModel,BenthosBatchUI>rowIndex - selected row index (or lowest selected one)columnIndex - selected column indexpublic jaxx.runtime.validator.swing.SwingValidator<BenthosBatchUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<BenthosBatchUIModel,BenthosBatchUI>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<BenthosBatchUIModel,BenthosBatchUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<BenthosBatchUIModel,BenthosBatchUI>protected JComponent getComponentToFocus()
getComponentToFocus in class AbstractTuttiUIHandler<BenthosBatchUIModel,BenthosBatchUI>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<BenthosBatchUIModel,BenthosBatchUI>public void createBatch()
public void addBatch(CreateBenthosBatchUIModel batchRootRowModel)
public void editFrequencies()
public void splitBatch()
public void addBatchCategory()
public void changeBatchCategory()
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)
protected void saveRow(BenthosBatchRowModel row)
protected void loadBatchRow(BenthosBatchRowModel parentRow, BenthosBatchRowModel newRow, Integer sampleCategoryId, Serializable categoryValue, Float categoryWeight, Float categoryComputedWeight)
protected <C extends Serializable> void addSampleCategoryColumnToModel(TableColumnModel columnModel, 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 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.Copyright © 2012–2013 Ifremer. All rights reserved.