| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
pl.edu.agh.cast.data.ui.template.MappingWizardPage
public class MappingWizardPage
New template wizard: page for preview and mapping data to domain model.
| Field Summary | 
|---|
| Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider | 
|---|
| ERROR, INFORMATION, NONE, WARNING | 
| Constructor Summary | |
|---|---|
| MappingWizardPage(String pageName,
                  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(ModelColumn[] cols,
            TabularData data)Creates a table with specified column names and indication whether they are required or not, and calls the table creator to fill the table with the specified data. | 
|  Map<Integer,Integer> | getMappings()Returns the mapping between columns mapped by user and input column indices. | 
|  org.eclipse.jface.wizard.IWizardPage | getNextPage() | 
|  boolean | isPageComplete() | 
|  void | setSelected(int dataColumnIndex,
            int selectedModelColumn)Selects event for prepared combobox. | 
| 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 | 
|---|
public MappingWizardPage(String pageName,
                         String pageDescription)
pageName - name of mapping pagepageDescription - description of mapping page| Method Detail | 
|---|
public void createControl(org.eclipse.swt.widgets.Composite parent)
IDialogPage.createControl(org.eclipse.swt.widgets.Composite)
public void createTable(ModelColumn[] cols,
                        TabularData data)
cols - the model columnsdata - the data to be inserted into the table
public void setSelected(int dataColumnIndex,
                        int selectedModelColumn)
dataColumnIndex - the index of the data columnselectedModelColumn - the selected model columnpublic Map<Integer,Integer> getMappings()
public boolean isPageComplete()
isPageComplete in interface org.eclipse.jface.wizard.IWizardPageisPageComplete in class org.eclipse.jface.wizard.WizardPageWizardPage.isPageComplete()public org.eclipse.jface.wizard.IWizardPage getNextPage()
getNextPage in interface org.eclipse.jface.wizard.IWizardPagegetNextPage in class org.eclipse.jface.wizard.WizardPageWizardPage.getNextPage()| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||