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(SampleCategoryType category) |
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.
|
addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addHighlighters, addIntegerColumnToModel, autoSelectRowInTable, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, newTableCellRender, newTableCellRender, newTableCellRender, onAfterSelectedRowChanged, onModelRowsChanged, onRowModifyStateChanged, onRowValidStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraskCancelEditBeforeLeaving, askOverwriteFile, askSaveBeforeLeaving, changeValidatorContext, clearValidators, closeDialog, closeUI, createLogicAction, createUIAction, decorate, decorate, doAction, getConfig, getContext, getDataContext, getDecorator, getLogicAction, getModel, getPropertiesToIgnore, getTopestUI, getUI, initAction, initBeanComboBox, initBeanComboBox, initBeanFilterableComboBox, initBeanFilterableComboBox, initBeanList, initButtonAttachment, initDatePicker, initNumberEditor, initTimeEditor, initUI, listenValidatorValid, listModelIsModify, newComboModel, newListCellRender, newListCellRender, newListCellRender, openDialog, quitScreen, registerValidators, selectListData, setBoolean, setDate, setText, showInformationMessagepublic 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>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(SampleCategoryType category)
Copyright © 2012-2013 Ifremer. All Rights Reserved.