public class EditSampleCategoryModelUIHandler extends AbstractTuttiTableUIHandler<EditSampleCategoryModelRowModel,EditSampleCategoryModelUIModel,EditSampleCategoryModelUI> implements Cancelable, CloseableUI
EditSampleCategoryModelUI.| Modifier and Type | Field and Description |
|---|---|
protected PersistenceService |
persistenceService |
CONFIRMATION_FORMAT, context, ui| Constructor and Description |
|---|
EditSampleCategoryModelUIHandler(TuttiUIContext context,
EditSampleCategoryModelUI ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCaracteristic() |
void |
afterInitUI() |
void |
beforeInitUI() |
void |
cancel() |
protected JComponent |
getComponentToFocus() |
org.jdesktop.swingx.JXTable |
getTable() |
EditSampleCategoryModelTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<EditSampleCategoryModelUIModel> |
getValidator() |
protected void |
initTable(org.jdesktop.swingx.JXTable table) |
protected boolean |
isRowValid(EditSampleCategoryModelRowModel row)
Validates the given row.
|
void |
moveDownEntry() |
void |
moveUpEntry() |
protected void |
onAfterSelectedRowChanged(int oldRowIndex,
EditSampleCategoryModelRowModel oldRow,
int newRowIndex,
EditSampleCategoryModelRowModel newRow) |
void |
onCloseUI() |
protected void |
onRowModified(int rowIndex,
EditSampleCategoryModelRowModel row,
String propertyName,
Object oldValue,
Object newValue)
Invoke each time the
AbstractTuttiBeanUIModel.modify state on
the current selected row changed. |
boolean |
quitUI()
Try to quit UI.
|
protected void |
recomputePopupActions() |
void |
removeEntry() |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<EditSampleCategoryModelRowModel> rowMonitor,
EditSampleCategoryModelRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
cleanrRowMonitor, getRowPropertiesToIgnore, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, onModelRowsChanged, onRowModifyStateChanged, onRowValidStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraddAutoSelectOnFocus, addBooleanColumnToModel, addColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addFloatColumnToModel, addHighlighters, addIntegerColumnToModel, askCancelEditBeforeLeaving, askSaveBeforeLeaving, autoSelectRowInTable, beforeOpenPopup, 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 PersistenceService persistenceService
public EditSampleCategoryModelUIHandler(TuttiUIContext context, EditSampleCategoryModelUI ui)
public void addCaracteristic()
public void removeEntry()
public void moveUpEntry()
public void moveDownEntry()
public EditSampleCategoryModelTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<EditSampleCategoryModelRowModel,EditSampleCategoryModelUIModel,EditSampleCategoryModelUI>protected JComponent getComponentToFocus()
getComponentToFocus in class AbstractTuttiUIHandler<EditSampleCategoryModelUIModel,EditSampleCategoryModelUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<EditSampleCategoryModelRowModel,EditSampleCategoryModelUIModel,EditSampleCategoryModelUI>protected boolean isRowValid(EditSampleCategoryModelRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<EditSampleCategoryModelRowModel,EditSampleCategoryModelUIModel,EditSampleCategoryModelUI>row - row to validatetrue if row is valid, false otherwise.protected void onAfterSelectedRowChanged(int oldRowIndex,
EditSampleCategoryModelRowModel oldRow,
int newRowIndex,
EditSampleCategoryModelRowModel newRow)
protected void saveSelectedRowIfRequired(TuttiBeanMonitor<EditSampleCategoryModelRowModel> rowMonitor, EditSampleCategoryModelRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<EditSampleCategoryModelRowModel,EditSampleCategoryModelUIModel,EditSampleCategoryModelUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected void onRowModified(int rowIndex,
EditSampleCategoryModelRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<EditSampleCategoryModelRowModel,EditSampleCategoryModelUIModel,EditSampleCategoryModelUI>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 propertypublic boolean quitUI()
CloseableUIquitUI in interface CloseableUItrue if ui is safe to quit, false otherwise
(means must stay on it).public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<EditSampleCategoryModelUIModel,EditSampleCategoryModelUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<EditSampleCategoryModelUIModel,EditSampleCategoryModelUI>protected void initTable(org.jdesktop.swingx.JXTable table)
public void cancel()
cancel in interface Cancelablepublic void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<EditSampleCategoryModelUIModel,EditSampleCategoryModelUI>public jaxx.runtime.validator.swing.SwingValidator<EditSampleCategoryModelUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<EditSampleCategoryModelUIModel,EditSampleCategoryModelUI>protected void recomputePopupActions()
Copyright © 2012–2013 Ifremer. All rights reserved.