Class AbstractDataBoundWizardPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
com._1c.g5.v8.dt.platform.services.ui.AbstractDataBoundWizardPage
- All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage,org.eclipse.jface.dialogs.IMessageProvider,org.eclipse.jface.wizard.IWizardPage
- Direct Known Subclasses:
AbstractInfobaseCommandWizardPage,AbstractInfobaseWizardPage,AbstractPublicationWizardPage,InfobasePublicationWizardSeparatorsPage,InfobasePublicationWizardSettingsPage,MultiDeployConfigurationWizardPage,RuntimeInstallationWizardPage,WebServerWizardPage
public abstract class AbstractDataBoundWizardPage
extends org.eclipse.jface.wizard.WizardPage
Abstract implementation of
WizardPage with JFace data binding support.-
Field Summary
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDataBoundWizardPage(String pageName) Constructor ofAbstractDataBoundWizardPage. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidConvenience method, invoked after full UI creation and binding.protected voidbind(org.eclipse.core.databinding.DataBindingContext databindingContext) Bind UI elements.protected booleanbrowseDirectory(org.eclipse.swt.widgets.Text text, String message) Browse directory and set the givenTextwith the returned value.protected booleanbrowseFile(org.eclipse.swt.widgets.Combo combo, String message, String[] filterExtensions, String[] filterNames, int style) Browse file and set the givenCombowith the returned value.protected booleanbrowseFile(org.eclipse.swt.widgets.Text text, String message, String[] filterExtensions) Browse file and set the givenTextwith the returned value.protected booleanbrowseFile(org.eclipse.swt.widgets.Text text, String message, String[] filterExtensions, String[] filterNames) Browse file and set the givenTextwith the returned value.protected booleanbrowseFile(org.eclipse.swt.widgets.Text text, String message, String[] filterExtensions, String[] filterNames, int style) Browse file and set the givenTextwith the returned value.voidcreateControl(org.eclipse.swt.widgets.Composite parent) voiddispose()protected abstract org.eclipse.swt.widgets.CompositedoCreateControl(org.eclipse.swt.widgets.Composite parent) Create page control and return it's composite.org.eclipse.core.databinding.DataBindingContextReturns data binding context of this page.Returns help context id to bind help to.protected voidsetValidationMessageProvider(org.eclipse.jface.databinding.dialog.IValidationMessageProvider provider) Setsvalidation message providerfor the page.Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toStringMethods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisibleMethods inherited from interface org.eclipse.jface.wizard.IWizardPage
getMinimumPageSize
-
Constructor Details
-
AbstractDataBoundWizardPage
Constructor ofAbstractDataBoundWizardPage.- Parameters:
pageName- page name, cannot benull
-
-
Method Details
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) -
getHelpContextId
Returns help context id to bind help to.- Returns:
- help context id or
nullif no help is needed
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
disposein classorg.eclipse.jface.dialogs.DialogPage
-
getDataBindingContext
public org.eclipse.core.databinding.DataBindingContext getDataBindingContext()Returns data binding context of this page.- Returns:
- data binding context of this page, never
null
-
doCreateControl
protected abstract org.eclipse.swt.widgets.Composite doCreateControl(org.eclipse.swt.widgets.Composite parent) Create page control and return it's composite. Subclass must add UI elements in this method.- Parameters:
parent- parent composite, cannot benull- Returns:
- return child composite, to set control to, never
null
-
afterCreateControl
protected void afterCreateControl()Convenience method, invoked after full UI creation and binding. Default implementation does nothing. Subclass can override. -
bind
protected void bind(org.eclipse.core.databinding.DataBindingContext databindingContext) Bind UI elements. Default implementation does nothing.- Parameters:
databindingContext- databinding context to bind to, cannot benull
-
setValidationMessageProvider
protected void setValidationMessageProvider(org.eclipse.jface.databinding.dialog.IValidationMessageProvider provider) Setsvalidation message providerfor the page. It is used for providing the message text and message type to display on the dialog page.- Parameters:
provider- the validation message provider, cannot benull- See Also:
-
DialogPageSupport.setValidationMessageProvider(IValidationMessageProvider)
-
browseFile
protected boolean browseFile(org.eclipse.swt.widgets.Text text, String message, String[] filterExtensions) Browse file and set the givenTextwith the returned value. Initial path value will be equals toText.getText().
Returns whether the text was set in a result of method execution.This method is equals to:
browseFile(text, message, filterExtensions, null).- Parameters:
text- theTextto get and set path, cannot benullmessage- the browse file dialog message, cannot benullfilterExtensions- the file extensions which the dialog will use to filter the files ornullif not needed- Returns:
- whether the text was set in a result of method execution
-
browseFile
protected boolean browseFile(org.eclipse.swt.widgets.Text text, String message, String[] filterExtensions, String[] filterNames) Browse file and set the givenTextwith the returned value. Initial path value will be equals toText.getText().
Returns whether the text was set in a result of method execution.This method is equals to:
browseFile(text, message, filterExtensions, filterNames, SWT.SAVE).- Parameters:
text- theTextto get and set path, cannot benullmessage- the browse file dialog message, cannot benullfilterExtensions- the file extensions which the dialog will use to filter the files ornullif not neededfilterNames- the names that describe the filter extensions ornullif not needed- Returns:
- whether the text was set in a result of method execution
-
browseFile
protected boolean browseFile(org.eclipse.swt.widgets.Text text, String message, String[] filterExtensions, String[] filterNames, int style) Browse file and set the givenTextwith the returned value. Initial path value will be equals toText.getText().
Returns whether the text was set in a result of method execution.- Parameters:
text- theTextto get and set path, cannot benullmessage- the browse file dialog message, cannot benullfilterExtensions- the file extensions which the dialog will use to filter the files ornullif not neededfilterNames- the names that describe the filter extensions ornullif not neededstyle- SWT file dialog style- Returns:
- whether the text was set in a result of method execution
-
browseFile
protected boolean browseFile(org.eclipse.swt.widgets.Combo combo, String message, String[] filterExtensions, String[] filterNames, int style) Browse file and set the givenCombowith the returned value. Initial path value will be equals toCombo.getText().
Returns whether the text was set in a result of method execution.- Parameters:
combo- theComboto get and set path, cannot benullmessage- the browse file dialog message, cannot benullfilterExtensions- the file extensions which the dialog will use to filter the files ornullif not neededfilterNames- the names that describe the filter extensions ornullif not neededstyle- SWT file dialog style- Returns:
- whether the text was set in a result of method execution
-
browseDirectory
Browse directory and set the givenTextwith the returned value. Initial path value will be equals toText.getText()or its parent directory.Returns whether the text was set in a result of method execution.
- Parameters:
text- theTextto get and set path, cannot benullmessage- the browse directory dialog message, cannot benull- Returns:
- whether the text was set in a result of method execution
-