public class ToolAdapterExecutionDialog
extends org.esa.snap.core.gpf.ui.SingleTargetProductDialog
| Modifier and Type | Class and Description |
|---|---|
class |
ToolAdapterExecutionDialog.OperatorTask
Runnable for executing the operator.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
helpID |
static String |
SOURCE_PRODUCT_FIELD |
appContext, targetProductSelectorID_APPLY_CLOSE, ID_APPLY_CLOSE_HELP| Constructor and Description |
|---|
ToolAdapterExecutionDialog(org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor descriptor,
AppContext appContext,
String title)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canApply() |
protected org.esa.snap.core.datamodel.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, showSuppressibleInformationDialogclosecenter, collectButtons, getButton, getButtonID, getButtonMask, getButtonPanel, getContent, getHelpID, getJDialog, getParent, getQualifiedPropertyName, getTitle, onHelp, onNo, onOK, onOther, onReset, onYes, registerButton, setButtonID, setContent, setContent, setHelpID, setTitle, showErrorDialog, showInformationDialog, showWarningDialog, verifyUserInputpublic static final String SOURCE_PRODUCT_FIELD
public static final String helpID
public ToolAdapterExecutionDialog(org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor descriptor,
AppContext appContext,
String title)
descriptor - The operator descriptorappContext - The application contexttitle - The dialog titleprotected void onApply()
AbstractDialogonApply in class org.esa.snap.core.gpf.ui.SingleTargetProductDialogpublic int show()
AbstractDialogsuper.show() at the end.show in class AbstractDialogpublic void hide()
AbstractDialogsuper.hide() at the end. This method does nothing else than hiding the underlying Swing dialog.hide in class AbstractDialogAbstractDialog.getJDialog()protected org.esa.snap.core.datamodel.Product createTargetProduct()
throws Exception
org.esa.snap.core.gpf.ui.SingleTargetProductDialogGPF
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.SingleTargetProductDialogException - if an error occurs, an OperatorException is signaling "nominal" processing errors.protected boolean canApply()
canApply in class org.esa.snap.core.gpf.ui.SingleTargetProductDialogprotected void onCancel()
AbstractDialogAbstractDialog.hide().
Clients should override this method to implement meaningful behaviour.onCancel in class AbstractDialogprotected void onClose()
AbstractDialogAbstractDialog.hide().
Clients should override this method to implement meaningful behaviour.onClose in class AbstractDialogCopyright © 2014–2016 European Space Agency (ESA). All rights reserved.