public abstract class AbstractCaracteristicTabUIHandler<RM extends AbstractCaracteristicRowModel<RM>,M extends AbstractCaracteristicTabUIModel<RM,M>,TM extends org.nuiton.jaxx.application.swing.table.AbstractApplicationTableModel<RM>,UI extends TuttiUI<M,?>> extends AbstractTuttiTableUIHandler<RM,M,UI>
| Constructor and Description |
|---|
AbstractCaracteristicTabUIHandler(String... properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRow()
Adds a row with the parameter selected in the combo box
|
void |
afterInit(UI ui) |
void |
beforeInit(UI ui) |
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, uninstallTableSaveOnRowChangedSelectionListeneraddColumnToModel, addFloatColumnToModel, addHighlighters, buildReminderLabelTitle, buildReminderLabelTitle, clearValidators, closeUI, getConfig, getContext, getDataContext, getDecorator, getPersistenceService, getPropertiesToIgnore, getTopestUI, getValidateCruiseOperationsService, getValidationService, getWeightStringValue, getWeightStringValue, initButtonAttachment, initJXTitledPanel, initLabel, initTextField, initUIComponent, listenModelModifiy, listenValidationTableHasNoFatalError, listenValidatorValid, listModelIsModify, registerValidators, showInformationMessageaddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, addIntegerColumnToModel, askCancelEditBeforeLeaving, askSaveBeforeLeaving, autoSelectRowInTable, beforeOpenPopup, changeValidatorContext, closeDialog, decorate, decorate, getListValidators, getModel, getParentContainer, getSimpleValidators, getUI, incrementsMessage, initBeanComboBox, initBeanComboBox, initBeanFilterableComboBox, initBeanFilterableComboBox, initBeanList, initBeanList, initButton, initComponentToFocus, initCoordinateDMDEditor, initCoordinateDMSEditor, initDatePicker, initNumberEditor, initScrollPane, initTimeEditor, initUI, initValidators, isAutoSelectOnFocus, newComboModel, newListCellRender, newListCellRender, newListCellRender, newNumberCellRenderer, newTableCellRender, newTableCellRender, newTableCellRender, openDialog, openRowMenu, quitInternalScreen, quitScreen, quitScreen, selectListData, setBoolean, setDate, setFile, setText, showSuccessMessage, useListValidators, useSimpleValidatorspublic AbstractCaracteristicTabUIHandler(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()
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 beforeInit(UI ui)
public void afterInit(UI ui)
protected JComponent getComponentToFocus()
public void onCloseUI()
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–2014 Ifremer. All rights reserved.