public class AccidentalBatchUIHandler extends AbstractTuttiBatchTableUIHandler<AccidentalBatchRowModel,AccidentalBatchUIModel,AccidentalBatchUI> implements CaracteristicMapColumnUIHandler
| Modifier and Type | Field and Description |
|---|---|
protected ValidationService |
validationService |
protected WeightUnit |
weightUnit
Weight unit.
|
persistenceServiceCONFIRMATION_FORMAT, context, ui| Constructor and Description |
|---|
AccidentalBatchUIHandler(TuttiUI<?,?> parentUi,
AccidentalBatchUI ui) |
clearTableSelection, initBatchTablecleanrRowMonitor, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, onModelRowsChanged, onRowModifyStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, askCancelEditBeforeLeaving, askSaveBeforeLeaving, autoSelectRowInTable, changeValidatorContext, clearValidators, closeDialog, closeUI, decorate, decorate, getConfig, getContext, getDataContext, getDecorator, getModel, getPropertiesToIgnore, getTopestUI, getUI, initBeanFilterableComboBox, initBeanFilterableComboBox, initBeanList, initButton, initButtonAttachment, initDatePicker, initLabel, initNumberEditor, initScrollPane, initTextField, initTimeEditor, initUI, isAutoSelectOnFocus, listenValidationTableHasNoFatalError, listenValidatorValid, listModelIsModify, newComboModel, newListCellRender, newListCellRender, newListCellRender, newTableCellRender, newTableCellRender, newTableCellRender, openDialog, openRowMenu, quitScreen, registerValidators, selectListData, setBoolean, setDate, setText, showInformationMessage, showSuccessMessageprotected ValidationService validationService
protected final WeightUnit weightUnit
public AccidentalBatchUIHandler(TuttiUI<?,?> parentUi, AccidentalBatchUI ui)
public void selectFishingOperation(FishingOperation bean)
protected AccidentalBatchRowModel loadBatch(AccidentalBatch aBatch)
public AccidentalBatchTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<AccidentalBatchRowModel,AccidentalBatchUIModel,AccidentalBatchUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<AccidentalBatchRowModel,AccidentalBatchUIModel,AccidentalBatchUI>protected boolean isRowValid(AccidentalBatchRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<AccidentalBatchRowModel,AccidentalBatchUIModel,AccidentalBatchUI>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
AccidentalBatchRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<AccidentalBatchRowModel,AccidentalBatchUIModel,AccidentalBatchUI>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<AccidentalBatchRowModel> rowMonitor, AccidentalBatchRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<AccidentalBatchRowModel,AccidentalBatchUIModel,AccidentalBatchUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected void onRowValidStateChanged(int rowIndex,
AccidentalBatchRowModel row,
Boolean oldValue,
Boolean newValue)
protected void onAfterSelectedRowChanged(int oldRowIndex,
AccidentalBatchRowModel oldRow,
int newRowIndex,
AccidentalBatchRowModel newRow)
protected void addHighlighters(org.jdesktop.swingx.JXTable table)
public jaxx.runtime.validator.swing.SwingValidator<AccidentalBatchUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<AccidentalBatchUIModel,AccidentalBatchUI>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<AccidentalBatchUIModel,AccidentalBatchUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<AccidentalBatchUIModel,AccidentalBatchUI>protected JComponent getComponentToFocus()
getComponentToFocus in class AbstractTuttiUIHandler<AccidentalBatchUIModel,AccidentalBatchUI>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<AccidentalBatchUIModel,AccidentalBatchUI>public CaracteristicMapEditorUI getCaracteristicMapEditor()
getCaracteristicMapEditor in interface CaracteristicMapColumnUIHandlerpublic void showCaracteristicMapEditor(Species species)
showCaracteristicMapEditor in interface CaracteristicMapColumnUIHandlerpublic void hideCaracteristicMapEditor()
hideCaracteristicMapEditor in interface CaracteristicMapColumnUIHandlerpublic void createBatch()
public void addBatch(CreateAccidentalBatchUIModel model)
protected void recomputeBatchActionEnable()
protected void saveRow(AccidentalBatchRowModel row)
Copyright © 2012–2013 Ifremer. All rights reserved.