Class AbstractAdapterEditor
- java.lang.Object
-
- org.esa.snap.ui.AbstractDialog
-
- org.esa.snap.ui.ModalDialog
-
- org.esa.snap.ui.tooladapter.dialogs.AbstractAdapterEditor
-
- Direct Known Subclasses:
ToolAdapterEditorDialog
,ToolAdapterTabbedEditorDialog
public abstract class AbstractAdapterEditor extends ModalDialog
A dialog window used to edit an operator, or to create a new operator. It shows details of an operator such as: descriptor details (name, alias, label, version, copyright, authors, description), system variables, preprocessing tool, product writer, tool location, operator working directory, command line template content, tool output patterns and parameters.
-
-
Field Summary
Fields Modifier and Type Field Description protected AppContext
context
protected Logger
logger
-
Fields inherited from class org.esa.snap.ui.ModalDialog
ID_OK_APPLY_CANCEL, ID_OK_APPLY_CANCEL_HELP, ID_OK_CANCEL, ID_OK_CANCEL_HELP, ID_YES_NO, ID_YES_NO_HELP
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract JPanel
createBundlePanel()
protected abstract JPanel
createDescriptorPanel()
protected abstract JComponent
createMainPanel()
protected abstract JPanel
createParametersPanel()
protected abstract JPanel
createPatternsPanel()
protected abstract JPanel
createPreProcessingPanel()
protected abstract JPanel
createToolInfoPanel()
protected abstract JPanel
createVariablesPanel()
protected void
onOK()
Called if the "OK" button has been clicked.protected void
onOther()
Called if a non-standard button has been clicked.int
show()
Shows the dialog.protected boolean
verifyUserInput()
Called in order to perform input validation.-
Methods inherited from class org.esa.snap.ui.ModalDialog
close
-
Methods inherited from class org.esa.snap.ui.AbstractDialog
center, collectButtons, getButton, getButtonID, getButtonMask, getButtonPanel, getContent, getHelpID, getJDialog, getParent, getQualifiedPropertyName, getTitle, hide, onApply, onCancel, onClose, onHelp, onNo, onReset, onYes, registerButton, setButtonID, setContent, setContent, setHelpID, setTitle, showErrorDialog, showErrorDialog, showErrorDialog, showInformationDialog, showInformationDialog, showInformationDialog, showWarningDialog, showWarningDialog, showWarningDialog
-
-
-
-
Field Detail
-
context
protected AppContext context
-
logger
protected Logger logger
-
-
Method Detail
-
createMainPanel
protected abstract JComponent createMainPanel()
-
createDescriptorPanel
protected abstract JPanel createDescriptorPanel()
-
createVariablesPanel
protected abstract JPanel createVariablesPanel()
-
createPreProcessingPanel
protected abstract JPanel createPreProcessingPanel()
-
createToolInfoPanel
protected abstract JPanel createToolInfoPanel()
-
createPatternsPanel
protected abstract JPanel createPatternsPanel()
-
createParametersPanel
protected abstract JPanel createParametersPanel()
-
createBundlePanel
protected abstract JPanel createBundlePanel()
-
verifyUserInput
protected boolean verifyUserInput()
Description copied from class:AbstractDialog
Called in order to perform input validation.- Overrides:
verifyUserInput
in classAbstractDialog
- Returns:
true
if and only if the validation was successful.
-
onOK
protected void onOK()
Description copied from class:AbstractDialog
Called if the "OK" button has been clicked. The default implementation callsAbstractDialog.hide()
. Clients should override this method to implement meaningful behaviour.- Overrides:
onOK
in classAbstractDialog
-
show
public int show()
Description copied from class:AbstractDialog
Shows the dialog. Overrides shall callsuper.show()
at the end.- Overrides:
show
in classAbstractDialog
- Returns:
- the identifier of the last button pressed or zero if this is a modeless dialog.
-
onOther
protected void onOther()
Description copied from class:AbstractDialog
Called if a non-standard button has been clicked. The default implementation callsAbstractDialog.hide()
. Clients should override this method to implement meaningful behaviour.- Overrides:
onOther
in classAbstractDialog
-
-