public abstract class AbstractCaracteristicTabUIHandler<RM extends AbstractCaracteristicRowModel<RM>,M extends AbstractCaracteristicTabUIModel<RM,M>,TM extends AbstractTuttiTableModel<RM>,UI extends TuttiUI<M,?>> extends AbstractTuttiTableUIHandler<RM,M,UI>
persistenceServiceCONFIRMATION_FORMAT, context, ui| Constructor and Description |
|---|
AbstractCaracteristicTabUIHandler(EditFishingOperationUI parentUi,
UI ui,
String... properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRow()
Adds a row with the parameter selected in the combo box
|
void |
afterInitUI() |
void |
beforeInitUI() |
protected abstract M |
createModel() |
protected abstract CaracteristicMap |
getCaracteristics(FishingOperation operation) |
protected JComponent |
getComponentToFocus() |
protected abstract jaxx.runtime.swing.editor.bean.BeanFilterableComboBox<Caracteristic> |
getKeyCombo() |
protected abstract List<String> |
getProtocolPmfmIds() |
TM |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<M> |
getValidator() |
protected boolean |
isRowValid(RM row)
Validates the given row.
|
protected void |
onAfterSelectedRowChanged(int oldRowIndex,
RM oldRow,
int newRowIndex,
RM newRow) |
void |
onCloseUI() |
protected void |
onRowModified(int rowIndex,
RM row,
String propertyName,
Object oldValue,
Object newValue)
Invoke each time the
AbstractTuttiBeanUIModel.modify state on
the current selected row changed. |
void |
removeCaracteristic() |
void |
reset(FishingOperation fishingOperation)
Resets the table with the data from the database
|
protected void |
saveRow(RM row) |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<RM> rowMonitor,
RM row)
Given the row monitor and his monitored row, try to save it if required.
|
cleanrRowMonitor, getRowPropertiesToIgnore, getTable, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, onModelRowsChanged, onRowModifyStateChanged, onRowValidStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addFloatColumnToModel, addHighlighters, addIntegerColumnToModel, askCancelEditBeforeLeaving, askSaveBeforeLeaving, autoSelectRowInTable, beforeOpenPopup, buildReminderLabelTitle, buildReminderLabelTitle, changeValidatorContext, clearValidators, closeDialog, closeUI, decorate, decorate, getConfig, getContext, getDataContext, getDecorator, getModel, getPropertiesToIgnore, getTopestUI, getUI, incrementsMessage, initBeanFilterableComboBox, initBeanFilterableComboBox, initBeanList, initBeanList, initButton, initButtonAttachment, initDatePicker, initLabel, initNumberEditor, initScrollPane, initTextField, initTimeEditor, initUI, isAutoSelectOnFocus, listenModelModifiy, listenValidationTableHasNoFatalError, listenValidatorValid, listModelIsModify, newComboModel, newListCellRender, newListCellRender, newListCellRender, newTableCellRender, newTableCellRender, newTableCellRender, openDialog, openRowMenu, quitScreen, registerValidators, selectListData, setBoolean, setDate, setText, showInformationMessage, showSuccessMessagepublic AbstractCaracteristicTabUIHandler(EditFishingOperationUI parentUi, UI ui, String... properties)
public TM getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<RM extends AbstractCaracteristicRowModel<RM>,M extends AbstractCaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>protected boolean isRowValid(RM row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<RM extends AbstractCaracteristicRowModel<RM>,M extends AbstractCaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
RM row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<RM extends AbstractCaracteristicRowModel<RM>,M extends AbstractCaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>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<RM> rowMonitor, RM row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<RM extends AbstractCaracteristicRowModel<RM>,M extends AbstractCaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessarypublic jaxx.runtime.validator.swing.SwingValidator<M> getValidator()
getValidator in class AbstractTuttiUIHandler<M extends AbstractCaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>protected void onAfterSelectedRowChanged(int oldRowIndex,
RM oldRow,
int newRowIndex,
RM newRow)
onAfterSelectedRowChanged in class AbstractTuttiTableUIHandler<RM extends AbstractCaracteristicRowModel<RM>,M extends AbstractCaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<M extends AbstractCaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<M extends AbstractCaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>protected JComponent getComponentToFocus()
getComponentToFocus in class AbstractTuttiUIHandler<M extends AbstractCaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<M extends AbstractCaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>protected void saveRow(RM row)
protected abstract M createModel()
protected abstract jaxx.runtime.swing.editor.bean.BeanFilterableComboBox<Caracteristic> getKeyCombo()
protected abstract CaracteristicMap getCaracteristics(FishingOperation operation)
public void addRow()
public void reset(FishingOperation fishingOperation)
public void removeCaracteristic()
Copyright © 2012–2013 Ifremer. All rights reserved.