pl.edu.agh.cast.data.ui.template
Class MappingWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by pl.edu.agh.cast.data.ui.template.MappingWizardPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

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

New template wizard: page for preview and mapping data to domain model.

Author:
Tomasz Bachanek, Jakub Jarzabek

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
MappingWizardPage(java.lang.String pageName, java.lang.String pageDescription)
          Creates new mapping page basing on columns names and tabular data.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 void createTable(pl.edu.agh.cast.model.ModelColumn[] columns, pl.edu.agh.cast.rawdata.TabularData data)
           
 java.util.Map<java.lang.Integer,java.lang.Integer> getMappings()
           
 org.eclipse.jface.wizard.IWizardPage getNextPage()
           
 boolean isPageComplete()
           
 void setSelected(int dataColumnIndex, int selectedModelColumn)
          Selects event for prepared combo-box.
 
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
 

Constructor Detail

MappingWizardPage

public MappingWizardPage(java.lang.String pageName,
                         java.lang.String pageDescription)
Creates new mapping page basing on columns names and tabular data.

Method Detail

createControl

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

isPageComplete

public boolean isPageComplete()
Specified by:
isPageComplete in interface org.eclipse.jface.wizard.IWizardPage
Overrides:
isPageComplete in class org.eclipse.jface.wizard.WizardPage
Returns:
True if all required model columns are chosen

createTable

public void createTable(pl.edu.agh.cast.model.ModelColumn[] columns,
                        pl.edu.agh.cast.rawdata.TabularData data)

setSelected

public void setSelected(int dataColumnIndex,
                        int selectedModelColumn)
Selects event for prepared combo-box.


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

getMappings

public java.util.Map<java.lang.Integer,java.lang.Integer> getMappings()
Returns:
mapping between columns mapped by user and input columns indices. Column indices are numbered from 0.


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.