public class SpeciesFrequencyUIHandler extends AbstractTuttiTableUIHandler<SpeciesFrequencyRowModel,SpeciesFrequencyUIModel,SpeciesFrequencyUI> implements Cancelable
| Modifier and Type | Field and Description |
|---|---|
protected Set<SpeciesFrequencyRowModel> |
withWeightRows |
persistenceServiceCONFIRMATION_FORMAT, context, ui, WARNING_FORMAT| Constructor and Description |
|---|
SpeciesFrequencyUIHandler(TuttiUIContext context,
SpeciesFrequencyUI ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInitUI() |
void |
applyRafaleStep(Float step) |
void |
beforeInitUI() |
void |
cancel() |
void |
editBatch(SpeciesBatchRowModel speciesBatch,
SpeciesFrequencyCellComponent.FrequencyCellEditor editor) |
void |
generateLengthSteps() |
protected JComponent |
getComponentToFocus() |
org.jdesktop.swingx.JXTable |
getTable() |
SpeciesFrequencyTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<SpeciesFrequencyUIModel> |
getValidator() |
protected boolean |
isRowValid(SpeciesFrequencyRowModel row)
Validates the given row.
|
void |
onCloseUI() |
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 |
save() |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<SpeciesFrequencyRowModel> rowMonitor,
SpeciesFrequencyRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
addHighlighters, cleanrRowMonitor, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, onAfterSelectedRowChanged, onModelRowsChanged, onRowModifyStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, askBeforeDelete, 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, initScrollPane, initTextField, initTimeEditor, initUI, isAutoSelectOnFocus, listenValidationTableHasNoFatalError, listenValidatorValid, listModelIsModify, newComboModel, newListCellRender, newListCellRender, newListCellRender, newTableCellRender, newTableCellRender, newTableCellRender, openDialog, openRowMenu, quitScreen, registerValidators, selectListData, setBoolean, setDate, setText, showInformationMessage, showSuccessMessageprotected Set<SpeciesFrequencyRowModel> withWeightRows
public SpeciesFrequencyUIHandler(TuttiUIContext context, SpeciesFrequencyUI ui)
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 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 AbstractTuttiUIHandler<SpeciesFrequencyUIModel,SpeciesFrequencyUI>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<SpeciesFrequencyUIModel,SpeciesFrequencyUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<SpeciesFrequencyUIModel,SpeciesFrequencyUI>protected JComponent getComponentToFocus()
getComponentToFocus in class AbstractTuttiUIHandler<SpeciesFrequencyUIModel,SpeciesFrequencyUI>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<SpeciesFrequencyUIModel,SpeciesFrequencyUI>public void cancel()
cancel in interface Cancelablepublic void generateLengthSteps()
public void applyRafaleStep(Float step)
public void editBatch(SpeciesBatchRowModel speciesBatch, SpeciesFrequencyCellComponent.FrequencyCellEditor editor)
public void save()
Copyright © 2012-2013 Ifremer. All Rights Reserved.