public class SpeciesBatchUIHandler extends AbstractTuttiBatchTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchTableModel,SpeciesBatchUI>
| 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 |
|---|
SpeciesBatchUIHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(CreateSpeciesBatchUIModel batchRootRowModel) |
void |
addBatchCategory() |
protected void |
addHighlighters(org.jdesktop.swingx.JXTable table) |
void |
addSampleCategoryBatch(SpeciesBatchRowModel parentBatch,
SampleCategoryModelEntry sampleCategoryDef,
List<SplitSpeciesBatchRowModel> rows,
Float totalRowWeight) |
protected <C extends Serializable> |
addSampleCategoryColumnToModel(TableColumnModel columnModel,
org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> columnIdentifier,
org.nuiton.decorator.Decorator<C> decorator,
TableCellRenderer defaultRenderer,
WeightUnit weightUnit) |
protected void |
addToSpeciesUsed(SpeciesBatchRowModel row) |
void |
afterInit(SpeciesBatchUI ui) |
void |
beforeInit(SpeciesBatchUI ui) |
protected void |
beforeOpenPopup(int rowIndex,
int columnIndex) |
void |
changeBatchCategory() |
void |
collectChildren(SpeciesBatchRowModel row,
Set<SpeciesBatchRowModel> collectedRows) |
protected SpeciesBatch |
convertRowToEntity(SpeciesBatchRowModel row,
boolean convertParent) |
void |
createBatch() |
void |
editFrequencies() |
protected org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> |
getAttachementIdentifier() |
protected org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> |
getCommentIdentifier() |
protected JComponent |
getComponentToFocus() |
String |
getFilterSpeciesBatchRootButtonText(int rootNumber) |
protected Set<Serializable> |
getSampleUsedValues(SpeciesBatchRowModel row,
int sampleCategoryId)
Return all the sample category values (of the given
sampleCategoryId) for all brothers of the given row. |
protected SpeciesBatchDecorator<SpeciesBatchRowModel> |
getSpeciesColumnDecorator() |
protected SpeciesBatchDecoratorComparator<SpeciesBatchRowModel> |
getSpeciesRowComparator() |
org.jdesktop.swingx.JXTable |
getTable() |
SpeciesBatchTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<SpeciesBatchUIModel> |
getValidator() |
protected void |
initBatchTable(org.jdesktop.swingx.JXTable table,
org.jdesktop.swingx.table.TableColumnModelExt columnModel,
SpeciesBatchTableModel tableModel) |
protected boolean |
isRowValid(SpeciesBatchRowModel row)
Validates the given row.
|
SpeciesBatchRowModel |
loadBatch(SpeciesBatch aBatch,
SpeciesBatchRowModel parentRow,
List<SpeciesBatchRowModel> rows) |
protected void |
loadBatchRow(SpeciesBatchRowModel parentRow,
SpeciesBatchRowModel newRow,
Integer sampleCategoryId,
Serializable categoryValue,
Float categoryWeight,
Float categoryComputedWeight) |
void |
onCloseUI() |
protected void |
onModelRowsChanged(List<SpeciesBatchRowModel> rows) |
protected void |
onRowModified(int rowIndex,
SpeciesBatchRowModel row,
String propertyName,
Object oldValue,
Object newValue)
Invoke each time the
AbstractTuttiBeanUIModel.modify state on
the current selected row changed. |
void |
removeFromSpeciesUsed(SpeciesBatchRowModel row) |
protected void |
saveRow(SpeciesBatchRowModel row) |
void |
saveRows(Iterable<SpeciesBatchRowModel> rows) |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<SpeciesBatchRowModel> rowMonitor,
SpeciesBatchRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
void |
selectFishingOperation(FishingOperation bean) |
void |
splitBatch() |
void |
splitBatch(SampleCategoryModelEntry sampleCategoryDef,
List<SplitSpeciesBatchRowModel> rows,
Float totalRowWeight) |
void |
updateTotalFromFrequencies(SpeciesBatchRowModel 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, initButtonAttachment, initJXTitledPanel, initLabel, initTextField, initUIComponent, listenModelModifiy, listenValidationTableHasNoFatalError, listenValidatorValid, listModelIsModify, registerValidators, 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, initButton, 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<SpeciesBatchRowModel> getCommentIdentifier()
protected org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> getAttachementIdentifier()
public void selectFishingOperation(FishingOperation bean)
public SpeciesBatchTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchUI>protected boolean isRowValid(SpeciesBatchRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchUI>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
SpeciesBatchRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiBatchTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchTableModel,SpeciesBatchUI>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<SpeciesBatchRowModel> rowMonitor, SpeciesBatchRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected void onModelRowsChanged(List<SpeciesBatchRowModel> rows)
onModelRowsChanged in class AbstractTuttiTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchUI>protected void addHighlighters(org.jdesktop.swingx.JXTable table)
protected void beforeOpenPopup(int rowIndex,
int columnIndex)
beforeOpenPopup in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<SpeciesBatchUIModel,SpeciesBatchUI>public jaxx.runtime.validator.swing.SwingValidator<SpeciesBatchUIModel> getValidator()
getValidator in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<SpeciesBatchUIModel,SpeciesBatchUI>public void beforeInit(SpeciesBatchUI ui)
beforeInit in interface jaxx.runtime.spi.UIHandler<SpeciesBatchUI>beforeInit in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<SpeciesBatchUIModel,SpeciesBatchUI>public void afterInit(SpeciesBatchUI ui)
protected void initBatchTable(org.jdesktop.swingx.JXTable table,
org.jdesktop.swingx.table.TableColumnModelExt columnModel,
SpeciesBatchTableModel tableModel)
protected JComponent getComponentToFocus()
getComponentToFocus in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<SpeciesBatchUIModel,SpeciesBatchUI>public void onCloseUI()
onCloseUI in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<SpeciesBatchUIModel,SpeciesBatchUI>public void createBatch()
public void addBatch(CreateSpeciesBatchUIModel batchRootRowModel)
public void editFrequencies()
public void splitBatch()
public void addBatchCategory()
public void changeBatchCategory()
public void splitBatch(SampleCategoryModelEntry sampleCategoryDef, List<SplitSpeciesBatchRowModel> rows, Float totalRowWeight)
public void addSampleCategoryBatch(SpeciesBatchRowModel parentBatch, SampleCategoryModelEntry sampleCategoryDef, List<SplitSpeciesBatchRowModel> rows, Float totalRowWeight)
public void updateTotalFromFrequencies(SpeciesBatchRowModel row)
public void saveRows(Iterable<SpeciesBatchRowModel> rows)
public String getFilterSpeciesBatchRootButtonText(int rootNumber)
public void collectChildren(SpeciesBatchRowModel row, Set<SpeciesBatchRowModel> collectedRows)
public SpeciesBatchRowModel loadBatch(SpeciesBatch aBatch, SpeciesBatchRowModel parentRow, List<SpeciesBatchRowModel> rows)
public void removeFromSpeciesUsed(SpeciesBatchRowModel row)
protected void saveRow(SpeciesBatchRowModel row)
protected void loadBatchRow(SpeciesBatchRowModel parentRow, SpeciesBatchRowModel newRow, Integer sampleCategoryId, Serializable categoryValue, Float categoryWeight, Float categoryComputedWeight)
protected <C extends Serializable> void addSampleCategoryColumnToModel(TableColumnModel columnModel, org.nuiton.jaxx.application.swing.table.ColumnIdentifier<SpeciesBatchRowModel> columnIdentifier, org.nuiton.decorator.Decorator<C> decorator, TableCellRenderer defaultRenderer, WeightUnit weightUnit)
protected void addToSpeciesUsed(SpeciesBatchRowModel row)
protected SpeciesBatch convertRowToEntity(SpeciesBatchRowModel row, boolean convertParent)
protected Set<Serializable> getSampleUsedValues(SpeciesBatchRowModel 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 SpeciesBatchDecoratorComparator<SpeciesBatchRowModel> getSpeciesRowComparator()
protected SpeciesBatchDecorator<SpeciesBatchRowModel> getSpeciesColumnDecorator()
Copyright © 2012–2014 Ifremer. All rights reserved.