public class SpeciesBatchUIHandler extends AbstractTuttiBatchTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchUI>
| Modifier and Type | Field and Description |
|---|---|
static jaxx.runtime.context.JAXXContextEntryDef<List<Caracteristic>> |
FREQUENCY_LENGTH_CONTEXT_ENTRY |
static Set<String> |
SAMPLING_PROPERTIES |
static jaxx.runtime.context.JAXXContextEntryDef<List<Species>> |
SPECIES_REFERENT_CONTEXT_ENTRY |
persistenceServiceCONFIRMATION_FORMAT, context, ui| Constructor and Description |
|---|
SpeciesBatchUIHandler(TuttiUI<?,?> parentUi,
SpeciesBatchUI ui) |
clearTableSelection, initBatchTable, saveSelectedRowIfRequiredaddBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, autoSelectRowInTable, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, newTableCellRender, newTableCellRender, newTableCellRender, onRowModifyStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraskCancelEditBeforeLeaving, askOverwriteFile, askSaveBeforeLeaving, changeValidatorContext, clearValidators, closeDialog, closeUI, createLogicAction, createUIAction, 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 static jaxx.runtime.context.JAXXContextEntryDef<List<Caracteristic>> FREQUENCY_LENGTH_CONTEXT_ENTRY
public static jaxx.runtime.context.JAXXContextEntryDef<List<Species>> SPECIES_REFERENT_CONTEXT_ENTRY
public SpeciesBatchUIHandler(TuttiUI<?,?> parentUi, SpeciesBatchUI ui)
public void selectFishingOperation(FishingOperation bean)
selectFishingOperation in class AbstractTuttiBatchTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchUI>public SpeciesBatchTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchUI>protected boolean isRowValid(SpeciesBatchRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchUI>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
SpeciesBatchRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchUI>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<SpeciesBatchRowModel> rowMonitor, SpeciesBatchRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected void onModelRowsChanged(List<SpeciesBatchRowModel> rows)
onModelRowsChanged in class AbstractTuttiTableUIHandler<SpeciesBatchRowModel,SpeciesBatchUIModel,SpeciesBatchUI>protected void onRowValidStateChanged(int rowIndex,
SpeciesBatchRowModel row,
Boolean oldValue,
Boolean newValue)
protected void onAfterSelectedRowChanged(int oldRowIndex,
SpeciesBatchRowModel oldRow,
int newRowIndex,
SpeciesBatchRowModel newRow)
public jaxx.runtime.validator.swing.SwingValidator<SpeciesBatchUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<SpeciesBatchUIModel,SpeciesBatchUI>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<SpeciesBatchUIModel,SpeciesBatchUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<SpeciesBatchUIModel,SpeciesBatchUI>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<SpeciesBatchUIModel,SpeciesBatchUI>public void createSpeciesBatch()
public void addSpeciesBatch(CreateSpeciesBatchUIModel createModel)
public void splitSpeciesBatch()
public void splitBatch(SplitSpeciesBatchUIModel splitModel)
public void updateTotalFromFrequencies(SpeciesBatchRowModel row)
public void saveRows(Iterable<SpeciesBatchRowModel> rows)
protected void saveRow(SpeciesBatchRowModel row)
public String getFilterSpeciesBatchRootButtonText(int rootNumber)
protected void recomputeBatchActionEnable()
public void collectChilds(SpeciesBatchRowModel row, Set<SpeciesBatchRowModel> collectedRows)
protected SpeciesBatchRowModel loadSpeciesBatch(SpeciesBatch aBatch, SpeciesBatchRowModel parentRow, List<SpeciesBatchRowModel> rows)
protected void loadBatchRow(SpeciesBatchRowModel parentRow, SpeciesBatchRowModel newRow, SampleCategoryEnum sampleCategoryEnum, Serializable categoryValue, Float categoryWeight)
protected <C extends Serializable> void addSampleCategoryColumnToModel(TableColumnModel columnModel, ColumnIdentifier<SpeciesBatchRowModel> columnIdentifier, org.nuiton.util.decorator.Decorator<C> decorator, TableCellRenderer defaultRenderer)
public void removeFromSpeciesUsed(SpeciesBatchRowModel row)
protected void addToSpeciesUsed(SpeciesBatchRowModel row)
Copyright © 2012-2013 Ifremer. All Rights Reserved.