public class GearCaracteristicsEditorUIHandler extends AbstractTuttiTableUIHandler<GearCaracteristicsEditorRowModel,GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI> implements org.nuiton.jaxx.application.swing.util.Cancelable
| Constructor and Description |
|---|
GearCaracteristicsEditorUIHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRow()
Adds a row with the parameter selected in the combo box
|
void |
afterInit(GearCaracteristicsEditorUI ui) |
void |
beforeInit(GearCaracteristicsEditorUI ui) |
protected void |
beforeOpenPopup(int rowIndex,
int columnIndex) |
void |
cancel() |
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.
|
cleanrRowMonitor, getRowPropertiesToIgnore, 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, affectKeyStroke, askCancelEditBeforeLeaving, askSaveBeforeLeaving, autoSelectRowInTable, 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 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 beforeOpenPopup(int rowIndex,
int columnIndex)
beforeOpenPopup in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>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 beforeInit(GearCaracteristicsEditorUI ui)
beforeInit in interface jaxx.runtime.spi.UIHandler<GearCaracteristicsEditorUI>beforeInit in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>public void afterInit(GearCaracteristicsEditorUI ui)
afterInit in interface jaxx.runtime.spi.UIHandler<GearCaracteristicsEditorUI>protected JComponent getComponentToFocus()
getComponentToFocus in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>public void onCloseUI()
onCloseUI in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>public jaxx.runtime.validator.swing.SwingValidator<GearCaracteristicsEditorUIModel> getValidator()
getValidator in class org.nuiton.jaxx.application.swing.AbstractApplicationUIHandler<GearCaracteristicsEditorUIModel,GearCaracteristicsEditorUI>public void cancel()
cancel in interface org.nuiton.jaxx.application.swing.util.Cancelableprotected jaxx.runtime.swing.editor.bean.BeanFilterableComboBox<Caracteristic> getKeyCombo()
protected void saveRow(GearCaracteristicsEditorRowModel row)
public void addRow()
public void removeCaracteristic()
public void save()
protected void editGear(Gear gear)
Copyright © 2012–2014 Ifremer. All rights reserved.