public class SpeciesFrequencyUIHandler extends AbstractTuttiTableUIHandler<SpeciesFrequencyRowModel,SpeciesFrequencyUIModel,SpeciesFrequencyUI> implements org.nuiton.jaxx.application.swing.util.Cancelable
| Modifier and Type | Field and Description |
|---|---|
protected FeedReaderListener |
feedReaderListener
To consume measures when they arrive from the ichtyometer.
|
protected WeightUnit |
weightUnit
Weight unit.
|
| Constructor and Description |
|---|
SpeciesFrequencyUIHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLengthStepCaracteristic() |
void |
afterInit(SpeciesFrequencyUI ui) |
void |
applyRafaleStep(Float step,
boolean fromIchtyometer) |
void |
beforeInit(SpeciesFrequencyUI ui) |
void |
cancel() |
protected boolean |
canSaveFrequencies() |
protected void |
consumeFeedRecord(FeedReaderMeasureRecord record) |
void |
decrementLengthStep(SpeciesFrequencyLogRowModel logRow)
Decrement the frequency of the lengthstep of the row
|
void |
editBatch(SpeciesFrequencyCellComponent.FrequencyCellEditor editor) |
void |
generateLengthSteps() |
protected JComponent |
getComponentToFocus() |
protected JComponent |
getComponentToFocus(FrequencyConfigurationMode mode) |
protected float |
getStep(Caracteristic caracteristic) |
org.jdesktop.swingx.JXTable |
getTable() |
SpeciesFrequencyTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<SpeciesFrequencyUIModel> |
getValidator() |
protected org.jfree.data.xy.XYSeries |
initHistogram(SpeciesFrequencyUI ui,
float step) |
protected void |
initLogTable(SpeciesFrequencyUI ui) |
protected boolean |
isRowValid(SpeciesFrequencyRowModel row)
Validates the given row.
|
protected void |
listenItchtyometer() |
void |
onCloseUI() |
protected void |
onModelRowsChanged(List<SpeciesFrequencyRowModel> rows) |
protected void |
onRowModified(int rowIndex,
SpeciesFrequencyRowModel row,
String propertyName,
Object oldValue,
Object newValue)
Invoke each time the
AbstractTuttiBeanUIModel.modify state on
the current selected row changed. |
protected void |
onRowValidStateChanged(int rowIndex,
SpeciesFrequencyRowModel row,
Boolean oldValue,
Boolean newValue) |
void |
reset() |
void |
saveAndClose() |
void |
saveAndContinue() |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<SpeciesFrequencyRowModel> rowMonitor,
SpeciesFrequencyRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
protected void |
updateLogVisibility() |
cleanrRowMonitor, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, onAfterSelectedRowChanged, onRowModifyStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraddColumnToModel, addFloatColumnToModel, addHighlighters, buildReminderLabelTitle, buildReminderLabelTitle, clearValidators, closeUI, getConfig, getContext, getDataContext, getDecorator, getPersistenceService, getPropertiesToIgnore, getTopestUI, getValidateCruiseOperationsService, getValidationService, getWeightStringValue, getWeightStringValue, initButtonAttachment, initJXTitledPanel, initLabel, initTextField, initUIComponent, listenModelModifiy, listenValidationTableHasNoFatalError, listenValidatorValid, listModelIsModify, registerValidators, 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, initButton, 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, useSimpleValidatorsprotected WeightUnit weightUnit
protected final FeedReaderListener feedReaderListener
public SpeciesFrequencyTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<SpeciesFrequencyRowModel,SpeciesFrequencyUIModel,SpeciesFrequencyUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<SpeciesFrequencyRowModel,SpeciesFrequencyUIModel,SpeciesFrequencyUI>protected boolean isRowValid(SpeciesFrequencyRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<SpeciesFrequencyRowModel,SpeciesFrequencyUIModel,SpeciesFrequencyUI>row - row to validatetrue if row is valid, false otherwise.protected void onModelRowsChanged(List<SpeciesFrequencyRowModel> rows)
protected void onRowModified(int rowIndex,
SpeciesFrequencyRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<SpeciesFrequencyRowModel,SpeciesFrequencyUIModel,SpeciesFrequencyUI>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<SpeciesFrequencyRowModel> rowMonitor, SpeciesFrequencyRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<SpeciesFrequencyRowModel,SpeciesFrequencyUIModel,SpeciesFrequencyUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected void onRowValidStateChanged(int rowIndex,
SpeciesFrequencyRowModel row,
Boolean oldValue,
Boolean newValue)
public jaxx.runtime.validator.swing.SwingValidator<SpeciesFrequencyUIModel> getValidator()
getValidator in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<SpeciesFrequencyUIModel,SpeciesFrequencyUI>public void beforeInit(SpeciesFrequencyUI ui)
beforeInit in interface jaxx.runtime.spi.UIHandler<SpeciesFrequencyUI>beforeInit in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<SpeciesFrequencyUIModel,SpeciesFrequencyUI>public void afterInit(SpeciesFrequencyUI ui)
afterInit in interface jaxx.runtime.spi.UIHandler<SpeciesFrequencyUI>protected JComponent getComponentToFocus()
getComponentToFocus in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<SpeciesFrequencyUIModel,SpeciesFrequencyUI>public void onCloseUI()
onCloseUI in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<SpeciesFrequencyUIModel,SpeciesFrequencyUI>public void cancel()
cancel in interface org.nuiton.jaxx.application.swing.util.Cancelablepublic void addLengthStepCaracteristic()
public void generateLengthSteps()
public void applyRafaleStep(Float step, boolean fromIchtyometer)
public void editBatch(SpeciesFrequencyCellComponent.FrequencyCellEditor editor)
public void reset()
public void saveAndClose()
public void saveAndContinue()
public void decrementLengthStep(SpeciesFrequencyLogRowModel logRow)
logRow - protected void consumeFeedRecord(FeedReaderMeasureRecord record)
protected void listenItchtyometer()
protected JComponent getComponentToFocus(FrequencyConfigurationMode mode)
protected boolean canSaveFrequencies()
protected float getStep(Caracteristic caracteristic)
protected void updateLogVisibility()
protected org.jfree.data.xy.XYSeries initHistogram(SpeciesFrequencyUI ui, float step)
protected void initLogTable(SpeciesFrequencyUI ui)
Copyright © 2012–2014 Ifremer. All rights reserved.