public class MarineLitterBatchUIHandler extends AbstractTuttiBatchTableUIHandler<MarineLitterBatchRowModel,MarineLitterBatchUIModel,MarineLitterBatchUI>
persistenceServiceCONFIRMATION_FORMAT, context, ui, WARNING_FORMAT| Constructor and Description |
|---|
MarineLitterBatchUIHandler(TuttiUI<?,?> parentUi,
MarineLitterBatchUI ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(CreateMarineLitterBatchUIModel model) |
protected void |
addHighlighters(org.jdesktop.swingx.JXTable table) |
void |
afterInitUI() |
void |
beforeInitUI() |
void |
createBatch() |
org.jdesktop.swingx.JXTable |
getTable() |
MarineLitterBatchTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<MarineLitterBatchUIModel> |
getValidator() |
protected boolean |
isRowValid(MarineLitterBatchRowModel row)
Validates the given row.
|
protected MarineLitterBatchRowModel |
loadBatch(MarineLitterBatch aBatch) |
protected void |
onAfterSelectedRowChanged(int oldRowIndex,
MarineLitterBatchRowModel oldRow,
int newRowIndex,
MarineLitterBatchRowModel newRow) |
void |
onCloseUI() |
protected void |
onRowModified(int rowIndex,
MarineLitterBatchRowModel 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,
MarineLitterBatchRowModel row,
Boolean oldValue,
Boolean newValue) |
protected void |
recomputeBatchActionEnable() |
protected void |
saveRow(MarineLitterBatchRowModel row) |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<MarineLitterBatchRowModel> rowMonitor,
MarineLitterBatchRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
void |
selectFishingOperation(FishingOperation bean) |
clearTableSelection, initBatchTablegetRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, onModelRowsChanged, onRowModifyStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, 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, quitScreen, registerValidators, selectListData, setBoolean, setDate, setText, showInformationMessage, showSuccessMessagepublic MarineLitterBatchUIHandler(TuttiUI<?,?> parentUi, MarineLitterBatchUI ui)
public void selectFishingOperation(FishingOperation bean)
protected MarineLitterBatchRowModel loadBatch(MarineLitterBatch aBatch)
public MarineLitterBatchTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<MarineLitterBatchRowModel,MarineLitterBatchUIModel,MarineLitterBatchUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<MarineLitterBatchRowModel,MarineLitterBatchUIModel,MarineLitterBatchUI>protected boolean isRowValid(MarineLitterBatchRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<MarineLitterBatchRowModel,MarineLitterBatchUIModel,MarineLitterBatchUI>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
MarineLitterBatchRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<MarineLitterBatchRowModel,MarineLitterBatchUIModel,MarineLitterBatchUI>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<MarineLitterBatchRowModel> rowMonitor, MarineLitterBatchRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<MarineLitterBatchRowModel,MarineLitterBatchUIModel,MarineLitterBatchUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected void onRowValidStateChanged(int rowIndex,
MarineLitterBatchRowModel row,
Boolean oldValue,
Boolean newValue)
protected void onAfterSelectedRowChanged(int oldRowIndex,
MarineLitterBatchRowModel oldRow,
int newRowIndex,
MarineLitterBatchRowModel newRow)
protected void addHighlighters(org.jdesktop.swingx.JXTable table)
public jaxx.runtime.validator.swing.SwingValidator<MarineLitterBatchUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<MarineLitterBatchUIModel,MarineLitterBatchUI>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<MarineLitterBatchUIModel,MarineLitterBatchUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<MarineLitterBatchUIModel,MarineLitterBatchUI>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<MarineLitterBatchUIModel,MarineLitterBatchUI>public void createBatch()
public void addBatch(CreateMarineLitterBatchUIModel model)
protected void recomputeBatchActionEnable()
protected void saveRow(MarineLitterBatchRowModel row)
Copyright © 2012-2013 Ifremer. All Rights Reserved.