public class CreateSpeciesBatchUIHandler extends AbstractTuttiTableUIHandler<SplitSpeciesBatchRowModel,CreateSpeciesBatchUIModel,CreateSpeciesBatchUI> implements org.nuiton.jaxx.application.swing.util.Cancelable
CreateSpeciesBatchUI.| Modifier and Type | Field and Description |
|---|---|
protected SampleCategoryModel |
sampleCategoryModel
Sample categories model.
|
protected CaracteristicQualitativeValue |
sortedValue
Qualitative value for the Vrac.
|
protected WeightUnit |
weightUnit
Weight unit.
|
| Constructor and Description |
|---|
CreateSpeciesBatchUIHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInit(CreateSpeciesBatchUI ui) |
void |
beforeInit(CreateSpeciesBatchUI ui) |
void |
cancel() |
protected void |
computeSampleWeight() |
protected void |
generateTableModel(SampleCategoryModelEntry category) |
protected JComponent |
getComponentToFocus() |
org.jdesktop.swingx.JXTable |
getTable() |
SplitSpeciesBatchTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<CreateSpeciesBatchUIModel> |
getValidator() |
protected boolean |
isRowValid(SplitSpeciesBatchRowModel row)
Validates the given row.
|
protected void |
onAfterSelectedRowChanged(int oldRowIndex,
SplitSpeciesBatchRowModel oldRow,
int newRowIndex,
SplitSpeciesBatchRowModel newRow) |
void |
onCloseUI() |
protected void |
onRowModified(int rowIndex,
SplitSpeciesBatchRowModel row,
String propertyName,
Object oldValue,
Object newValue)
Invoke each time the
AbstractTuttiBeanUIModel.modify state on
the current selected row changed. |
Species |
openAddSpeciesDialog(String title,
List<Species> species) |
void |
openUI(SpeciesBatchUIModel batchModel) |
void |
saveAndClose() |
void |
saveAndContinue() |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<SplitSpeciesBatchRowModel> rowMonitor,
SplitSpeciesBatchRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
cleanrRowMonitor, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, onModelRowsChanged, onRowModifyStateChanged, onRowValidStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraddColumnToModel, addFloatColumnToModel, addHighlighters, 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, askCancelEditBeforeLeaving, askSaveBeforeLeaving, autoSelectRowInTable, beforeOpenPopup, 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 CaracteristicQualitativeValue sortedValue
protected SampleCategoryModel sampleCategoryModel
protected WeightUnit weightUnit
public SplitSpeciesBatchTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<SplitSpeciesBatchRowModel,CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<SplitSpeciesBatchRowModel,CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>protected boolean isRowValid(SplitSpeciesBatchRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<SplitSpeciesBatchRowModel,CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>row - row to validatetrue if row is valid, false otherwise.protected void saveSelectedRowIfRequired(TuttiBeanMonitor<SplitSpeciesBatchRowModel> rowMonitor, SplitSpeciesBatchRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<SplitSpeciesBatchRowModel,CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected void onAfterSelectedRowChanged(int oldRowIndex,
SplitSpeciesBatchRowModel oldRow,
int newRowIndex,
SplitSpeciesBatchRowModel newRow)
protected void onRowModified(int rowIndex,
SplitSpeciesBatchRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<SplitSpeciesBatchRowModel,CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>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 propertypublic void beforeInit(CreateSpeciesBatchUI ui)
beforeInit in interface jaxx.runtime.spi.UIHandler<CreateSpeciesBatchUI>beforeInit in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>public void afterInit(CreateSpeciesBatchUI ui)
afterInit in interface jaxx.runtime.spi.UIHandler<CreateSpeciesBatchUI>protected JComponent getComponentToFocus()
getComponentToFocus in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>public void onCloseUI()
onCloseUI in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>public jaxx.runtime.validator.swing.SwingValidator<CreateSpeciesBatchUIModel> getValidator()
getValidator in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>public void cancel()
cancel in interface org.nuiton.jaxx.application.swing.util.Cancelablepublic void openUI(SpeciesBatchUIModel batchModel)
public void saveAndContinue()
public void saveAndClose()
protected void computeSampleWeight()
protected void generateTableModel(SampleCategoryModelEntry category)
Copyright © 2012–2014 Ifremer. All rights reserved.