pl.edu.agh.cast.importer.wizard.strategy
Interface IImportWizardStrategy

All Known Implementing Classes:
AbstractStepByStepImportStrategy, ApplyTemplateWizardStrategy, CreateTemplateWizardStrategy, UseTemplateWizardStrategy, WithoutTemplateWizardStrategy

public interface IImportWizardStrategy

Interface used for defining page flow strategy. The main method is getNextPage(AbstractImportWizardPage).

Author:
AGH CAST Team

Method Summary
 void addPages(org.eclipse.jface.wizard.Wizard wizard)
          Creates pages needed for this strategy and adds created pages to wizard.
 boolean canFinishWizard()
          Checks whether the wizard can finish the import process.
 AbstractImportWizardPage getNextPage(AbstractImportWizardPage current)
          Calculates which wizard page should be next, and returns reference to next page.
 boolean performFinish()
          Perform any special finish processing for this wizard strategy.
 

Method Detail

getNextPage

AbstractImportWizardPage getNextPage(AbstractImportWizardPage current)
Calculates which wizard page should be next, and returns reference to next page.

Parameters:
current - current page
Returns:
next page

addPages

void addPages(org.eclipse.jface.wizard.Wizard wizard)
Creates pages needed for this strategy and adds created pages to wizard.

Parameters:
wizard - the wizard

canFinishWizard

boolean canFinishWizard()
Checks whether the wizard can finish the import process.

Returns:
true if the wizard could be finished, and false otherwise

performFinish

boolean performFinish()
Perform any special finish processing for this wizard strategy.

Returns:
true if finish code execution was successful


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