public abstract class AbstractAdapterEditor extends ModalDialog
| Modifier and Type | Field and Description |
|---|---|
protected BindingContext |
bindingContext |
protected AppContext |
context |
protected int |
controlHeight |
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 ToolAdapterOperatorDescriptor |
newOperatorDescriptor |
protected ToolAdapterOperatorDescriptor |
oldOperatorDescriptor |
protected boolean |
operatorIsNew |
protected OperatorParametersTable |
paramsTable |
protected PropertyContainer |
propertyContainer |
protected JRadioButton |
rbMenuNew |
protected JTextArea |
templateContent |
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,
ToolAdapterOperatorDescriptor operatorDescriptor,
boolean operatorIsNew)
Constructs a new window for editing the operator
|
AbstractAdapterEditor(AppContext appContext,
JDialog parent,
ToolAdapterOperatorDescriptor operatorDescriptor,
int newNameIndex)
Constructs a new window for editing the operator
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addComboField(JPanel parent,
String labelText,
String propertyName,
List<String> values,
boolean sortValues,
boolean isRequired) |
protected void |
addTextField(JPanel parent,
TextFieldEditor textEditor,
String labelText,
String propertyName,
boolean isRequired) |
protected void |
addValidatedTextField(JPanel parent,
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,
ToolAdapterOperatorDescriptor operatorDescriptor,
boolean operatorIsNew) |
static AbstractAdapterEditor |
createEditorDialog(AppContext appContext,
JDialog parent,
ToolAdapterOperatorDescriptor operatorDescriptor,
int newNameIndex) |
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.
|
closecenter, 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, showInformationDialog, showWarningDialogprotected 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 ToolAdapterOperatorDescriptor oldOperatorDescriptor
protected ToolAdapterOperatorDescriptor newOperatorDescriptor
protected boolean operatorIsNew
protected int newNameIndex
protected PropertyContainer propertyContainer
protected 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
public AbstractAdapterEditor(AppContext appContext, JDialog parent, ToolAdapterOperatorDescriptor operatorDescriptor, boolean operatorIsNew)
appContext - the application contextoperatorDescriptor - the descriptor of the operator to be editedoperatorIsNew - true if the operator was not previously registered (so it is a new operator) and false if the operator was registered and the editing operation is requestedpublic AbstractAdapterEditor(AppContext appContext, JDialog parent, ToolAdapterOperatorDescriptor operatorDescriptor, int newNameIndex)
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 operatorpublic static AbstractAdapterEditor createEditorDialog(AppContext appContext, JDialog parent, ToolAdapterOperatorDescriptor operatorDescriptor, boolean operatorIsNew)
public static AbstractAdapterEditor createEditorDialog(AppContext appContext, JDialog parent, ToolAdapterOperatorDescriptor operatorDescriptor, int newNameIndex)
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()
AbstractDialogverifyUserInput in class AbstractDialogtrue if and only if the validation was successful.protected void onOK()
AbstractDialogAbstractDialog.hide().
Clients should override this method to implement meaningful behaviour.onOK in class AbstractDialogpublic int show()
AbstractDialogsuper.show() at the end.show in class AbstractDialogprotected void onOther()
AbstractDialogAbstractDialog.hide().
Clients should override this method to implement meaningful behaviour.onOther in class AbstractDialogprotected JComponent createCheckboxComponent(String memberName, JComponent toogleComponentEnabled, Boolean value)
protected void addValidatedTextField(JPanel parent, TextFieldEditor textEditor, String labelText, String propertyName, String validatorRegex)
protected void addTextField(JPanel parent, TextFieldEditor textEditor, String labelText, String propertyName, boolean isRequired)
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–2015 European Space Agency (ESA). All rights reserved.