public class CaracteristicMapEditorUIHandler extends AbstractTuttiTableUIHandler<CaracteristicMapEditorRowModel,CaracteristicMapEditorUIModel,CaracteristicMapEditorUI> implements Cancelable
| Modifier and Type | Field and Description |
|---|---|
protected CaracteristicMapCellComponent.CaracteristicMapCellEditor |
caracteristicMapCellEditor |
persistenceServiceCONFIRMATION_FORMAT, context, ui| Constructor and Description |
|---|
CaracteristicMapEditorUIHandler(TuttiUI parentUi,
CaracteristicMapEditorUI ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRow()
Adds a row with the parameter selected in the combo box
|
void |
afterInitUI() |
void |
beforeInitUI() |
protected void |
beforeOpenPopup(int rowIndex,
int columnIndex)
Hook to prepare popup just before showing it.
|
void |
cancel() |
void |
editBatch(CaracteristicMapColumnRowModel caracteristicMapColumnRowModel,
CaracteristicMapCellComponent.CaracteristicMapCellEditor caracteristicMapCellEditor,
Set<Caracteristic> caracteristicsUsed)
Edit the batch caracteristics
|
protected JComponent |
getComponentToFocus() |
protected jaxx.runtime.swing.editor.bean.BeanFilterableComboBox<Caracteristic> |
getKeyCombo() |
org.jdesktop.swingx.JXTable |
getTable() |
CaracteristicMapEditorTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<CaracteristicMapEditorUIModel> |
getValidator() |
protected boolean |
isRowValid(CaracteristicMapEditorRowModel row)
Validates the given row.
|
void |
onCloseUI() |
protected void |
onRowModified(int rowIndex,
CaracteristicMapEditorRowModel row,
String propertyName,
Object oldValue,
Object newValue)
Invoke each time the
AbstractTuttiBeanUIModel.modify state on
the current selected row changed. |
void |
removeCaracteristic() |
void |
save() |
protected void |
saveRow(CaracteristicMapEditorRowModel row) |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<CaracteristicMapEditorRowModel> rowMonitor,
CaracteristicMapEditorRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
cleanrRowMonitor, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, onAfterSelectedRowChanged, onModelRowsChanged, onRowModifyStateChanged, onRowValidStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addFloatColumnToModel, addHighlighters, addIntegerColumnToModel, askCancelEditBeforeLeaving, askSaveBeforeLeaving, autoSelectRowInTable, buildReminderLabelTitle, buildReminderLabelTitle, changeValidatorContext, clearValidators, closeDialog, closeUI, decorate, decorate, getConfig, getContext, getDataContext, getDecorator, getModel, getPropertiesToIgnore, getTopestUI, getUI, incrementsMessage, initBeanFilterableComboBox, initBeanFilterableComboBox, initBeanList, initBeanList, initButton, initButtonAttachment, initCoordinateDMDEditor, initCoordinateDMSEditor, 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, setFile, setText, showInformationMessage, showSuccessMessageprotected CaracteristicMapCellComponent.CaracteristicMapCellEditor caracteristicMapCellEditor
public CaracteristicMapEditorUIHandler(TuttiUI parentUi, CaracteristicMapEditorUI ui)
public CaracteristicMapEditorTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<CaracteristicMapEditorRowModel,CaracteristicMapEditorUIModel,CaracteristicMapEditorUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<CaracteristicMapEditorRowModel,CaracteristicMapEditorUIModel,CaracteristicMapEditorUI>protected boolean isRowValid(CaracteristicMapEditorRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<CaracteristicMapEditorRowModel,CaracteristicMapEditorUIModel,CaracteristicMapEditorUI>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
CaracteristicMapEditorRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<CaracteristicMapEditorRowModel,CaracteristicMapEditorUIModel,CaracteristicMapEditorUI>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<CaracteristicMapEditorRowModel> rowMonitor, CaracteristicMapEditorRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<CaracteristicMapEditorRowModel,CaracteristicMapEditorUIModel,CaracteristicMapEditorUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected void beforeOpenPopup(int rowIndex,
int columnIndex)
AbstractTuttiUIHandlerbeforeOpenPopup in class AbstractTuttiUIHandler<CaracteristicMapEditorUIModel,CaracteristicMapEditorUI>rowIndex - selected row index (or lowest selected one)columnIndex - selected column indexpublic void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<CaracteristicMapEditorUIModel,CaracteristicMapEditorUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<CaracteristicMapEditorUIModel,CaracteristicMapEditorUI>protected JComponent getComponentToFocus()
getComponentToFocus in class AbstractTuttiUIHandler<CaracteristicMapEditorUIModel,CaracteristicMapEditorUI>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<CaracteristicMapEditorUIModel,CaracteristicMapEditorUI>public jaxx.runtime.validator.swing.SwingValidator<CaracteristicMapEditorUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<CaracteristicMapEditorUIModel,CaracteristicMapEditorUI>public void cancel()
cancel in interface Cancelablepublic void addRow()
public void editBatch(CaracteristicMapColumnRowModel caracteristicMapColumnRowModel, CaracteristicMapCellComponent.CaracteristicMapCellEditor caracteristicMapCellEditor, Set<Caracteristic> caracteristicsUsed)
caracteristicMapColumnRowModel - the row to editcaracteristicMapCellEditor - the editorcaracteristicsUsed - the set of the caracteristics used in the other rows.
If no caracteristic is set on this row, add automatically these caracteristics with a null valuepublic void removeCaracteristic()
public void save()
protected jaxx.runtime.swing.editor.bean.BeanFilterableComboBox<Caracteristic> getKeyCombo()
protected void saveRow(CaracteristicMapEditorRowModel row)
Copyright © 2012–2013 Ifremer. All rights reserved.