pl.edu.agh.cast.importer.wizard.page
Class InitImportPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by pl.edu.agh.cast.importer.wizard.page.AbstractImportWizardPage
              extended by pl.edu.agh.cast.importer.wizard.page.InitImportPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class InitImportPage
extends AbstractImportWizardPage

Page of the import wizard, which serves for selection of data to import, as well as selection of whether an existing template is to be used or applied or neither.

Author:
AGH CAST Team

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
InitImportPage()
          The default constructor.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
          
 org.eclipse.jface.wizard.IWizardPage getNextPage()
          
 IImportWizardStrategy getSelectedImportStrategy()
          Returns selected import strategy.
 ITabularData<DataRow> getTemplateConversionPreview()
          Creates and returns conversion preview.
protected  boolean isComplete()
           
 void notifyFilePathChange(String filePath)
          Method called by the InitImportPageComposite when a filePath has changed.
 void notifyTemplateSelection(IImportTemplate selectedTemplate)
          Method called by the InitImportPageComposite when a template is selected.
 void notifyWizardStrategySelection()
          Method called by the InitImportPageComposite when a wizard strategy has changed.
 
Methods inherited from class pl.edu.agh.cast.importer.wizard.page.AbstractImportWizardPage
canFlipToNextPage, dispose, getImportProcess, getImportWizard, initPage, refreshImportData, widgetModified
 
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, 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
getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Constructor Detail

InitImportPage

public InitImportPage()
The default constructor.

Method Detail

createControl

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

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

isComplete

protected boolean isComplete()
Specified by:
isComplete in class AbstractImportWizardPage

getNextPage

public org.eclipse.jface.wizard.IWizardPage getNextPage()

Specified by:
getNextPage in interface org.eclipse.jface.wizard.IWizardPage
Overrides:
getNextPage in class AbstractImportWizardPage
See Also:
AbstractImportWizardPage.getNextPage()

getSelectedImportStrategy

public IImportWizardStrategy getSelectedImportStrategy()
Returns selected import strategy.

Returns:
selected strategy

notifyTemplateSelection

public void notifyTemplateSelection(IImportTemplate selectedTemplate)
Method called by the InitImportPageComposite when a template is selected.

Parameters:
selectedTemplate - the selected template

notifyFilePathChange

public void notifyFilePathChange(String filePath)
Method called by the InitImportPageComposite when a filePath has changed.

Parameters:
filePath - new file path value

notifyWizardStrategySelection

public void notifyWizardStrategySelection()
Method called by the InitImportPageComposite when a wizard strategy has changed.


getTemplateConversionPreview

public ITabularData<DataRow> getTemplateConversionPreview()
Creates and returns conversion preview.

Returns:
conversion preview


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.