public abstract class AbstractAdapterEditor extends ModalDialog
Modifier and Type | Field and Description |
---|---|
protected com.bc.ceres.swing.binding.BindingContext |
bindingContext |
protected AppContext |
context |
protected int |
controlHeight |
protected OperationType |
currentOperation |
protected JTextField |
customMenuLocation |
protected int |
formWidth |
static String |
helpID |
protected Logger |
logger |
protected static int |
MAX_4K_HEIGHT |
protected static int |
MAX_4K_WIDTH |
protected static String |
MESSAGE_REQUIRED |
protected static int |
MIN_HEIGHT |
protected static int |
MIN_TABBED_HEIGHT |
protected static int |
MIN_TABBED_WIDTH |
protected static int |
MIN_WIDTH |
protected int |
newNameIndex |
protected org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor |
newOperatorDescriptor |
protected org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor |
oldOperatorDescriptor |
protected OperatorParametersTable |
paramsTable |
protected com.bc.ceres.binding.PropertyContainer |
propertyContainer |
protected JRadioButton |
rbMenuNew |
protected JTextArea |
templateContent |
protected VariablesTable |
varTable |
ID_OK_APPLY_CANCEL, ID_OK_APPLY_CANCEL_HELP, ID_OK_CANCEL, ID_OK_CANCEL_HELP, ID_YES_NO, ID_YES_NO_HELP
Constructor and Description |
---|
AbstractAdapterEditor(AppContext appContext,
JDialog parent,
org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operatorDescriptor,
int newNameIndex,
OperationType operation)
Constructs a new window for editing the operator
|
AbstractAdapterEditor(AppContext appContext,
JDialog parent,
org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operatorDescriptor,
OperationType operation)
Constructs a new window for editing the operator
|
Modifier and Type | Method and Description |
---|---|
protected void |
addComboField(JPanel parent,
String labelText,
String propertyName,
boolean isRequired,
boolean isEditable) |
protected void |
addComboField(JPanel parent,
String labelText,
String propertyName,
List<String> values,
boolean sortValues,
boolean isRequired) |
protected void |
addTextField(JPanel parent,
com.bc.ceres.swing.binding.internal.TextFieldEditor textEditor,
String labelText,
String propertyName,
boolean isRequired) |
protected void |
addValidatedTextField(JPanel parent,
com.bc.ceres.swing.binding.internal.TextFieldEditor textEditor,
String labelText,
String propertyName,
String validatorRegex) |
protected JComponent |
createCheckboxComponent(String memberName,
JComponent toogleComponentEnabled,
Boolean value) |
protected abstract JPanel |
createDescriptorPanel() |
static AbstractAdapterEditor |
createEditorDialog(AppContext appContext,
JDialog parent,
org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operatorDescriptor,
int newNameIndex,
OperationType operation) |
static AbstractAdapterEditor |
createEditorDialog(AppContext appContext,
JDialog parent,
org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operatorDescriptor,
OperationType operation) |
protected abstract JComponent |
createMainPanel() |
protected abstract JPanel |
createParametersPanel() |
protected abstract JPanel |
createPatternsPanel() |
protected abstract JPanel |
createPreProcessingPanel() |
protected JTextArea |
createTemplateEditorField() |
protected abstract JPanel |
createToolInfoPanel() |
protected abstract JPanel |
createVariablesPanel() |
protected List<String> |
getAutocompleteEntries() |
protected List<String> |
getAvailableMenuOptions(org.openide.filesystems.FileObject current) |
protected void |
onOK()
Called if the "OK" button has been clicked.
|
protected void |
onOther()
Called if a non-standard button has been clicked.
|
protected boolean |
resolveTemplateProductCount(String templateContent) |
protected boolean |
shouldValidate() |
int |
show()
Shows the dialog.
|
protected boolean |
verifyUserInput()
Called in order to perform input validation.
|
close
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
protected static final String MESSAGE_REQUIRED
protected static final int MIN_WIDTH
protected static final int MIN_HEIGHT
protected static final int MIN_TABBED_WIDTH
protected static final int MIN_TABBED_HEIGHT
protected static int MAX_4K_WIDTH
protected static int MAX_4K_HEIGHT
protected org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor oldOperatorDescriptor
protected org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor newOperatorDescriptor
protected int newNameIndex
protected com.bc.ceres.binding.PropertyContainer propertyContainer
protected com.bc.ceres.swing.binding.BindingContext bindingContext
protected JTextArea templateContent
protected OperatorParametersTable paramsTable
protected AppContext context
protected Logger logger
protected JTextField customMenuLocation
protected JRadioButton rbMenuNew
public static final String helpID
protected int formWidth
protected int controlHeight
protected OperationType currentOperation
protected VariablesTable varTable
public AbstractAdapterEditor(AppContext appContext, JDialog parent, org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operatorDescriptor, OperationType operation)
appContext
- the application contextoperatorDescriptor
- the descriptor of the operator to be editedoperation
- is the type of desired operation: NEW/COPY if the operator was not previously registered (so it is a new operator) and EDIT if the operator was registered and the editing operation is requestedpublic AbstractAdapterEditor(AppContext appContext, JDialog parent, org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operatorDescriptor, int newNameIndex, OperationType operation)
appContext
- the application contextoperatorDescriptor
- the descriptor of the operator to be editednewNameIndex
- an integer value representing the suffix for the new operator name; if this value is less than 1, the editing operation of the current operator is executed; if the value is equal to or greater than 1, the operator is duplicated and the index value is used to compute the name of the new operatoroperation
- is the type of desired operation: NEW/COPY if the operator was not previously registered (so it is a new operator) and EDIT if the operator was registered and the editing operation is requestedpublic static AbstractAdapterEditor createEditorDialog(AppContext appContext, JDialog parent, org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operatorDescriptor, OperationType operation)
public static AbstractAdapterEditor createEditorDialog(AppContext appContext, JDialog parent, org.esa.snap.core.gpf.descriptor.ToolAdapterOperatorDescriptor operatorDescriptor, int newNameIndex, OperationType operation)
protected abstract JComponent createMainPanel()
protected abstract JPanel createDescriptorPanel()
protected abstract JPanel createVariablesPanel()
protected abstract JPanel createPreProcessingPanel()
protected abstract JPanel createToolInfoPanel()
protected abstract JPanel createPatternsPanel()
protected abstract JPanel createParametersPanel()
protected boolean shouldValidate()
protected boolean verifyUserInput()
AbstractDialog
verifyUserInput
in class AbstractDialog
true
if and only if the validation was successful.protected void onOK()
AbstractDialog
AbstractDialog.hide()
.
Clients should override this method to implement meaningful behaviour.onOK
in class AbstractDialog
public int show()
AbstractDialog
super.show()
at the end.show
in class AbstractDialog
protected void onOther()
AbstractDialog
AbstractDialog.hide()
.
Clients should override this method to implement meaningful behaviour.onOther
in class AbstractDialog
protected JComponent createCheckboxComponent(String memberName, JComponent toogleComponentEnabled, Boolean value)
protected void addValidatedTextField(JPanel parent, com.bc.ceres.swing.binding.internal.TextFieldEditor textEditor, String labelText, String propertyName, String validatorRegex)
protected void addTextField(JPanel parent, com.bc.ceres.swing.binding.internal.TextFieldEditor textEditor, String labelText, String propertyName, boolean isRequired)
protected void addComboField(JPanel parent, String labelText, String propertyName, boolean isRequired, boolean isEditable)
protected void addComboField(JPanel parent, String labelText, String propertyName, List<String> values, boolean sortValues, boolean isRequired)
protected List<String> getAvailableMenuOptions(org.openide.filesystems.FileObject current)
protected boolean resolveTemplateProductCount(String templateContent)
protected JTextArea createTemplateEditorField()
Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.