public class HydrologyTabUIHandler extends AbstractTuttiTableUIHandler<HydrologyRowModel,HydrologyTabUIModel>
| Modifier and Type | Field and Description |
|---|---|
protected Map<Caracteristic,Map<HydrologicCaracteristicUtil.Type,Caracteristic>> |
availableGlobalCaracteristics |
protected HydrologyTabUI |
ui
UI.
|
persistenceServicecontext| Constructor and Description |
|---|
HydrologyTabUIHandler(EditFishingOperationUI parentUi,
HydrologyTabUI ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRow()
Adds a row with the parameter selected in the combo box
|
void |
afterInitUI() |
void |
beforeInitUI() |
protected HydrologyTabUIModel |
getModel() |
protected org.jdesktop.swingx.JXTable |
getTable() |
protected HydrologyTableModel |
getTableModel() |
protected boolean |
isRowValid(HydrologyRowModel row)
Validates the given row.
|
protected void |
onAfterSelectedRowChanged(int oldRowIndex,
HydrologyRowModel oldRow,
int newRowIndex,
HydrologyRowModel newRow) |
void |
onCloseUI() |
protected void |
onRowModified(int rowIndex,
HydrologyRowModel row,
String propertyName,
Object oldValue,
Object newValue)
Invoke each time the
AbstractTuttiBeanUIModel.modify state on
the current selected row changed. |
void |
removeCaracteristic() |
void |
reset(FishingOperation fishingOperation)
Resets the table with the data from the database
|
protected void |
saveRow(HydrologyRowModel row) |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<HydrologyRowModel> rowMonitor,
HydrologyRowModel 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, onRowValidStateChanged, recomputeRowValidState, saveSelectedRowIfNeeded, uninstallTableKeyListener, uninstallTableSaveOnRowChangedSelectionListenerchangeValidatorContext, closeDialog, closeUI, decorate, getConfig, getContext, getDecorator, initBeanComboBox, initBeanList, initDatePicker, initNumberEditor, initTimeEditor, initUI, listenValidatorValid, listModelIsModify, newListCellRender, newListCellRender, newListCellRender, openDialog, selectFirstInCombo, selectListData, setBoolean, setDate, setText, showInformationMessageprotected final HydrologyTabUI ui
protected Map<Caracteristic,Map<HydrologicCaracteristicUtil.Type,Caracteristic>> availableGlobalCaracteristics
public HydrologyTabUIHandler(EditFishingOperationUI parentUi, HydrologyTabUI ui)
protected org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<HydrologyRowModel,HydrologyTabUIModel>protected HydrologyTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<HydrologyRowModel,HydrologyTabUIModel>protected boolean isRowValid(HydrologyRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<HydrologyRowModel,HydrologyTabUIModel>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
HydrologyRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<HydrologyRowModel,HydrologyTabUIModel>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 saveSelectedRowIfRequired(TuttiBeanMonitor<HydrologyRowModel> rowMonitor, HydrologyRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<HydrologyRowModel,HydrologyTabUIModel>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected HydrologyTabUIModel getModel()
getModel in class AbstractTuttiUIHandler<HydrologyTabUIModel>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<HydrologyTabUIModel>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<HydrologyTabUIModel>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<HydrologyTabUIModel>protected void onAfterSelectedRowChanged(int oldRowIndex,
HydrologyRowModel oldRow,
int newRowIndex,
HydrologyRowModel newRow)
onAfterSelectedRowChanged in class AbstractTuttiTableUIHandler<HydrologyRowModel,HydrologyTabUIModel>public void addRow()
public void reset(FishingOperation fishingOperation)
public void removeCaracteristic()
protected void saveRow(HydrologyRowModel row)
Copyright © 2012-2013 Ifremer. All Rights Reserved.