public class EditFishingOperationAction extends AbstractTuttiAction<FishingOperationsUIModel,FishingOperationsUI,FishingOperationsUIHandler>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkPreviousEdit
A flag to not check if there is a previous edit.
|
protected ComputeWeightsAction |
computeWeightsAction
Delegate action to compute the weight of the operations.
|
protected List<String> |
errorMessages
To keep catch validation error while loading batches.
|
protected FishingOperation |
fishingOperation
The incoming fishing operation to edit.
|
protected boolean |
internalAction
Flag to know if this action is part of another action.
|
protected SaveCatchBatchAction |
saveCatchBatchAction
Delegate action to save catch batch.
|
protected SaveFishingOperationAction |
saveFishingOperationAction
Delegate action to save Fising Operation.
|
actionDescription, handler, hideBody, lock, PROPERTY_DONE| Constructor and Description |
|---|
EditFishingOperationAction(FishingOperationsUIHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
displayValidationErrors() |
void |
doAction() |
protected ComputeWeightsAction |
getComputeWeightsAction() |
protected SaveCatchBatchAction |
getSaveCatchBatchAction() |
protected SaveFishingOperationAction |
getSaveFishingOperationAction() |
void |
loadCatchBatch(FishingOperation bean) |
void |
loadFishingOperation(FishingOperation bean) |
void |
postFailedAction(Throwable error) |
void |
postSuccessAction() |
boolean |
prepareAction() |
void |
releaseAction() |
protected void |
setCatch(List<Attachment> attachments,
EditCatchesUIModel catchesUIModel,
TuttiBeanMonitor<EditCatchesUIModel> catchBatchMonitor,
CatchBatch batch,
boolean sampleModelValid,
boolean catchEnabled,
boolean catchNotFound) |
void |
setCheckPreviousEdit(boolean checkPreviousEdit) |
void |
setFishingOperation(FishingOperation fishingOperation) |
void |
setInternalAction(boolean internalAction) |
askAdminPassword, askBeforeDelete, chooseFile, decorate, decorate, displayInfoMessage, displayWarningMessage, getActionDescription, getConfig, getContext, getDataContext, getDecorator, getHandler, getModel, getProgressionModel, getUI, isHideBody, saveFile, saveFile, sendMessage, setActionDescription, setProgressionModeladdPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerprotected FishingOperation fishingOperation
protected boolean checkPreviousEdit
protected SaveFishingOperationAction saveFishingOperationAction
protected ComputeWeightsAction computeWeightsAction
protected SaveCatchBatchAction saveCatchBatchAction
protected List<String> errorMessages
protected boolean internalAction
public EditFishingOperationAction(FishingOperationsUIHandler handler)
public void setFishingOperation(FishingOperation fishingOperation)
public void setCheckPreviousEdit(boolean checkPreviousEdit)
public void releaseAction()
protected SaveFishingOperationAction getSaveFishingOperationAction()
protected SaveCatchBatchAction getSaveCatchBatchAction()
protected ComputeWeightsAction getComputeWeightsAction()
public boolean prepareAction()
public void doAction()
throws Exception
doAction in class AbstractTuttiAction<FishingOperationsUIModel,FishingOperationsUI,FishingOperationsUIHandler>Exceptionpublic void postSuccessAction()
public void displayValidationErrors()
public void loadFishingOperation(FishingOperation bean)
public void loadCatchBatch(FishingOperation bean)
public void postFailedAction(Throwable error)
protected void setCatch(List<Attachment> attachments, EditCatchesUIModel catchesUIModel, TuttiBeanMonitor<EditCatchesUIModel> catchBatchMonitor, CatchBatch batch, boolean sampleModelValid, boolean catchEnabled, boolean catchNotFound)
public void setInternalAction(boolean internalAction)
Copyright © 2012–2013 Ifremer. All rights reserved.