public class BenthosBatchUIHandler extends AbstractTuttiBatchTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
SAMPLING_PROPERTIES |
persistenceServiceCONFIRMATION_FORMAT, context, ui, WARNING_FORMAT| Constructor and Description |
|---|
BenthosBatchUIHandler(TuttiUI<?,?> parentUi,
BenthosBatchUI ui) |
clearTableSelection, initBatchTable, saveSelectedRowIfRequiredgetRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, onRowModifyStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, 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, initTextField, initTimeEditor, initUI, isAutoSelectOnFocus, listenValidatorValid, listModelIsModify, newComboModel, newListCellRender, newListCellRender, newListCellRender, newTableCellRender, newTableCellRender, newTableCellRender, openDialog, quitScreen, registerValidators, selectListData, setBoolean, setDate, setText, showInformationMessage, showSuccessMessagepublic BenthosBatchUIHandler(TuttiUI<?,?> parentUi, BenthosBatchUI ui)
public void selectFishingOperation(FishingOperation bean)
selectFishingOperation in class AbstractTuttiBatchTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>public BenthosBatchTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>protected boolean isRowValid(BenthosBatchRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
BenthosBatchRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>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<BenthosBatchRowModel> rowMonitor, BenthosBatchRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected void onModelRowsChanged(List<BenthosBatchRowModel> rows)
onModelRowsChanged in class AbstractTuttiTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>protected void onRowValidStateChanged(int rowIndex,
BenthosBatchRowModel row,
Boolean oldValue,
Boolean newValue)
protected void onAfterSelectedRowChanged(int oldRowIndex,
BenthosBatchRowModel oldRow,
int newRowIndex,
BenthosBatchRowModel newRow)
public jaxx.runtime.validator.swing.SwingValidator<BenthosBatchUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<BenthosBatchUIModel,BenthosBatchUI>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<BenthosBatchUIModel,BenthosBatchUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<BenthosBatchUIModel,BenthosBatchUI>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<BenthosBatchUIModel,BenthosBatchUI>protected void addHighlighters(org.jdesktop.swingx.JXTable table)
addHighlighters in class AbstractTuttiTableUIHandler<BenthosBatchRowModel,BenthosBatchUIModel,BenthosBatchUI>public void createBatch()
public void addBatch(CreateBenthosBatchUIModel speciesBatchRootRowModel)
public void splitBatch()
public void splitBatch(SplitBenthosBatchUIModel splitModel)
public void updateTotalFromFrequencies(BenthosBatchRowModel row)
public void saveRows(Iterable<BenthosBatchRowModel> rows)
protected void saveRow(BenthosBatchRowModel row)
public String getFilterBenthosBatchRootButtonText(int rootNumber)
protected void recomputeBatchActionEnable()
public void collectChildren(BenthosBatchRowModel row, Set<BenthosBatchRowModel> collectedRows)
protected BenthosBatchRowModel loadBatch(SpeciesBatch aBatch, BenthosBatchRowModel parentRow, List<BenthosBatchRowModel> rows)
protected void loadBatchRow(BenthosBatchRowModel parentRow, BenthosBatchRowModel newRow, SampleCategoryEnum sampleCategoryEnum, Serializable categoryValue, Float categoryWeight)
protected <C extends Serializable> void addSampleCategoryColumnToModel(TableColumnModel columnModel, ColumnIdentifier<BenthosBatchRowModel> columnIdentifier, org.nuiton.util.decorator.Decorator<C> decorator, TableCellRenderer defaultRenderer)
public void removeFromSpeciesUsed(BenthosBatchRowModel row)
protected void addToSpeciesUsed(BenthosBatchRowModel row)
Copyright © 2012-2013 Ifremer. All Rights Reserved.