Package org.esa.snap.ui
Class ModelessDialog
java.lang.Object
org.esa.snap.ui.AbstractDialog
org.esa.snap.ui.ModelessDialog
- Direct Known Subclasses:
org.esa.snap.core.gpf.ui.SingleTargetProductDialog
,ToolAdaptersManagementDialog
A helper class used to implement standard modeless dialogs.
The dialog can be used directly (which doesn't make much sense) or the class is used as base class in
order to override the methods AbstractDialog.onApply()
, AbstractDialog.onClose()
etc. which are called if a user
presses the corresponding button.
- Since:
- BEAM 4.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionModelessDialog
(Window parent, String title, int buttonMask, Object[] otherButtons, String helpID) ModelessDialog
(Window parent, String title, int buttonMask, String helpID) ModelessDialog
(Window parent, String title, Object content, int buttonMask, Object[] otherButtons, String helpID) ModelessDialog
(Window parent, String title, Object content, int buttonMask, String helpID) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This method is called, when the user clicks the "close" button of the bottom button row or the "close" button of the top bar of the dialog window.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, onOK, onOther, onReset, onYes, registerButton, setButtonID, setContent, setContent, setHelpID, setTitle, show, showErrorDialog, showErrorDialog, showErrorDialog, showInformationDialog, showInformationDialog, showInformationDialog, showWarningDialog, showWarningDialog, showWarningDialog, verifyUserInput
-
Field Details
-
ID_APPLY_CLOSE
public static final int ID_APPLY_CLOSE- See Also:
-
ID_APPLY_CLOSE_HELP
public static final int ID_APPLY_CLOSE_HELP- See Also:
-
-
Constructor Details
-
ModelessDialog
-
ModelessDialog
-
ModelessDialog
-
ModelessDialog
-
-
Method Details
-
close
public void close()This method is called, when the user clicks the "close" button of the bottom button row or the "close" button of the top bar of the dialog window. It can also be called directly. The method sets the button identifier toAbstractDialog.ID_CLOSE
and callsAbstractDialog.onClose()
.- Specified by:
close
in classAbstractDialog
-