public abstract class AbstractModalDialog extends AbstractDialog implements IMessageDialog
Modifier | Constructor and Description |
---|---|
protected |
AbstractModalDialog(Window parent,
String title,
boolean isModal,
String helpID) |
Modifier and Type | Method and Description |
---|---|
protected void |
addComponentToAllwaysEnabledList(JComponent component) |
protected abstract JPanel |
buildButtonsPanel(ActionListener cancelActionListener) |
protected JPanel |
buildButtonsPanel(String finishButtonText,
ActionListener finishActionListener,
String cancelButtonText,
ActionListener cancelActionListener) |
protected abstract JPanel |
buildContentPanel(int gapBetweenColumns,
int gapBetweenRows) |
protected Insets |
buildDefaultListItemMargins() |
protected Insets |
buildDefaultTextFieldMargins() |
protected Border |
buildDialogBorder(int margins) |
protected JButton |
buildDialogButton(String buttonText) |
void |
close()
This method is called, when the user clicks the close button of the dialog's top window bar.
|
protected static void |
computePanelFirstColumn(JPanel contentPanel) |
protected int |
getDefaultContentPanelMargins() |
protected int |
getDefaultGapBetweenColumns() |
protected int |
getDefaultGapBetweenContentAndButtonPanels() |
protected int |
getDefaultGapBetweenRows() |
protected ILoadingIndicator |
getLoadingIndicator() |
protected int |
getNewCurrentThreadId() |
protected void |
onAboutToShow() |
protected void |
registerEscapeKey(ActionListener cancelActionListener) |
protected void |
setEnabledComponentsWhileLoading(boolean enabled) |
int |
show()
Shows the dialog.
|
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, showErrorDialog, showErrorDialog, showErrorDialog, showInformationDialog, showInformationDialog, showInformationDialog, showWarningDialog, showWarningDialog, showWarningDialog, verifyUserInput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
showErrorDialog, showErrorDialog, showInformationDialog, showInformationDialog
protected abstract JPanel buildContentPanel(int gapBetweenColumns, int gapBetweenRows)
protected abstract JPanel buildButtonsPanel(ActionListener cancelActionListener)
public void close()
AbstractDialog
close
in interface IMessageDialog
close
in class AbstractDialog
public final int show()
AbstractDialog
super.show()
at the end.show
in class AbstractDialog
protected int getDefaultGapBetweenContentAndButtonPanels()
protected int getDefaultContentPanelMargins()
protected int getDefaultGapBetweenRows()
protected int getDefaultGapBetweenColumns()
protected final Insets buildDefaultTextFieldMargins()
protected final Insets buildDefaultListItemMargins()
protected final void addComponentToAllwaysEnabledList(JComponent component)
protected final JPanel buildButtonsPanel(String finishButtonText, ActionListener finishActionListener, String cancelButtonText, ActionListener cancelActionListener)
protected void setEnabledComponentsWhileLoading(boolean enabled)
protected final ILoadingIndicator getLoadingIndicator()
protected final int getNewCurrentThreadId()
protected void onAboutToShow()
protected Border buildDialogBorder(int margins)
protected void registerEscapeKey(ActionListener cancelActionListener)
protected static void computePanelFirstColumn(JPanel contentPanel)
Copyright © 2014–2019 European Space Agency (ESA). All rights reserved.