public class EditProtocolUIHandler extends AbstractTuttiTableUIHandler<EditProtocolSpeciesRowModel,EditProtocolUIModel>
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Caracteristic> |
allLengthStepPmfm |
protected Map<String,Species> |
allSpecies |
protected com.google.common.collect.Multimap<String,String> |
hydroCaracteristics |
persistenceServicecontext| Constructor and Description |
|---|
EditProtocolUIHandler(TuttiUIContext context,
EditProtocolUI ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRow() |
void |
afterInitUI() |
void |
beforeInitUI() |
void |
cancel() |
protected EditProtocolUIModel |
getModel() |
protected org.jdesktop.swingx.JXTable |
getTable() |
protected EditProtocolSpeciesTableModel |
getTableModel() |
protected void |
initDoubleList(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) |
void |
removeSpecies()
Removes a species
|
void |
save() |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<EditProtocolSpeciesRowModel> rowMonitor,
EditProtocolSpeciesRowModel row)
Given the row monitor and his monitored row, try to save it if required.
|
addBooleanColumnToModel, addColumnToModel, addColumnToModel, addComboDataColumnToModel, addFloatColumnToModel, addIntegerColumnToModel, autoSelectRowInTable, getRowPropertiesToIgnore, initTable, installTableKeyListener, installTableSaveOnRowChangedSelectionListener, newTableCellRender, newTableCellRender, newTableCellRender, onModelRowsChanged, onRowModifyStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListenercloseDialog, closeUI, decorate, getConfig, getContext, getDecorator, initBeanComboBox, initBeanList, initDatePicker, initNumberEditor, initTimeEditor, initUI, listenValidatorValid, listModelIsModify, newListCellRender, newListCellRender, newListCellRender, openDialog, selectFirstInCombo, selectListData, setBoolean, setDate, setText, showInformationMessageprotected Map<String,Caracteristic> allLengthStepPmfm
public EditProtocolUIHandler(TuttiUIContext context, EditProtocolUI ui)
protected EditProtocolSpeciesTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<EditProtocolSpeciesRowModel,EditProtocolUIModel>protected org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<EditProtocolSpeciesRowModel,EditProtocolUIModel>protected boolean isRowValid(EditProtocolSpeciesRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<EditProtocolSpeciesRowModel,EditProtocolUIModel>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>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)
onRowValidStateChanged in class AbstractTuttiTableUIHandler<EditProtocolSpeciesRowModel,EditProtocolUIModel>protected void saveSelectedRowIfRequired(TuttiBeanMonitor<EditProtocolSpeciesRowModel> rowMonitor, EditProtocolSpeciesRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<EditProtocolSpeciesRowModel,EditProtocolUIModel>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected EditProtocolUIModel getModel()
getModel in class AbstractTuttiUIHandler<EditProtocolUIModel>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<EditProtocolUIModel>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<EditProtocolUIModel>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<EditProtocolUIModel>protected void onAfterSelectedRowChanged(int oldRowIndex,
EditProtocolSpeciesRowModel oldRow,
int newRowIndex,
EditProtocolSpeciesRowModel newRow)
public void cancel()
public void save()
public void addRow()
public void removeSpecies()
protected void initDoubleList(jaxx.runtime.swing.editor.bean.BeanDoubleList<Caracteristic> widget, List<Caracteristic> availableCaracteristics, List<String> selectedCaracteristics)
Copyright © 2012-2013 Ifremer. All Rights Reserved.