public class EditProtocolUIHandler extends AbstractTuttiTableUIHandler<EditProtocolSpeciesRowModel,EditProtocolUIModel,EditProtocolUI>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
EditProtocolUIHandler.UpdateSelectedList |
| Modifier and Type | Field and Description |
|---|---|
protected SelectSpeciesUI |
dialog |
persistenceServicecontext, ui| Constructor and Description |
|---|
EditProtocolUIHandler(TuttiUI parentUi,
EditProtocolUI ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDoubleListListeners() |
protected void |
addLengthClassesColumnToModel(TableColumnModel model,
List<String> selectedIds) |
void |
afterInitUI() |
void |
beforeInitUI() |
boolean |
canCloseUI(TuttiScreen nextScreen)
Can the UI be closed? It is useful whe the user wants to exit the current
screen but the model is modified: we can then ask the user if he wants to
save or not.
|
org.jdesktop.swingx.JXTable |
getTable() |
EditProtocolSpeciesTableModel |
getTableModel() |
jaxx.runtime.validator.swing.SwingValidator<EditProtocolUIModel> |
getValidator() |
protected void |
initDoubleList(String propertyId,
jaxx.runtime.swing.editor.bean.BeanDoubleList<Caracteristic> widget,
List<Caracteristic> availableCaracteristics,
List<String> selectedCaracteristics) |
protected boolean |
isRowValid(EditProtocolSpeciesRowModel row)
Validates the given row.
|
protected void |
onAfterSelectedRowChanged(int oldRowIndex,
EditProtocolSpeciesRowModel oldRow,
int newRowIndex,
EditProtocolSpeciesRowModel newRow) |
void |
onCloseUI() |
protected void |
onRowModified(int rowIndex,
EditProtocolSpeciesRowModel row,
String propertyName,
Object oldValue,
Object newValue)
Invoke each time the
AbstractTuttiBeanUIModel.modify state on
the current selected row changed. |
protected void |
onRowValidStateChanged(int rowIndex,
EditProtocolSpeciesRowModel row,
Boolean oldValue,
Boolean newValue) |
Species |
openSelectOtherSpeciesDialog(String title,
List<Species> species) |
void |
removeDoubleListListeners() |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<EditProtocolSpeciesRowModel> rowMonitor,
EditProtocolSpeciesRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
protected void |
selectLengthClasses(List<String> ids,
JComboBox comboBox) |
List<EditProtocolSpeciesRowModel> |
toRows(List<SpeciesProtocol> speciesProtocols) |
addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, autoSelectRowInTable, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, newTableCellRender, newTableCellRender, newTableCellRender, onModelRowsChanged, onRowModifyStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListeneraskCancelEditBeforeLeaving, askSaveBeforeLeaving, changeValidatorContext, clearValidators, closeDialog, closeUI, createAction, decorate, doAction, getConfig, getContext, getDecorator, getModel, getPropertiesToIgnore, getUI, initAction, initBeanComboBox, initBeanComboBox, initBeanList, initDatePicker, initNumberEditor, initTimeEditor, initUI, listenValidatorValid, listModelIsModify, newComboActionModel, newComboModel, newListCellRender, newListCellRender, newListCellRender, openDialog, registerValidators, selectFirstInCombo, selectListData, setBoolean, setDate, setText, showInformationMessageprotected SelectSpeciesUI dialog
public EditProtocolUIHandler(TuttiUI parentUi, EditProtocolUI ui)
public EditProtocolSpeciesTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<EditProtocolSpeciesRowModel,EditProtocolUIModel,EditProtocolUI>public org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<EditProtocolSpeciesRowModel,EditProtocolUIModel,EditProtocolUI>protected boolean isRowValid(EditProtocolSpeciesRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<EditProtocolSpeciesRowModel,EditProtocolUIModel,EditProtocolUI>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
EditProtocolSpeciesRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<EditProtocolSpeciesRowModel,EditProtocolUIModel,EditProtocolUI>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 onRowValidStateChanged(int rowIndex,
EditProtocolSpeciesRowModel row,
Boolean oldValue,
Boolean newValue)
protected void saveSelectedRowIfRequired(TuttiBeanMonitor<EditProtocolSpeciesRowModel> rowMonitor, EditProtocolSpeciesRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<EditProtocolSpeciesRowModel,EditProtocolUIModel,EditProtocolUI>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessarypublic jaxx.runtime.validator.swing.SwingValidator<EditProtocolUIModel> getValidator()
getValidator in class AbstractTuttiUIHandler<EditProtocolUIModel,EditProtocolUI>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<EditProtocolUIModel,EditProtocolUI>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<EditProtocolUIModel,EditProtocolUI>public List<EditProtocolSpeciesRowModel> toRows(List<SpeciesProtocol> speciesProtocols)
public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<EditProtocolUIModel,EditProtocolUI>public boolean canCloseUI(TuttiScreen nextScreen)
AbstractTuttiUIHandlercanCloseUI in class AbstractTuttiUIHandler<EditProtocolUIModel,EditProtocolUI>nextScreen - the next screen to displaytrue if UI can be closed, false otherwise.protected void onAfterSelectedRowChanged(int oldRowIndex,
EditProtocolSpeciesRowModel oldRow,
int newRowIndex,
EditProtocolSpeciesRowModel newRow)
public void addDoubleListListeners()
public void removeDoubleListListeners()
public Species openSelectOtherSpeciesDialog(String title, List<Species> species)
protected void initDoubleList(String propertyId, jaxx.runtime.swing.editor.bean.BeanDoubleList<Caracteristic> widget, List<Caracteristic> availableCaracteristics, List<String> selectedCaracteristics)
protected void addLengthClassesColumnToModel(TableColumnModel model, List<String> selectedIds)
Copyright © 2012-2013 Ifremer. All Rights Reserved.