com.xyz.article.wizards
Class HolidayMainPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by com.xyz.article.wizards.HolidayMainPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage, org.eclipse.swt.widgets.Listener

public class HolidayMainPage
extends org.eclipse.jface.wizard.WizardPage
implements org.eclipse.swt.widgets.Listener

Class representing the first page of the wizard


Field Summary
(package private)  org.eclipse.swt.widgets.Button carButton
           
static java.lang.String copyright
           
(package private) static java.lang.String[] dates
           
(package private)  org.eclipse.core.runtime.IStatus destinationStatus
           
(package private)  org.eclipse.swt.widgets.Text fromText
           
(package private) static java.lang.String[] months
           
(package private)  org.eclipse.swt.widgets.Button planeButton
           
(package private)  org.eclipse.swt.widgets.Button priceButton
           
(package private)  org.eclipse.swt.widgets.Combo returnDate
           
(package private)  org.eclipse.swt.widgets.Combo returnMonth
           
(package private)  org.eclipse.swt.widgets.Combo returnYear
           
(package private)  org.eclipse.jface.viewers.IStructuredSelection selection
           
(package private) static int startingYear
           
(package private)  org.eclipse.core.runtime.IStatus timeStatus
           
(package private)  org.eclipse.swt.widgets.Text toText
           
(package private)  org.eclipse.swt.widgets.Combo travelDate
           
(package private)  org.eclipse.swt.widgets.Combo travelMonth
           
(package private)  org.eclipse.swt.widgets.Combo travelYear
           
(package private)  org.eclipse.ui.IWorkbench workbench
           
(package private) static java.lang.String[] years
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
HolidayMainPage(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
          Constructor for HolidayMainPage.
 
Method Summary
 boolean canFlipToNextPage()
           
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 org.eclipse.jface.wizard.IWizardPage getNextPage()
           
 void handleEvent(org.eclipse.swt.widgets.Event event)
           
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
getContainer, getDialogSettings, getImage, getName, 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
 

Field Detail

copyright

public static final java.lang.String copyright
See Also:
Constant Field Values

workbench

org.eclipse.ui.IWorkbench workbench

selection

org.eclipse.jface.viewers.IStructuredSelection selection

travelDate

org.eclipse.swt.widgets.Combo travelDate

travelMonth

org.eclipse.swt.widgets.Combo travelMonth

travelYear

org.eclipse.swt.widgets.Combo travelYear

returnDate

org.eclipse.swt.widgets.Combo returnDate

returnMonth

org.eclipse.swt.widgets.Combo returnMonth

returnYear

org.eclipse.swt.widgets.Combo returnYear

priceButton

org.eclipse.swt.widgets.Button priceButton

fromText

org.eclipse.swt.widgets.Text fromText

toText

org.eclipse.swt.widgets.Text toText

planeButton

org.eclipse.swt.widgets.Button planeButton

carButton

org.eclipse.swt.widgets.Button carButton

timeStatus

org.eclipse.core.runtime.IStatus timeStatus

destinationStatus

org.eclipse.core.runtime.IStatus destinationStatus

dates

static final java.lang.String[] dates

months

static final java.lang.String[] months

years

static final java.lang.String[] years

startingYear

static final int startingYear
Constructor Detail

HolidayMainPage

public HolidayMainPage(org.eclipse.ui.IWorkbench workbench,
                       org.eclipse.jface.viewers.IStructuredSelection selection)
Constructor for HolidayMainPage.

Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createControl in interface org.eclipse.jface.dialogs.IDialogPage
See Also:
IDialogPage#createControl(Composite)

handleEvent

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

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

canFlipToNextPage

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