public class GearCaracteristicsEditorUIHandler extends AbstractTuttiTableUIHandler<GearCaracteristicsEditorRowModel,GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI> implements Cancelable
| Modifier and Type | Field and Description |
|---|---|
protected PersistenceService |
persistenceService |
CONFIRMATION_FORMAT, context, ui, WARNING_FORMAT| Constructor and Description |
|---|
GearCaracteristicsEditorUIHandler(TuttiUI parentUi,
GearCaracteristicsEditorUI ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRow()
Adds a row with the parameter selected in the combo box
|
void |
afterInitUI() |
void |
beforeInitUI() |
void |
cancel() |
protected GearCaracteristicsEditorUIModel |
createModel() |
protected void |
editGear(Gear gear) |
protected JComponent |
getComponentToFocus() |
protected jaxx.runtime.swing.editor.bean.BeanFilterableComboBox<Caracteristic> |
getKeyCombo() |
org.jdesktop.swingx.JXTable |
getTable() |
GearCaracteristicsEditorTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<GearCaracteristicsEditorUIModel> |
getValidator() |
protected boolean |
isRowValid(GearCaracteristicsEditorRowModel row)
Validates the given row.
|
protected void |
onAfterSelectedRowChanged(int oldRowIndex,
GearCaracteristicsEditorRowModel oldRow,
int newRowIndex,
GearCaracteristicsEditorRowModel newRow) |
void |
onCloseUI() |
protected void |
onRowModified(int rowIndex,
GearCaracteristicsEditorRowModel 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(GearCaracteristicsEditorRowModel row) |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<GearCaracteristicsEditorRowModel> rowMonitor,
GearCaracteristicsEditorRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
addHighlighters, cleanrRowMonitor, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, onModelRowsChanged, onRowModifyStateChanged, onRowValidStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, askBeforeDelete, 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, showSuccessMessageprotected final PersistenceService persistenceService
public GearCaracteristicsEditorUIHandler(TuttiUI parentUi, GearCaracteristicsEditorUI ui)
public GearCaracteristicsEditorTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<GearCaracteristicsEditorRowModel,GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<GearCaracteristicsEditorRowModel,GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>protected boolean isRowValid(GearCaracteristicsEditorRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<GearCaracteristicsEditorRowModel,GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
GearCaracteristicsEditorRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<GearCaracteristicsEditorRowModel,GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>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 onAfterSelectedRowChanged(int oldRowIndex,
GearCaracteristicsEditorRowModel oldRow,
int newRowIndex,
GearCaracteristicsEditorRowModel newRow)
protected void saveSelectedRowIfRequired(TuttiBeanMonitor<GearCaracteristicsEditorRowModel> rowMonitor, GearCaracteristicsEditorRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<GearCaracteristicsEditorRowModel,GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessarypublic void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>protected JComponent getComponentToFocus()
getComponentToFocus in class AbstractTuttiUIHandler<GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>public jaxx.runtime.validator.swing.SwingValidator<GearCaracteristicsEditorUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>public void cancel()
cancel in interface Cancelableprotected jaxx.runtime.swing.editor.bean.BeanFilterableComboBox<Caracteristic> getKeyCombo()
protected GearCaracteristicsEditorUIModel createModel()
protected void saveRow(GearCaracteristicsEditorRowModel row)
public void addRow()
public void removeCaracteristic()
public void save()
protected void editGear(Gear gear)
Copyright © 2012–2013 Ifremer. All rights reserved.