pl.edu.agh.cast.data.ui.importer.wizard
Class MainEntityPage

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.importer.wizard.MainEntityPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

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

Page of the template import wizard, which serves for main entities selection.

Author:
AGH CAST Team

Field Summary
protected  MainEntityComposite mainEntityComposite
          Main conposite of the page.
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
MainEntityPage(String pageName, String pageDescription)
          The default constructor.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
          
 void dispose()
          
 IEntity[] getSelectedEntities()
           
 boolean isComplete()
           
 void setData(SortedMap<IEntity,Integer> suggestedMainEntities)
          Sets the main entity page data.
 void setSelectedEntities(IEntity[] selectedEntities)
           
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, 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
 

Field Detail

mainEntityComposite

protected MainEntityComposite mainEntityComposite
Main conposite of the page.

Constructor Detail

MainEntityPage

public MainEntityPage(String pageName,
                      String pageDescription)
The default constructor.

Parameters:
pageName - name of main entity page
pageDescription - description of main entity page
Method Detail

isComplete

public boolean isComplete()

setData

public void setData(SortedMap<IEntity,Integer> suggestedMainEntities)
Sets the main entity page data.

Parameters:
suggestedMainEntities - the suggested main entities

createControl

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

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

dispose

public void dispose()

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

getSelectedEntities

public IEntity[] getSelectedEntities()

setSelectedEntities

public void setSelectedEntities(IEntity[] selectedEntities)


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