public class CreateSpeciesBatchUIHandler extends AbstractTuttiTableUIHandler<SplitSpeciesBatchRowModel,CreateSpeciesBatchUIModel,CreateSpeciesBatchUI> implements 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.
|
CONFIRMATION_FORMAT, context, ui| Constructor and Description |
|---|
CreateSpeciesBatchUIHandler(TuttiUI parentUi,
CreateSpeciesBatchUI ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInitUI() |
void |
beforeInitUI() |
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, uninstallTableSaveOnRowChangedSelectionListeneraddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addFloatColumnToModel, addHighlighters, addIntegerColumnToModel, askCancelEditBeforeLeaving, askSaveBeforeLeaving, autoSelectRowInTable, beforeOpenPopup, buildReminderLabelTitle, buildReminderLabelTitle, changeValidatorContext, clearValidators, closeDialog, closeUI, decorate, decorate, getConfig, getContext, getDataContext, getDecorator, getModel, getPropertiesToIgnore, getTopestUI, getUI, incrementsMessage, initBeanFilterableComboBox, initBeanFilterableComboBox, initBeanList, initBeanList, initButton, initButtonAttachment, initCoordinateDMDEditor, initCoordinateDMSEditor, 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 final CaracteristicQualitativeValue sortedValue
protected final SampleCategoryModel sampleCategoryModel
protected final WeightUnit weightUnit
public CreateSpeciesBatchUIHandler(TuttiUI parentUi, CreateSpeciesBatchUI ui)
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 beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>protected JComponent getComponentToFocus()
getComponentToFocus in class AbstractTuttiUIHandler<CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>public jaxx.runtime.validator.swing.SwingValidator<CreateSpeciesBatchUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<CreateSpeciesBatchUIModel,CreateSpeciesBatchUI>public void cancel()
cancel in interface Cancelablepublic void openUI(SpeciesBatchUIModel batchModel)
public void saveAndContinue()
public void saveAndClose()
protected void computeSampleWeight()
protected void generateTableModel(SampleCategoryModelEntry category)
Copyright © 2012–2013 Ifremer. All rights reserved.