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
ConstructorsModifierConstructorDescriptionprotected
AbstractDataBoundWizardPage
(String pageName) Constructor ofAbstractDataBoundWizardPage
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Convenience method, invoked after full UI creation and binding.protected void
bind
(org.eclipse.core.databinding.DataBindingContext databindingContext) Bind UI elements.protected boolean
browseDirectory
(org.eclipse.swt.widgets.Text text, String message) Browse directory and set the givenText
with the returned value.protected boolean
browseFile
(org.eclipse.swt.widgets.Combo combo, String message, String[] filterExtensions, String[] filterNames, int style) Browse file and set the givenCombo
with the returned value.protected boolean
browseFile
(org.eclipse.swt.widgets.Text text, String message, String[] filterExtensions) Browse file and set the givenText
with the returned value.protected boolean
browseFile
(org.eclipse.swt.widgets.Text text, String message, String[] filterExtensions, String[] filterNames) Browse file and set the givenText
with the returned value.protected boolean
browseFile
(org.eclipse.swt.widgets.Text text, String message, String[] filterExtensions, String[] filterNames, int style) Browse file and set the givenText
with the returned value.void
createControl
(org.eclipse.swt.widgets.Composite parent) void
dispose()
protected abstract org.eclipse.swt.widgets.Composite
doCreateControl
(org.eclipse.swt.widgets.Composite parent) Create page control and return it's composite.org.eclipse.core.databinding.DataBindingContext
Returns data binding context of this page.Returns help context id to bind help to.protected void
setValidationMessageProvider
(org.eclipse.jface.databinding.dialog.IValidationMessageProvider provider) Setsvalidation message provider
for 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, toString
Methods 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, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
Methods 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
null
if no help is needed
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.eclipse.jface.dialogs.IDialogPage
- Overrides:
dispose
in 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 provider
for 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 givenText
with 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
- theText
to get and set path, cannot benull
message
- the browse file dialog message, cannot benull
filterExtensions
- the file extensions which the dialog will use to filter the files ornull
if 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 givenText
with 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
- theText
to get and set path, cannot benull
message
- the browse file dialog message, cannot benull
filterExtensions
- the file extensions which the dialog will use to filter the files ornull
if not neededfilterNames
- the names that describe the filter extensions ornull
if 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 givenText
with 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
- theText
to get and set path, cannot benull
message
- the browse file dialog message, cannot benull
filterExtensions
- the file extensions which the dialog will use to filter the files ornull
if not neededfilterNames
- the names that describe the filter extensions ornull
if 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 givenCombo
with 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
- theCombo
to get and set path, cannot benull
message
- the browse file dialog message, cannot benull
filterExtensions
- the file extensions which the dialog will use to filter the files ornull
if not neededfilterNames
- the names that describe the filter extensions ornull
if not neededstyle
- SWT file dialog style- Returns:
- whether the text was set in a result of method execution
-
browseDirectory
Browse directory and set the givenText
with 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
- theText
to get and set path, cannot benull
message
- the browse directory dialog message, cannot benull
- Returns:
- whether the text was set in a result of method execution
-