RSE
Release 1.0

org.eclipse.rse.ui.wizards
Class RSENewConnectionWizardMainPage

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.RSENewConnectionWizardMainPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, ISystemMessageLine, ISystemWizardPage, IWizardPage, Listener

public class RSENewConnectionWizardMainPage
extends AbstractSystemWizardPage
implements Listener

The New Connection Wizard main page that allows selection of system type.


Field Summary
protected  Text descriptionSystemType
           
protected  IWizardPage nextPage
           
protected  String parentHelpId
           
protected  IRSESystemType[] restrictedSystemTypes
           
protected  List textSystemType
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
RSENewConnectionWizardMainPage(IRSENewConnectionWizard wizard, String title, String description)
          Constructor.
 
Method Summary
 Control createContents(Composite parent)
          Abstract method.
protected  Control getInitialFocusControl()
          Abstract method.
 IWizardPage getNextPage()
           
 void handleEvent(Event event)
           
 boolean performFinish()
          Abstract method.
 void restrictToSystemTypes(IRSESystemType[] systemTypes)
           
 
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, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, 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
getErrorMessage, getMessage
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
 

Field Detail

parentHelpId

protected String parentHelpId

textSystemType

protected List textSystemType

descriptionSystemType

protected Text descriptionSystemType

nextPage

protected IWizardPage nextPage

restrictedSystemTypes

protected IRSESystemType[] restrictedSystemTypes
Constructor Detail

RSENewConnectionWizardMainPage

public RSENewConnectionWizardMainPage(IRSENewConnectionWizard wizard,
                                      String title,
                                      String description)
Constructor.

Parameters:
wizard - the wizard.
title - the title of the wizard page.
description - the description of the wizard page.
Method Detail

createContents

public Control createContents(Composite parent)
Description copied from class: AbstractSystemWizardPage
Abstract method.
Create the page contents here.

You may find it useful to use the static methods in SystemWidgetHelpers. If you do keystroke validation, you should call AbstractSystemWizardPage.setErrorMessage(SystemMessage) if you detect errors, and also WizardPage.setPageComplete(boolean) to affect the enablement of the next and finish buttons.

Specified by:
createContents in class AbstractSystemWizardPage
See Also:
AbstractSystemWizardPage.createContents(org.eclipse.swt.widgets.Composite)

restrictToSystemTypes

public void restrictToSystemTypes(IRSESystemType[] systemTypes)

getInitialFocusControl

protected Control getInitialFocusControl()
Description copied from class: AbstractSystemWizardPage
Abstract method.
Return the Control to be given initial focus.

Child classes must override this, but can return null.

Specified by:
getInitialFocusControl in class AbstractSystemWizardPage
See Also:
AbstractSystemWizardPage.getInitialFocusControl()

performFinish

public boolean performFinish()
Description copied from class: AbstractSystemWizardPage
Abstract method.
Perform error checking of the page contents, returning true only if there are no errors.

Called by the main wizard when the user presses Finish. The operation will be cancelled if this method returns false for any page.

Specified by:
performFinish in interface ISystemWizardPage
Specified by:
performFinish in class AbstractSystemWizardPage
See Also:
AbstractSystemWizardPage.performFinish()

getNextPage

public IWizardPage getNextPage()
Specified by:
getNextPage in interface IWizardPage
See Also:
WizardPage.getNextPage()

handleEvent

public void handleEvent(Event event)
Specified by:
handleEvent in interface Listener
See Also:
Listener.handleEvent(org.eclipse.swt.widgets.Event)

RSE
Release 1.0

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