public class BenthosFrequencyUIHandler extends AbstractTuttiTableUIHandler<BenthosFrequencyRowModel,BenthosFrequencyUIModel,BenthosFrequencyUI> implements Cancelable
| Modifier and Type | Field and Description |
|---|---|
protected Set<BenthosFrequencyRowModel> |
withWeightRows |
persistenceServiceCONFIRMATION_FORMAT, context, ui, WARNING_FORMAT| Constructor and Description |
|---|
BenthosFrequencyUIHandler(TuttiUIContext context,
BenthosFrequencyUI ui) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addHighlighters(org.jdesktop.swingx.JXTable table) |
void |
afterInitUI() |
void |
applyRafaleStep(Float step) |
void |
beforeInitUI() |
void |
cancel() |
String |
decorateCategory(BenthosBatchRowModel object) |
String |
decorateSpecies(BenthosBatchRowModel object) |
void |
editBatch(BenthosBatchRowModel speciesBatch,
BenthosFrequencyCellComponent.FrequencyCellEditor editor) |
void |
generateLengthSteps() |
protected JComponent |
getComponentToFocus() |
org.jdesktop.swingx.JXTable |
getTable() |
BenthosFrequencyTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<BenthosFrequencyUIModel> |
getValidator() |
protected boolean |
isRowValid(BenthosFrequencyRowModel row)
Validates the given row.
|
void |
onCloseUI() |
protected void |
onRowModified(int rowIndex,
BenthosFrequencyRowModel 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,
BenthosFrequencyRowModel row,
Boolean oldValue,
Boolean newValue) |
void |
save() |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<BenthosFrequencyRowModel> rowMonitor,
BenthosFrequencyRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
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<BenthosFrequencyRowModel> withWeightRows
public BenthosFrequencyUIHandler(TuttiUIContext context, BenthosFrequencyUI ui)
public BenthosFrequencyTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<BenthosFrequencyRowModel,BenthosFrequencyUIModel,BenthosFrequencyUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<BenthosFrequencyRowModel,BenthosFrequencyUIModel,BenthosFrequencyUI>protected boolean isRowValid(BenthosFrequencyRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<BenthosFrequencyRowModel,BenthosFrequencyUIModel,BenthosFrequencyUI>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
BenthosFrequencyRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<BenthosFrequencyRowModel,BenthosFrequencyUIModel,BenthosFrequencyUI>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<BenthosFrequencyRowModel> rowMonitor, BenthosFrequencyRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<BenthosFrequencyRowModel,BenthosFrequencyUIModel,BenthosFrequencyUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected void onRowValidStateChanged(int rowIndex,
BenthosFrequencyRowModel row,
Boolean oldValue,
Boolean newValue)
public jaxx.runtime.validator.swing.SwingValidator<BenthosFrequencyUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<BenthosFrequencyUIModel,BenthosFrequencyUI>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<BenthosFrequencyUIModel,BenthosFrequencyUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<BenthosFrequencyUIModel,BenthosFrequencyUI>protected void addHighlighters(org.jdesktop.swingx.JXTable table)
protected JComponent getComponentToFocus()
getComponentToFocus in class AbstractTuttiUIHandler<BenthosFrequencyUIModel,BenthosFrequencyUI>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<BenthosFrequencyUIModel,BenthosFrequencyUI>public void cancel()
cancel in interface Cancelablepublic void generateLengthSteps()
public void applyRafaleStep(Float step)
public void editBatch(BenthosBatchRowModel speciesBatch, BenthosFrequencyCellComponent.FrequencyCellEditor editor)
public void save()
public String decorateSpecies(BenthosBatchRowModel object)
public String decorateCategory(BenthosBatchRowModel object)
Copyright © 2012-2013 Ifremer. All Rights Reserved.