public class AccidentalBatchUIHandler extends AbstractTuttiBatchTableUIHandler<AccidentalBatchRowModel,AccidentalBatchUIModel,AccidentalBatchUI>
persistenceServiceCONFIRMATION_FORMAT, context, ui, WARNING_FORMAT| Constructor and Description |
|---|
AccidentalBatchUIHandler(TuttiUI<?,?> parentUi,
AccidentalBatchUI ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(CreateAccidentalBatchUIModel model) |
protected void |
addHighlighters(org.jdesktop.swingx.JXTable table) |
void |
afterInitUI() |
void |
beforeInitUI() |
void |
createBatch() |
protected JComponent |
getComponentToFocus() |
org.jdesktop.swingx.JXTable |
getTable() |
AccidentalBatchTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<AccidentalBatchUIModel> |
getValidator() |
protected boolean |
isRowValid(AccidentalBatchRowModel row)
Validates the given row.
|
protected AccidentalBatchRowModel |
loadBatch(AccidentalBatchRowModel aBatch) |
protected void |
onAfterSelectedRowChanged(int oldRowIndex,
AccidentalBatchRowModel oldRow,
int newRowIndex,
AccidentalBatchRowModel newRow) |
void |
onCloseUI() |
protected void |
onRowModified(int rowIndex,
AccidentalBatchRowModel 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,
AccidentalBatchRowModel row,
Boolean oldValue,
Boolean newValue) |
protected void |
recomputeBatchActionEnable() |
protected void |
saveRow(AccidentalBatchRowModel row) |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<AccidentalBatchRowModel> rowMonitor,
AccidentalBatchRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
void |
selectFishingOperation(FishingOperation bean) |
clearTableSelection, initBatchTablecleanrRowMonitor, getRowPropertiesToIgnore, 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, openRowMenu, quitScreen, registerValidators, selectListData, setBoolean, setDate, setText, showInformationMessage, showSuccessMessagepublic AccidentalBatchUIHandler(TuttiUI<?,?> parentUi, AccidentalBatchUI ui)
public void selectFishingOperation(FishingOperation bean)
protected AccidentalBatchRowModel loadBatch(AccidentalBatchRowModel aBatch)
public AccidentalBatchTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<AccidentalBatchRowModel,AccidentalBatchUIModel,AccidentalBatchUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<AccidentalBatchRowModel,AccidentalBatchUIModel,AccidentalBatchUI>protected boolean isRowValid(AccidentalBatchRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<AccidentalBatchRowModel,AccidentalBatchUIModel,AccidentalBatchUI>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
AccidentalBatchRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<AccidentalBatchRowModel,AccidentalBatchUIModel,AccidentalBatchUI>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<AccidentalBatchRowModel> rowMonitor, AccidentalBatchRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<AccidentalBatchRowModel,AccidentalBatchUIModel,AccidentalBatchUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected void onRowValidStateChanged(int rowIndex,
AccidentalBatchRowModel row,
Boolean oldValue,
Boolean newValue)
protected void onAfterSelectedRowChanged(int oldRowIndex,
AccidentalBatchRowModel oldRow,
int newRowIndex,
AccidentalBatchRowModel newRow)
protected void addHighlighters(org.jdesktop.swingx.JXTable table)
public jaxx.runtime.validator.swing.SwingValidator<AccidentalBatchUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<AccidentalBatchUIModel,AccidentalBatchUI>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<AccidentalBatchUIModel,AccidentalBatchUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<AccidentalBatchUIModel,AccidentalBatchUI>protected JComponent getComponentToFocus()
getComponentToFocus in class AbstractTuttiUIHandler<AccidentalBatchUIModel,AccidentalBatchUI>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<AccidentalBatchUIModel,AccidentalBatchUI>public void createBatch()
public void addBatch(CreateAccidentalBatchUIModel model)
protected void recomputeBatchActionEnable()
protected void saveRow(AccidentalBatchRowModel row)
Copyright © 2012-2013 Ifremer. All Rights Reserved.