|
||||||||||
| 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.importer.wizard.ImportPage
public class ImportPage
| Field Summary | |
|---|---|
protected FileRawDataLogger |
_importLogger
|
protected ImportPageComposite |
_importPageComposite
|
| Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
|---|
ERROR, INFORMATION, NONE, WARNING |
| Constructor Summary | |
|---|---|
ImportPage(java.lang.String pageName)
|
|
| Method Summary | |
|---|---|
void |
addTemplate(Template template)
|
boolean |
canFlipToNextPage()
|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
|
void |
dispose()
|
java.lang.String |
getFilePath()
|
org.eclipse.jface.wizard.IWizardPage |
getNextPage()
|
org.eclipse.core.resources.IProject |
getProject()
|
java.lang.String |
getProjectName()
|
Template |
getTemplate()
|
TemplateGroup[] |
getTemplateGroups(boolean reload)
|
boolean |
isComplete()
Indicates if the page is completed which means all the fields are filled in correctly. |
boolean |
isCurrentWizardPage()
Method is a delegate of a protected method WizardPage.isCurrentPage. |
pl.edu.agh.cast.rawdata.TabularData |
loadPreview(java.lang.String filePath,
Template template)
|
void |
notifyDataChanged()
|
void |
setImportLogger(FileRawDataLogger logger)
|
void |
setImportPageComposite(ImportPageComposite importPageComposite)
|
void |
validateImporterType()
|
boolean |
validateImportFile()
Validates import file, sets appropriate wizard status |
void |
validateImportPage()
Validates project name, file path and if template is selected. |
void |
validateProjectName()
Validates project name, sets appropriate wizard status |
void |
validateTemplate()
Validates templates, sets appropriate wizard status |
boolean |
validImportFile(java.lang.String filePath)
|
boolean |
validProjectName(java.lang.String projectName)
|
| Methods inherited from class org.eclipse.jface.wizard.WizardPage |
|---|
getContainer, getDialogSettings, getImage, getName, 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 |
|---|
protected ImportPageComposite _importPageComposite
protected FileRawDataLogger _importLogger
| Constructor Detail |
|---|
public ImportPage(java.lang.String pageName)
| Method Detail |
|---|
public TemplateGroup[] getTemplateGroups(boolean reload)
public void validateImportPage()
public void validateProjectName()
Note: This method does invoke setPageComplete method
and not change wizard state. To do this, call
validateImportPage method
public boolean validateImportFile()
Note: This method does not invoke setPageComplete
method and not set error state. To do this, call
validateImportPage method.
public void validateTemplate()
Note: This method does not invoke setPageComplete
method and not set error state. To do this, call
validateImportPage method. It marks data changed, and import
is required
public void validateImporterType()
public boolean validImportFile(java.lang.String filePath)
public pl.edu.agh.cast.rawdata.TabularData loadPreview(java.lang.String filePath,
Template template)
public void notifyDataChanged()
public boolean isComplete()
true if all fields are correct, false
otherwise.public java.lang.String getProjectName()
public java.lang.String getFilePath()
public Template getTemplate()
public org.eclipse.core.resources.IProject getProject()
public void createControl(org.eclipse.swt.widgets.Composite parent)
public org.eclipse.jface.wizard.IWizardPage getNextPage()
getNextPage in interface org.eclipse.jface.wizard.IWizardPagegetNextPage in class org.eclipse.jface.wizard.WizardPagepublic boolean canFlipToNextPage()
canFlipToNextPage in interface org.eclipse.jface.wizard.IWizardPagecanFlipToNextPage in class org.eclipse.jface.wizard.WizardPagepublic void dispose()
dispose in interface org.eclipse.jface.dialogs.IDialogPagedispose in class org.eclipse.jface.dialogs.DialogPagepublic boolean isCurrentWizardPage()
WizardPage.isCurrentPage. Returns whether this page is the
current one in the wizard's container.
true if the page is active, and false
otherwisepublic boolean validProjectName(java.lang.String projectName)
public void addTemplate(Template template)
public void setImportPageComposite(ImportPageComposite importPageComposite)
public void setImportLogger(FileRawDataLogger logger)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||