org.ow2.clif.analyze.lib.egui.wizards
Class CLIFReportTemplateChoicePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.ow2.clif.analyze.lib.egui.wizards.CLIFReportTemplateChoicePage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

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

Supplies template selection page of new report wizard.

Author:
Gr�gory CALONNIER, Jordan BRUNIER

Nested Class Summary
 class CLIFReportTemplateChoicePage.Template
           
 class CLIFReportTemplateChoicePage.TemplateType
           
 
Field Summary
protected  java.util.Map imageMap
           
protected  CLIFReportTemplateChoicePage.Template[] preDefinedTemplates
           
protected  int selectedIndex
           
protected  java.util.List templates
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
CLIFReportTemplateChoicePage(java.lang.String pageName)
          Constructor.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
          Create graphical interface.
 void dispose()
           
 CLIFReportTemplateChoicePage.Template getBlankTemplate()
           
 boolean getShowCheatSheet()
           
 CLIFReportTemplateChoicePage.Template getTemplate()
           
 boolean isCurrentPage()
          Check if this page is the current dispaly page in the wizard.
 void setVisible(boolean visible)
           
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, 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
 
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
 

Field Detail

preDefinedTemplates

protected CLIFReportTemplateChoicePage.Template[] preDefinedTemplates

templates

protected java.util.List templates

selectedIndex

protected int selectedIndex

imageMap

protected java.util.Map imageMap
Constructor Detail

CLIFReportTemplateChoicePage

public CLIFReportTemplateChoicePage(java.lang.String pageName)
Constructor.

Parameters:
pageName -
Method Detail

createControl

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

Parameters:
parent - the container

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
dispose in class org.eclipse.jface.dialogs.DialogPage

setVisible

public void setVisible(boolean visible)
Specified by:
setVisible in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
setVisible in class org.eclipse.jface.dialogs.DialogPage

isCurrentPage

public boolean isCurrentPage()
Check if this page is the current dispaly page in the wizard.

Overrides:
isCurrentPage in class org.eclipse.jface.wizard.WizardPage
Returns:
true if this page is the current dispaly page in the wizard else false

getTemplate

public CLIFReportTemplateChoicePage.Template getTemplate()
Returns:
Returns the templates of selected item.

getBlankTemplate

public CLIFReportTemplateChoicePage.Template getBlankTemplate()
Returns:
Returns the blank report template.

getShowCheatSheet

public boolean getShowCheatSheet()
Returns:
true if show CheatSheets is checked.