RSE
Release 1.0

org.eclipse.rse.ui.wizards
Class SystemNewConnectionWizardRenameProfilePage

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.wizard.WizardPage
          extended byorg.eclipse.rse.ui.wizards.AbstractSystemWizardPage
              extended byorg.eclipse.rse.ui.wizards.SystemNewConnectionWizardRenameProfilePage
All Implemented Interfaces:
IDialogPage, IMessageProvider, ISystemMessageLine, ISystemWizardPage, IWizardPage

public class SystemNewConnectionWizardRenameProfilePage
extends AbstractSystemWizardPage
implements ISystemMessageLine

First page of the New Connection wizard when creating the very first connection.

This page asks for a unique personal name for the private profile.


Field Summary
protected  SystemProfileForm form
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
SystemNewConnectionWizardRenameProfilePage(Wizard wizard)
          Constructor.
 
Method Summary
 Control createContents(Composite parent)
          CreateContents is the one method that must be overridden from the parent class.
protected  SystemProfileForm getForm()
          Overrride this if you want to supply your own form.
protected  Control getInitialFocusControl()
          Return the Control to be given initial focus.
 Object getLayoutData()
           
protected  SystemNewConnectionWizard getOurWizard()
          Return our hosting wizard
 String getProfileName()
          Return name of profile to contain new connection.
 boolean isPageComplete()
          Return true if the page is complete, so to enable Finish.
 boolean performFinish()
          Completes processing of the wizard.
 void setLayoutData(Object gridData)
           
 
Methods inherited from class org.eclipse.rse.ui.wizards.AbstractSystemWizardPage
addFillerLine, addGrowableFillerLine, addSeparatorLine, applyMnemonics, clearErrorMessage, clearMessage, createControl, getHelpContextId, getInputObject, getMessageLine, getSystemErrorMessage, setBusyCursor, setErrorMessage, setErrorMessage, setErrorMessage, setFocus, setHelp, setHelp, setInputObject, setMessage, setMessage, setVisible
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, setDescription, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.rse.ui.messages.ISystemMessageLine
clearErrorMessage, clearMessage, getErrorMessage, getMessage, getSystemErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setMessage, setMessage
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
 

Field Detail

form

protected SystemProfileForm form
Constructor Detail

SystemNewConnectionWizardRenameProfilePage

public SystemNewConnectionWizardRenameProfilePage(Wizard wizard)
Constructor.

Method Detail

getOurWizard

protected SystemNewConnectionWizard getOurWizard()
Return our hosting wizard


getForm

protected SystemProfileForm getForm()
Overrride this if you want to supply your own form. This may be called multiple times so please only instantatiate if the form instance variable is null, and then return the form instance variable.

See Also:
SystemProfileForm

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

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 name of profile to contain new connection. 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

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.