org.eclipse.mylar.internal.monitor.usage.ui.wizards
Class GetNewUserIdPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.mylar.internal.monitor.usage.ui.wizards.GetNewUserIdPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class GetNewUserIdPage
extends org.eclipse.jface.wizard.WizardPage

Page to get a mylar user study id for the user.

Author:
Mik Kersten, Shawn Minto

Field Summary
private  boolean anon
           
private  java.lang.String companyFunction
           
private  java.lang.String companySize
           
private  org.eclipse.swt.widgets.Button contactAgreement
           
private  boolean contactEmail
           
private  java.lang.String email
           
private  org.eclipse.swt.widgets.Text emailAddress
           
private  boolean extendedMonitor
           
private  java.lang.String first
           
private  org.eclipse.swt.widgets.Text firstName
           
private  org.eclipse.swt.widgets.Button getExistingUid
           
private  org.eclipse.swt.widgets.Button getNewUid
           
private  boolean hasValidated
           
private  java.lang.String jobFunction
           
private  java.lang.String last
           
private  org.eclipse.swt.widgets.Text lastName
           
private  boolean performUpload
           
private static java.lang.String SELECT_BELOW
           
private  UsageSubmissionWizard wizard
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
GetNewUserIdPage(UsageSubmissionWizard wizard, boolean performUpload)
           
 
Method Summary
private  void createAnonymousParticipationButtons(org.eclipse.swt.widgets.Composite parent)
           
private  void createBrowserSection(org.eclipse.swt.widgets.Composite parent)
           
private  void createContactSection(org.eclipse.swt.widgets.Composite parent)
           
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
private  void createInstructionSection(org.eclipse.swt.widgets.Composite parent)
           
private  void createJobDetailSection(org.eclipse.swt.widgets.Composite parent)
           
private  void createNamesSection(org.eclipse.swt.widgets.Composite parent)
           
private  void createUserIdButtons(org.eclipse.swt.widgets.Composite parent)
           
 java.lang.String getEmailAddress()
           
 java.lang.String getFirstName()
           
 java.lang.String getLastName()
           
 org.eclipse.jface.wizard.IWizardPage getNextPage()
           
 boolean hasAllFields(boolean existing)
           
 boolean isAnonymous()
           
 boolean isPageComplete()
           
private  void updateEnablement()
           
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getPreviousPage, getShell, getWizard, isCurrentPage, 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
 

Field Detail

SELECT_BELOW

private static final java.lang.String SELECT_BELOW
See Also:
Constant Field Values

firstName

private org.eclipse.swt.widgets.Text firstName

lastName

private org.eclipse.swt.widgets.Text lastName

emailAddress

private org.eclipse.swt.widgets.Text emailAddress

contactAgreement

private org.eclipse.swt.widgets.Button contactAgreement

getNewUid

private org.eclipse.swt.widgets.Button getNewUid

getExistingUid

private org.eclipse.swt.widgets.Button getExistingUid

first

private java.lang.String first

last

private java.lang.String last

email

private java.lang.String email

contactEmail

private boolean contactEmail

anon

private boolean anon

hasValidated

private boolean hasValidated

jobFunction

private java.lang.String jobFunction

companySize

private java.lang.String companySize

companyFunction

private java.lang.String companyFunction

wizard

private UsageSubmissionWizard wizard

performUpload

private boolean performUpload

extendedMonitor

private boolean extendedMonitor
Constructor Detail

GetNewUserIdPage

public GetNewUserIdPage(UsageSubmissionWizard wizard,
                        boolean performUpload)
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
See Also:
IDialogPage.createControl(org.eclipse.swt.widgets.Composite)

createBrowserSection

private void createBrowserSection(org.eclipse.swt.widgets.Composite parent)

createNamesSection

private void createNamesSection(org.eclipse.swt.widgets.Composite parent)

createJobDetailSection

private void createJobDetailSection(org.eclipse.swt.widgets.Composite parent)

createInstructionSection

private void createInstructionSection(org.eclipse.swt.widgets.Composite parent)

createContactSection

private void createContactSection(org.eclipse.swt.widgets.Composite parent)

createUserIdButtons

private void createUserIdButtons(org.eclipse.swt.widgets.Composite parent)

createAnonymousParticipationButtons

private void createAnonymousParticipationButtons(org.eclipse.swt.widgets.Composite parent)

updateEnablement

private void updateEnablement()

hasAllFields

public boolean hasAllFields(boolean existing)

isPageComplete

public boolean isPageComplete()
Specified by:
isPageComplete in interface org.eclipse.jface.wizard.IWizardPage
Overrides:
isPageComplete in class org.eclipse.jface.wizard.WizardPage

getNextPage

public org.eclipse.jface.wizard.IWizardPage getNextPage()
Specified by:
getNextPage in interface org.eclipse.jface.wizard.IWizardPage
Overrides:
getNextPage in class org.eclipse.jface.wizard.WizardPage

isAnonymous

public boolean isAnonymous()

getEmailAddress

public java.lang.String getEmailAddress()

getFirstName

public java.lang.String getFirstName()

getLastName

public java.lang.String getLastName()