public abstract class CaracteristicTabUIHandler<RM extends CaracteristicRowModel<RM>,M extends CaracteristicTabUIModel<RM,M>,TM extends AbstractTuttiTableModel<RM>,UI extends TuttiUI<M,?>> extends AbstractTuttiTableUIHandler<RM,M,UI>
persistenceServicecontext, ui| Constructor and Description |
|---|
CaracteristicTabUIHandler(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 abstract jaxx.runtime.swing.editor.bean.BeanComboBox<Caracteristic> |
getKeyCombo() |
protected abstract List<String> |
getProtocolPmfmIds(TuttiProtocol protocol) |
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.
|
addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, autoSelectRowInTable, getRowPropertiesToIgnore, getTable, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, newTableCellRender, newTableCellRender, newTableCellRender, onModelRowsChanged, onRowModifyStateChanged, onRowValidStateChanged, 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, showInformationMessagepublic CaracteristicTabUIHandler(EditFishingOperationUI parentUi, UI ui, String... properties)
public TM getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<RM extends CaracteristicRowModel<RM>,M extends CaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>protected boolean isRowValid(RM row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<RM extends CaracteristicRowModel<RM>,M extends CaracteristicTabUIModel<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 CaracteristicRowModel<RM>,M extends CaracteristicTabUIModel<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 CaracteristicRowModel<RM>,M extends CaracteristicTabUIModel<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 CaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>protected void onAfterSelectedRowChanged(int oldRowIndex,
RM oldRow,
int newRowIndex,
RM newRow)
onAfterSelectedRowChanged in class AbstractTuttiTableUIHandler<RM extends CaracteristicRowModel<RM>,M extends CaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<M extends CaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<M extends CaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<M extends CaracteristicTabUIModel<RM,M>,UI extends TuttiUI<M,?>>protected void saveRow(RM row)
protected abstract M createModel()
protected abstract jaxx.runtime.swing.editor.bean.BeanComboBox<Caracteristic> getKeyCombo()
protected abstract CaracteristicMap getCaracteristics(FishingOperation operation)
protected abstract List<String> getProtocolPmfmIds(TuttiProtocol protocol)
public void addRow()
public void reset(FishingOperation fishingOperation)
public void removeCaracteristic()
Copyright © 2012-2013 Ifremer. All Rights Reserved.