public class SplitBenthosBatchUIHandler extends AbstractTuttiTableUIHandler<SplitBenthosBatchRowModel,SplitBenthosBatchUIModel,SplitBenthosBatchUI> implements Cancelable
SplitBenthosBatchUI.persistenceServiceCONFIRMATION_FORMAT, context, ui| Constructor and Description |
|---|
SplitBenthosBatchUIHandler(EditCatchesUI parentUi,
SplitBenthosBatchUI ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInitUI() |
void |
beforeInitUI() |
void |
cancel() |
protected void |
computeSampleWeight() |
void |
editBatch(BenthosBatchRowModel batch) |
void |
editBatch(BenthosBatchRowModel batch,
int sampleCategoryId) |
protected void |
generateTableModel(SampleCategoryModelEntry category) |
protected JComponent |
getComponentToFocus() |
org.jdesktop.swingx.JXTable |
getTable() |
SplitBenthosBatchTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<SplitBenthosBatchUIModel> |
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 |
save() |
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, 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, showSuccessMessagepublic SplitBenthosBatchUIHandler(EditCatchesUI parentUi, SplitBenthosBatchUI ui)
public SplitBenthosBatchTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<SplitBenthosBatchRowModel,SplitBenthosBatchUIModel,SplitBenthosBatchUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<SplitBenthosBatchRowModel,SplitBenthosBatchUIModel,SplitBenthosBatchUI>protected boolean isRowValid(SplitBenthosBatchRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<SplitBenthosBatchRowModel,SplitBenthosBatchUIModel,SplitBenthosBatchUI>row - row to validatetrue if row is valid, false otherwise.protected void saveSelectedRowIfRequired(TuttiBeanMonitor<SplitBenthosBatchRowModel> rowMonitor, SplitBenthosBatchRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<SplitBenthosBatchRowModel,SplitBenthosBatchUIModel,SplitBenthosBatchUI>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,SplitBenthosBatchUIModel,SplitBenthosBatchUI>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 jaxx.runtime.validator.swing.SwingValidator<SplitBenthosBatchUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<SplitBenthosBatchUIModel,SplitBenthosBatchUI>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<SplitBenthosBatchUIModel,SplitBenthosBatchUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<SplitBenthosBatchUIModel,SplitBenthosBatchUI>protected JComponent getComponentToFocus()
getComponentToFocus in class AbstractTuttiUIHandler<SplitBenthosBatchUIModel,SplitBenthosBatchUI>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<SplitBenthosBatchUIModel,SplitBenthosBatchUI>public void cancel()
cancel in interface Cancelablepublic void editBatch(BenthosBatchRowModel batch)
public void editBatch(BenthosBatchRowModel batch, int sampleCategoryId)
public void save()
protected void computeSampleWeight()
protected void generateTableModel(SampleCategoryModelEntry category)
Copyright © 2012–2013 Ifremer. All rights reserved.