org.eclipse.ecf.ui.wizards
Class AbstractConnectWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.ecf.ui.wizards.AbstractConnectWizardPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public abstract class AbstractConnectWizardPage
extends org.eclipse.jface.wizard.WizardPage

A abstract WizardPage subclass that can be customized to request arbitrary login information from the user for connecting to an IContainer.


Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
protected AbstractConnectWizardPage(java.lang.String pageName)
           
protected AbstractConnectWizardPage(java.lang.String pageName, java.net.URI uri)
           
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 java.lang.String getConnectID()
           
protected  java.lang.String getDefaultConnectText()
           
abstract  java.lang.String getExampleID()
           
 java.lang.String getPassword()
           
protected  java.lang.String getProviderDescription()
           
protected  java.lang.String getProviderTitle()
           
 java.lang.String getUsername()
           
abstract  boolean shouldRequestPassword()
          Checks
abstract  boolean shouldRequestUsername()
          Returns whether the created IContainer needs a username for authentication purposes upon connecting.
 void updateStatus(java.lang.String message)
           
 
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, dispose, 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
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Constructor Detail

AbstractConnectWizardPage

protected AbstractConnectWizardPage(java.lang.String pageName)

AbstractConnectWizardPage

protected AbstractConnectWizardPage(java.lang.String pageName,
                                    java.net.URI uri)
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)

shouldRequestUsername

public abstract boolean shouldRequestUsername()
Returns whether the created IContainer needs a username for authentication purposes upon connecting. A text control will be displayed on the wizard dialog to allow the user to input a username.

Returns:
true if a username is required to connect to the selected IContainer, false otherwise

shouldRequestPassword

public abstract boolean shouldRequestPassword()
Checks

Returns:
boolean true if page should request password

getExampleID

public abstract java.lang.String getExampleID()

getDefaultConnectText

protected java.lang.String getDefaultConnectText()

getProviderTitle

protected java.lang.String getProviderTitle()

getProviderDescription

protected java.lang.String getProviderDescription()

getConnectID

public java.lang.String getConnectID()

getUsername

public java.lang.String getUsername()

getPassword

public java.lang.String getPassword()

updateStatus

public void updateStatus(java.lang.String message)