public class ToolAdapterExecutionDialog extends org.esa.snap.core.gpf.ui.SingleTargetProductDialog
appContext, targetProductSelector
ID_APPLY_CLOSE, ID_APPLY_CLOSE_HELP
Constructor and Description |
---|
ToolAdapterExecutionDialog(ToolAdapterOperatorDescriptor descriptor,
AppContext appContext,
String title)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canApply() |
protected Product |
createTargetProduct()
Creates the desired target product.
|
void |
hide()
Hides the dialog.
|
protected void |
onApply()
Called if the "Apply" button has been clicked.
|
protected void |
onCancel()
Called if the "Cancel" button has been clicked.
|
protected void |
onClose()
Called if the "Close" button has been clicked.
|
int |
show()
Shows the dialog.
|
getAppContext, getTargetProductSelector, handleInitialisationError, handleProcessingError, showOpenInAppInfo, showSuppressibleInformationDialog
close
center, collectButtons, getButton, getButtonID, getButtonMask, getButtonPanel, getContent, getHelpID, getJDialog, getParent, getQualifiedPropertyName, getTitle, onHelp, onNo, onOK, onOther, onReset, onYes, registerButton, setButtonID, setContent, setContent, setHelpID, setTitle, showErrorDialog, showErrorDialog, showErrorDialog, showInformationDialog, showInformationDialog, showInformationDialog, showWarningDialog, showWarningDialog, showWarningDialog, verifyUserInput
public ToolAdapterExecutionDialog(ToolAdapterOperatorDescriptor descriptor, AppContext appContext, String title)
descriptor
- The operator descriptorappContext
- The application contexttitle
- The dialog titleprotected void onApply()
AbstractDialog
onApply
in class org.esa.snap.core.gpf.ui.SingleTargetProductDialog
public int show()
AbstractDialog
super.show()
at the end.show
in class AbstractDialog
public void hide()
AbstractDialog
super.hide()
at the end. This method does nothing else than hiding the underlying Swing dialog.hide
in class AbstractDialog
AbstractDialog.getJDialog()
protected Product createTargetProduct() throws Exception
org.esa.snap.core.gpf.ui.SingleTargetProductDialog
GPF
createProduct
methods.
The method should throw a OperatorException
in order to signal "nominal" processing errors,
other exeption types are treated as internal errors.
createTargetProduct
in class org.esa.snap.core.gpf.ui.SingleTargetProductDialog
Exception
- if an error occurs, an OperatorException
is signaling "nominal" processing errors.protected boolean canApply()
canApply
in class org.esa.snap.core.gpf.ui.SingleTargetProductDialog
protected void onCancel()
AbstractDialog
AbstractDialog.hide()
.
Clients should override this method to implement meaningful behaviour.onCancel
in class AbstractDialog
protected void onClose()
AbstractDialog
AbstractDialog.hide()
.
Clients should override this method to implement meaningful behaviour.onClose
in class AbstractDialog
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.