public class SpeciesFrequencyUIHandler extends AbstractTuttiTableUIHandler<SpeciesFrequencyRowModel,SpeciesFrequencyUIModel,SpeciesFrequencyUI> implements Cancelable
| Modifier and Type | Field and Description |
|---|---|
protected Set<SpeciesFrequencyRowModel> |
withWeightRows |
persistenceServicecontext, ui| 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,
FrequencyCellComponent.FrequencyCellEditor editor) |
void |
generateLengthSteps() |
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.
|
addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, autoSelectRowInTable, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, newTableCellRender, newTableCellRender, newTableCellRender, onAfterSelectedRowChanged, onModelRowsChanged, onRowModifyStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraskCancelEditBeforeLeaving, askSaveBeforeLeaving, canCloseUI, changeValidatorContext, clearValidators, closeDialog, closeUI, createAction, decorate, doAction, getConfig, getContext, getDataContext, getDecorator, getModel, getPropertiesToIgnore, getUI, initAction, initBeanComboBox, initBeanComboBox, initBeanList, initButtonAttachmentEditor, initDatePicker, initNumberEditor, initTimeEditor, initUI, listenValidatorValid, listModelIsModify, newComboActionModel, newComboModel, newListCellRender, newListCellRender, newListCellRender, openDialog, registerValidators, selectFirstInCombo, selectListData, setBoolean, setDate, setText, showInformationMessageprotected 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>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, FrequencyCellComponent.FrequencyCellEditor editor)
public void save()
Copyright © 2012-2013 Ifremer. All Rights Reserved.