public class ConfigDialog extends ModalDialog
ConfigDialog
class are modal dialogs composed of one or more, possibly nested
configuration pages of the type ConfigPage
. ConfigDialog
uses a tree view to let the user
switch between particular pages.ConfigPage
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 |
---|
ConfigDialog() |
ConfigDialog(Window owner,
String helpID) |
Modifier and Type | Method and Description |
---|---|
void |
addRootPage(ConfigPage page) |
void |
expandAllPages() |
PropertyMap |
getConfigParamValues(PropertyMap propertyMap) |
ConfigPage |
getCurrentPage() |
int |
getNumRootPages() |
ConfigPage |
getRootPageAt(int index) |
String |
getTitleBase() |
protected void |
onOK()
Called if the "OK" button has been clicked.
|
void |
removeRootPage(ConfigPage page) |
void |
removeRootPageAt(int index) |
void |
setConfigParamValues(PropertyMap propertyMap,
ParamExceptionHandler errorHandler) |
void |
setCurrentPage(ConfigPage currentPage) |
void |
setTitleBase(String titleBase) |
int |
show()
Shows the dialog.
|
protected boolean |
verifyUserInput()
Called in order to perform input validation.
|
close
center, collectButtons, getButton, getButtonID, getButtonMask, getContent, getHelpID, getJDialog, getParent, getQualifiedPropertyName, getTitle, hide, onApply, onCancel, onClose, onHelp, onNo, onOther, onReset, onYes, registerButton, setButtonID, setContent, setContent, setHelpID, setTitle, showErrorDialog, showInformationDialog, showWarningDialog
public PropertyMap getConfigParamValues(PropertyMap propertyMap)
public void setConfigParamValues(PropertyMap propertyMap, ParamExceptionHandler errorHandler)
public void expandAllPages()
public String getTitleBase()
public void setTitleBase(String titleBase)
public int getNumRootPages()
public ConfigPage getRootPageAt(int index)
public void addRootPage(ConfigPage page)
public void removeRootPage(ConfigPage page)
public void removeRootPageAt(int index)
public ConfigPage getCurrentPage()
public void setCurrentPage(ConfigPage currentPage)
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 boolean verifyUserInput()
AbstractDialog
verifyUserInput
in class AbstractDialog
true
if and only if the validation was successful.Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.