RSE
Release 1.0

org.eclipse.rse.files.ui.wizards
Class SystemFileNewConnectionWizardPage

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.AbstractSystemNewConnectionWizardPage
                  extended byorg.eclipse.rse.files.ui.wizards.SystemFileNewConnectionWizardPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, ISystemMessageLine, ISystemNewConnectionWizardPage, ISystemWizardPage, IWizardPage

public class SystemFileNewConnectionWizardPage
extends AbstractSystemNewConnectionWizardPage

A page that prompts for unique universal files information in the New Connection wizard. This page appears for remote Unix, Linux and Windows connections but not for iSeries or Local connections.


Field Summary
protected  boolean enablePortSelection
           
protected  SystemMessage errorMessage
           
protected  Label labelPortPrompt
           
protected  ISystemValidator portValidator
           
protected  Text textPort
           
 
Fields inherited from class org.eclipse.rse.ui.wizards.AbstractSystemNewConnectionWizardPage
parentFactory
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
SystemFileNewConnectionWizardPage(IWizard wizard, ISubSystemConfiguration parentFactory)
          Constructor
 
Method Summary
 Control createContents(Composite parent)
          Abstract method.
protected  Control getInitialFocusControl()
          Abstract method.
 int getPortNumber()
          Return the user-entered port number
protected  ISystemValidator getPortValidator()
          Get the port validator.
 boolean isInformationalOnly()
          Return true if we support port selection yet
 boolean isPageComplete()
          Return true if the page is complete, so to enable Finish.
protected  boolean isPortEditable()
          Return true if the port is editable for this subsystem
 boolean performFinish()
          This is called when the users presses Finish.
 void setEnablePortSelection(boolean flag)
           
protected  SystemMessage validatePortInput()
          Validate port value as it is typed
 
Methods inherited from class org.eclipse.rse.ui.wizards.AbstractSystemNewConnectionWizardPage
getMainPage, getMainPageForm, getNewConnectionWizard, getSubSystemConfiguration
 
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.jface.wizard.IWizardPage
canFlipToNextPage, getName, getNextPage, getPreviousPage, getWizard, setPreviousPage, setWizard
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
 
Methods inherited from interface org.eclipse.rse.ui.messages.ISystemMessageLine
getErrorMessage, getMessage
 

Field Detail

labelPortPrompt

protected Label labelPortPrompt

textPort

protected Text textPort

portValidator

protected ISystemValidator portValidator

errorMessage

protected SystemMessage errorMessage

enablePortSelection

protected boolean enablePortSelection
Constructor Detail

SystemFileNewConnectionWizardPage

public SystemFileNewConnectionWizardPage(IWizard wizard,
                                         ISubSystemConfiguration parentFactory)
Constructor

Method Detail

isInformationalOnly

public boolean isInformationalOnly()
Return true if we support port selection yet


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.

Overrides:
getInitialFocusControl in class AbstractSystemNewConnectionWizardPage
See Also:
AbstractSystemWizardPage.getInitialFocusControl()

setEnablePortSelection

public void setEnablePortSelection(boolean flag)

getPortValidator

protected ISystemValidator getPortValidator()
Get the port validator. By default returns new ValidatorPortInput


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 AbstractSystemNewConnectionWizardPage
See Also:
AbstractSystemWizardPage.createContents(Composite)

isPortEditable

protected boolean isPortEditable()
Return true if the port is editable for this subsystem


performFinish

public boolean performFinish()
Description copied from interface: ISystemNewConnectionWizardPage
This is called when the users presses Finish. All that should be done here is validation of the input, returning true if all is ok and the finish can proceed.

Specified by:
performFinish in interface ISystemNewConnectionWizardPage
Overrides:
performFinish in class AbstractSystemNewConnectionWizardPage
See Also:
ISystemWizardPage.performFinish()

getPortNumber

public int getPortNumber()
Return the user-entered port number


validatePortInput

protected SystemMessage validatePortInput()
Validate port value as it is typed


isPageComplete

public boolean isPageComplete()
Return true if the page is complete, so to enable Finish. Called by wizard framework.


RSE
Release 1.0

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