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 ComputeBatchWeightsAction |
computeBatchWeightsAction
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.
|
| Constructor and Description |
|---|
EditFishingOperationAction(FishingOperationsUIHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
displayValidationErrors() |
void |
doAction() |
protected ComputeBatchWeightsAction |
getComputeBatchWeightsAction() |
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 catchEnabled) |
void |
setCheckPreviousEdit(boolean checkPreviousEdit) |
void |
setFishingOperation(FishingOperation fishingOperation) |
void |
setInternalAction(boolean internalAction) |
askAdminPassword, createProgressionModelIfRequired, getConfig, getContext, getDataContext, getProgressionModel, openAddSpeciesDialog, sendMessage, setProgressionModelaskBeforeDelete, askOverwriteFile, chooseFile, decorate, decorate, displayErrorMessage, displayInfoMessage, displayWarningMessage, getActionDescription, getActionEngine, getActionFactory, getDecorator, getHandler, getModel, getUI, isHideBody, saveFile, saveFile, 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 ComputeBatchWeightsAction computeBatchWeightsAction
protected SaveCatchBatchAction saveCatchBatchAction
protected final List<String> errorMessages
protected boolean internalAction
public EditFishingOperationAction(FishingOperationsUIHandler handler)
public void setFishingOperation(FishingOperation fishingOperation)
public void setCheckPreviousEdit(boolean checkPreviousEdit)
public void releaseAction()
releaseAction in class org.nuiton.jaxx.application.swing.action.AbstractApplicationAction<FishingOperationsUIModel,FishingOperationsUI,FishingOperationsUIHandler>protected SaveFishingOperationAction getSaveFishingOperationAction()
protected SaveCatchBatchAction getSaveCatchBatchAction()
protected ComputeBatchWeightsAction getComputeBatchWeightsAction()
public boolean prepareAction()
prepareAction in class org.nuiton.jaxx.application.swing.action.AbstractApplicationAction<FishingOperationsUIModel,FishingOperationsUI,FishingOperationsUIHandler>public void doAction()
throws Exception
doAction in class AbstractTuttiAction<FishingOperationsUIModel,FishingOperationsUI,FishingOperationsUIHandler>Exceptionpublic void postSuccessAction()
postSuccessAction in class org.nuiton.jaxx.application.swing.action.AbstractApplicationAction<FishingOperationsUIModel,FishingOperationsUI,FishingOperationsUIHandler>public void displayValidationErrors()
public void loadFishingOperation(FishingOperation bean)
public void loadCatchBatch(FishingOperation bean)
public void postFailedAction(Throwable error)
postFailedAction in class org.nuiton.jaxx.application.swing.action.AbstractApplicationAction<FishingOperationsUIModel,FishingOperationsUI,FishingOperationsUIHandler>protected void setCatch(List<Attachment> attachments, EditCatchesUIModel catchesUIModel, TuttiBeanMonitor<EditCatchesUIModel> catchBatchMonitor, CatchBatch batch, boolean catchEnabled)
public void setInternalAction(boolean internalAction)
Copyright © 2012–2014 Ifremer. All rights reserved.