public class SplitSpeciesBatchUIHandler extends AbstractTuttiTableUIHandler<SplitSpeciesBatchRowModel,SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>
SplitSpeciesBatchUI.| Constructor and Description |
|---|
SplitSpeciesBatchUIHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInit(SplitSpeciesBatchUI ui) |
void |
beforeInit(SplitSpeciesBatchUI ui) |
protected void |
computeSampleWeight() |
void |
editBatch(SpeciesBatchRowModel batch) |
void |
editBatch(SpeciesBatchRowModel batch,
int sampleCategoryId) |
protected void |
generateTableModel(SampleCategoryModelEntry 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.
|
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. |
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, uninstallTableSaveOnRowChangedSelectionListeneraddColumnToModel, addFloatColumnToModel, addHighlighters, buildReminderLabelTitle, buildReminderLabelTitle, clearValidators, closeUI, getConfig, getContext, getDataContext, getDecorator, getPersistenceService, getPropertiesToIgnore, getTopestUI, getValidateCruiseOperationsService, getValidationService, getWeightStringValue, getWeightStringValue, initButton, initButtonAttachment, initJXTitledPanel, initLabel, initNumberEditor, initTextField, initUIComponent, listenModelModifiy, listenValidationTableHasNoFatalError, listenValidatorValid, listModelIsModify, registerValidators, resetComboBoxAction, showInformationMessageaddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, addIntegerColumnToModel, affectKeyStroke, askCancelEditBeforeLeaving, askSaveBeforeLeaving, autoSelectRowInTable, beforeOpenPopup, changeValidatorContext, closeDialog, decorate, decorate, getListValidators, getModel, getParentContainer, getSimpleValidators, getUI, incrementsMessage, initBeanComboBox, initBeanComboBox, initBeanFilterableComboBox, initBeanFilterableComboBox, initBeanList, initBeanList, initComponentToFocus, initCoordinateDMDEditor, initCoordinateDMSEditor, initDatePicker, initNumberEditor, initScrollPane, initTimeEditor, initUI, initValidators, isAutoSelectOnFocus, newComboModel, newListCellRender, newListCellRender, newListCellRender, newNumberCellRenderer, newTableCellRender, newTableCellRender, newTableCellRender, openDialog, openRowMenu, quitInternalScreen, quitScreen, quitScreen, selectListData, setBoolean, setDate, setFile, setText, showSuccessMessage, useListValidators, useSimpleValidatorspublic 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 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,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 org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>public void beforeInit(SplitSpeciesBatchUI ui)
beforeInit in interface jaxx.runtime.spi.UIHandler<SplitSpeciesBatchUI>beforeInit in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>public void afterInit(SplitSpeciesBatchUI ui)
protected JComponent getComponentToFocus()
getComponentToFocus in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>public void onCloseUI()
onCloseUI in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<SplitSpeciesBatchUIModel,SplitSpeciesBatchUI>public void editBatch(SpeciesBatchRowModel batch)
public void editBatch(SpeciesBatchRowModel batch, int sampleCategoryId)
protected void computeSampleWeight()
protected void generateTableModel(SampleCategoryModelEntry category)
Copyright © 2012–2015 Ifremer. All rights reserved.