|
org.eclipse.rse.ui.wizards
Class SystemNewProfileWizardMainPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.rse.ui.wizards.AbstractSystemWizardPage
org.eclipse.rse.ui.wizards.SystemNewProfileWizardMainPage
-
All Implemented Interfaces:
-
IDialogPage,
IMessageProvider,
IWizardPage,
ISystemMessageLine,
ISystemWizardPage
-
public class SystemNewProfileWizardMainPage
- extends
AbstractSystemWizardPage
- implements
ISystemMessageLine
Default main page of the "New Profile" wizard.
This page asks for the following information:
Methods inherited from class org.eclipse.rse.ui.wizards.
AbstractSystemWizardPage
|
addFillerLine,
addGrowableFillerLine,
addSeparatorLine,
applyMnemonics,
clearErrorMessage,
clearMessage,
createControl,
dispose,
getHelpContextId,
getInputObject,
getMessageLine,
getSystemErrorMessage,
setErrorMessage,
setErrorMessage,
setErrorMessage,
setFocus,
setHelp,
setInputObject,
setMessage,
setMessage,
setMessage,
setVisible
|
Methods inherited from class org.eclipse.jface.wizard.
WizardPage
|
canFlipToNextPage,
getContainer,
getDialogSettings,
getImage,
getName,
getNextPage,
getPreviousPage,
getShell,
getWizard,
isCurrentPage,
setDescription,
setImageDescriptor,
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
|
nameValidator
protected
ISystemValidator nameValidator
SystemNewProfileWizardMainPage
public SystemNewProfileWizardMainPage(
Wizard wizard)
- Constructor.
createContents
public
Control createContents(
Composite parent)
- CreateContents is the one method that must be overridden from the parent class.
In this method, we populate an SWT container with widgets and return the container
to the caller (JFace). This is used as the contents of this page.
-
-
Specified by:
-
createContents
in class
AbstractSystemWizardPage
-
-
See Also:
-
SystemWidgetHelpers
getInitialFocusControl
protected
Control getInitialFocusControl()
- Return the Control to be given initial focus.
Override from parent. Return control to be given initial focus.
-
-
Specified by:
-
getInitialFocusControl
in class
AbstractSystemWizardPage
-
validateNameInput
protected
SystemMessage validateNameInput()
- This hook method is called whenever the text changes in the input field.
The default implementation delegates the request to an
ISystemValidator object.
If the ISystemValidator reports an error the error message is displayed
in the Dialog's message line.
-
-
performFinish
public boolean performFinish()
- Completes processing of the wizard. If this
method returns true, the wizard will close;
otherwise, it will stay active.
This method is an override from the parent Wizard class.
-
-
Specified by:
-
performFinish
in interface
ISystemWizardPage
-
Specified by:
-
performFinish
in class
AbstractSystemWizardPage
-
-
Returns:
- whether the wizard finished successfully
getProfileName
public
String getProfileName()
- Return user-entered profile name.
Call this after finish ends successfully.
-
-
getMakeActive
public boolean getMakeActive()
- Return user-entered decision to make the new profile active.
Call this after finish ends successfully.
-
-
getLayoutData
public
Object getLayoutData()
-
-
setLayoutData
public void setLayoutData(
Object gridData)
-
-
isPageComplete
public boolean isPageComplete()
- Return true if the page is complete, so to enable Finish.
Called by wizard framework.
-
-
Specified by:
-
isPageComplete
in interface
IWizardPage
-
Overrides:
-
isPageComplete
in class
WizardPage
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|