public class CreateBenthosBatchUIHandler extends AbstractTuttiTableUIHandler<SplitBenthosBatchRowModel,CreateBenthosBatchUIModel,CreateBenthosBatchUI> implements org.nuiton.jaxx.application.swing.util.Cancelable
CreateBenthosBatchUI.| 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 |
|---|
CreateBenthosBatchUIHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInit(CreateBenthosBatchUI ui) |
void |
beforeInit(CreateBenthosBatchUI ui) |
void |
cancel() |
protected void |
computeSampleWeight() |
protected void |
generateTableModel(SampleCategoryModelEntry category) |
protected JComponent |
getComponentToFocus() |
org.jdesktop.swingx.JXTable |
getTable() |
SplitBenthosBatchTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<CreateBenthosBatchUIModel> |
getValidator() |
protected boolean |
isRowValid(SplitBenthosBatchRowModel row)
Validates the given row.
|
protected void |
onAfterSelectedRowChanged(int oldRowIndex,
SplitBenthosBatchRowModel oldRow,
int newRowIndex,
SplitBenthosBatchRowModel newRow) |
void |
onCloseUI() |
protected void |
onRowModified(int rowIndex,
SplitBenthosBatchRowModel row,
String propertyName,
Object oldValue,
Object newValue)
Invoke each time the
AbstractTuttiBeanUIModel.modify state on
the current selected row changed. |
void |
openUI(BenthosBatchUIModel batchModel) |
void |
saveAndClose() |
void |
saveAndContinue() |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<SplitBenthosBatchRowModel> rowMonitor,
SplitBenthosBatchRowModel 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, initNumberEditor, initTextField, initUIComponent, listenModelModifiy, listenValidationTableHasNoFatalError, listenValidatorValid, listModelIsModify, registerValidators, showInformationMessageaddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, addIntegerColumnToModel, affectKeyStroke, 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 SplitBenthosBatchTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<SplitBenthosBatchRowModel,CreateBenthosBatchUIModel,CreateBenthosBatchUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<SplitBenthosBatchRowModel,CreateBenthosBatchUIModel,CreateBenthosBatchUI>protected boolean isRowValid(SplitBenthosBatchRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<SplitBenthosBatchRowModel,CreateBenthosBatchUIModel,CreateBenthosBatchUI>row - row to validatetrue if row is valid, false otherwise.protected void saveSelectedRowIfRequired(TuttiBeanMonitor<SplitBenthosBatchRowModel> rowMonitor, SplitBenthosBatchRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<SplitBenthosBatchRowModel,CreateBenthosBatchUIModel,CreateBenthosBatchUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected void onAfterSelectedRowChanged(int oldRowIndex,
SplitBenthosBatchRowModel oldRow,
int newRowIndex,
SplitBenthosBatchRowModel newRow)
protected void onRowModified(int rowIndex,
SplitBenthosBatchRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<SplitBenthosBatchRowModel,CreateBenthosBatchUIModel,CreateBenthosBatchUI>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(CreateBenthosBatchUI ui)
beforeInit in interface jaxx.runtime.spi.UIHandler<CreateBenthosBatchUI>beforeInit in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<CreateBenthosBatchUIModel,CreateBenthosBatchUI>public void afterInit(CreateBenthosBatchUI ui)
afterInit in interface jaxx.runtime.spi.UIHandler<CreateBenthosBatchUI>protected JComponent getComponentToFocus()
getComponentToFocus in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<CreateBenthosBatchUIModel,CreateBenthosBatchUI>public void onCloseUI()
onCloseUI in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<CreateBenthosBatchUIModel,CreateBenthosBatchUI>public jaxx.runtime.validator.swing.SwingValidator<CreateBenthosBatchUIModel> getValidator()
getValidator in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<CreateBenthosBatchUIModel,CreateBenthosBatchUI>public void cancel()
cancel in interface org.nuiton.jaxx.application.swing.util.Cancelablepublic void openUI(BenthosBatchUIModel batchModel)
public void saveAndContinue()
public void saveAndClose()
protected void computeSampleWeight()
protected void generateTableModel(SampleCategoryModelEntry category)
Copyright © 2012–2015 Ifremer. All rights reserved.