public class EnvironmentTabUIHandler extends AbstractTuttiTableUIHandler<EnvironmentRowModel,EnvironmentTabUIModel>
| Modifier and Type | Field and Description |
|---|---|
protected EnvironmentTabUI |
ui
UI.
|
persistenceServicecontext| Constructor and Description |
|---|
EnvironmentTabUIHandler(EditFishingOperationUI parentUi,
EnvironmentTabUI 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 EnvironmentTabUIModel |
getModel() |
protected org.jdesktop.swingx.JXTable |
getTable() |
protected EnvironmentTableModel |
getTableModel() |
protected boolean |
isRowValid(EnvironmentRowModel row)
Validates the given row.
|
protected void |
onAfterSelectedRowChanged(int oldRowIndex,
EnvironmentRowModel oldRow,
int newRowIndex,
EnvironmentRowModel newRow) |
void |
onCloseUI() |
protected void |
onRowModified(int rowIndex,
EnvironmentRowModel 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(EnvironmentRowModel row) |
protected void |
saveSelectedRowIfRequired(TuttiBeanMonitor<EnvironmentRowModel> rowMonitor,
EnvironmentRowModel 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 EnvironmentTabUI ui
public EnvironmentTabUIHandler(EditFishingOperationUI parentUi, EnvironmentTabUI ui)
protected EnvironmentTableModel getTableModel()
getTableModel in class AbstractTuttiTableUIHandler<EnvironmentRowModel,EnvironmentTabUIModel>protected org.jdesktop.swingx.JXTable getTable()
getTable in class AbstractTuttiTableUIHandler<EnvironmentRowModel,EnvironmentTabUIModel>protected boolean isRowValid(EnvironmentRowModel row)
AbstractTuttiTableUIHandlerisRowValid in class AbstractTuttiTableUIHandler<EnvironmentRowModel,EnvironmentTabUIModel>row - row to validatetrue if row is valid, false otherwise.protected void onRowModified(int rowIndex,
EnvironmentRowModel row,
String propertyName,
Object oldValue,
Object newValue)
AbstractTuttiTableUIHandlerAbstractTuttiBeanUIModel.modify state on
the current selected row changed.onRowModified in class AbstractTuttiTableUIHandler<EnvironmentRowModel,EnvironmentTabUIModel>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<EnvironmentRowModel> rowMonitor, EnvironmentRowModel row)
AbstractTuttiTableUIHandlersaveSelectedRowIfRequired in class AbstractTuttiTableUIHandler<EnvironmentRowModel,EnvironmentTabUIModel>rowMonitor - the row monitor (see AbstractTuttiTableUIHandler.rowMonitor)row - the row to save if necessaryprotected EnvironmentTabUIModel getModel()
getModel in class AbstractTuttiUIHandler<EnvironmentTabUIModel>public void beforeInitUI()
beforeInitUI in class AbstractTuttiUIHandler<EnvironmentTabUIModel>public void afterInitUI()
afterInitUI in class AbstractTuttiUIHandler<EnvironmentTabUIModel>public void onCloseUI()
onCloseUI in class AbstractTuttiUIHandler<EnvironmentTabUIModel>protected void onAfterSelectedRowChanged(int oldRowIndex,
EnvironmentRowModel oldRow,
int newRowIndex,
EnvironmentRowModel newRow)
onAfterSelectedRowChanged in class AbstractTuttiTableUIHandler<EnvironmentRowModel,EnvironmentTabUIModel>public void addRow()
public void reset(FishingOperation fishingOperation)
public void removeCaracteristic()
protected void saveRow(EnvironmentRowModel row)
Copyright © 2012-2013 Ifremer. All Rights Reserved.