public class SplitSpeciesBatchUIHandler extends AbstractTuttiTableUIHandler<SplitSpeciesBatchRowModel,SplitSpeciesBatchUIModel,SplitSpeciesBatchUI> implements Cancelable
SplitSpeciesBatchUI.persistenceServiceCONFIRMATION_FORMAT, context, ui, WARNING_FORMAT| Constructor and Description |
|---|
SplitSpeciesBatchUIHandler(EditCatchesUI parentUi,
SplitSpeciesBatchUI ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInitUI() |
void |
beforeInitUI() |
void |
cancel() |
protected void |
computeSampleWeight(SplitSpeciesBatchRowModel row) |
String |
decorateSpecies(Species object) |
void |
editBatch(SpeciesBatchRowModel batch) |
protected void |
generateTableModel(SampleCategoryEnum category) |
protected JComponent |
getComponentToFocus() |
org.jdesktop.swingx.JXTable |
getTable() |
SplitSpeciesBatchTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<SplitSpeciesBatchUIModel> |
getValidator() |
protected boolean |
isRowValid(SplitSpeciesBatchRowModel row)
Validates the given row.
|
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. |
void |
save() |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<SplitSpeciesBatchRowModel> rowMonitor,
SplitSpeciesBatchRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
addHighlighters, cleanrRowMonitor, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, onAfterSelectedRowChanged, onModelRowsChanged, onRowModifyStateChanged, onRowValidStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, askBeforeDelete, askCancelEditBeforeLeaving, askOverwriteFile, 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, showSuccessMessagepublic SplitSpeciesBatchUIHandler(EditCatchesUI parentUi, SplitSpeciesBatchUI ui)
public SplitSpeciesBatchTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<SplitSpeciesBatchRowModel,SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<SplitSpeciesBatchRowModel,SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>protected boolean isRowValid(SplitSpeciesBatchRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<SplitSpeciesBatchRowModel,SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>row - row to validatetrue if row is valid, false otherwise.protected void saveSelectedRowIfRequired(TuttiBeanMonitor<SplitSpeciesBatchRowModel> rowMonitor, SplitSpeciesBatchRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<SplitSpeciesBatchRowModel,SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected 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,SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>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<SplitSpeciesBatchUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>protected JComponent getComponentToFocus()
getComponentToFocus in class AbstractTuttiUIHandler<SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>public void cancel()
cancel in interface Cancelablepublic void editBatch(SpeciesBatchRowModel batch)
public void save()
protected void computeSampleWeight(SplitSpeciesBatchRowModel row)
protected void generateTableModel(SampleCategoryEnum category)
Copyright © 2012-2013 Ifremer. All Rights Reserved.