|
||||||||||
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.importer.wizard.page.AbstractImportWizardPage
pl.edu.agh.cast.importer.wizard.page.AbstractConversionRulesSelectionPage
pl.edu.agh.cast.importer.wizard.general.GeneralConversionRulesSelectionPage
public class GeneralConversionRulesSelectionPage
Page of the import wizard, which serves for selection of conversion rules for each domain field. This page is specific for general domain model.
Field Summary | |
---|---|
static String |
PAGE_ID
Name of the conversion rules selection page for the general domain model. |
Fields inherited from class pl.edu.agh.cast.importer.wizard.page.AbstractConversionRulesSelectionPage |
---|
converter, ruleCombosMap, ruleInfos |
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
---|
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
---|---|
GeneralConversionRulesSelectionPage()
The default constructor. |
Method Summary | |
---|---|
boolean |
canFinish()
Checks whether the wizard can finish the import process (using the helper method AbstractConversionRulesSelectionPage.isComplete() ), and when it is, creates an appropriate converter,
sets its conversion rule values, and sets the converter for the parent wizard. |
org.eclipse.swt.widgets.Composite |
createConvRulesComposite(org.eclipse.swt.widgets.Composite parent)
|
IDateConversionRule |
getDateRule()
|
ISourceNodeConversionRule |
getSourceNodeRule()
|
ITargetNodeConversionRule |
getTargetNodeRule()
|
protected boolean |
isComplete()
Returns whether the current conversion rule selection page is complete - whether all its obligatory conversion rules are complete (are entirely configured). |
void |
refreshCombosBlocking(List<org.eclipse.swt.widgets.Combo> combosToBlock,
List<org.eclipse.swt.widgets.Combo> combosToUnblock,
IConversionRule newRule)
Refreshes the blocking of comboboxes on the current rules selection page. |
void |
refreshConversionPreview()
Refreshes the conversion preview table. |
void |
refreshSelectedData()
Method called by the previous page to refresh the selected data. |
void |
setDateRule(IDateConversionRule rule)
Sets the date rule. |
void |
setDateRule(String ruleId)
Retrieves the date rule, given its identifier, and sets the resulting rule. |
void |
setSourceNodeRule(ISourceNodeConversionRule rule)
Sets the source node rule. |
void |
setSourceNodeRule(String ruleId)
Retrieves the source node rule, given its identifier, and sets the resulting rule. |
void |
setTargetNodeRule(ITargetNodeConversionRule rule)
Sets the target node rule. |
void |
setTargetNodeRule(String ruleId)
Retrieves the target node rule, given its identifier, and sets the resulting rule. |
int |
showWarningMsgBox()
Displays a warning box before wizard finish with an appropriate message, if necessary. |
Methods inherited from class pl.edu.agh.cast.importer.wizard.page.AbstractConversionRulesSelectionPage |
---|
canFlipToNextPage, checkBlocking, createControl, getConversionPreview, getConversionRuleConfigDialog, getConversionRuleInstance, getSelectedRuleId, initPage, isCurrentWizardPage, isSaveTemplateSelected, setMustSaveTemplate, setRuleComboData, setRuleCombosMap, setRuleDescriptionLabel |
Methods inherited from class pl.edu.agh.cast.importer.wizard.page.AbstractImportWizardPage |
---|
dispose, getImportProcess, getImportWizard, getNextPage, refreshImportData, widgetModified |
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 |
---|
public static final String PAGE_ID
Constructor Detail |
---|
public GeneralConversionRulesSelectionPage()
Method Detail |
---|
public org.eclipse.swt.widgets.Composite createConvRulesComposite(org.eclipse.swt.widgets.Composite parent)
createConvRulesComposite
in class AbstractConversionRulesSelectionPage
createConvRulesComposite(org.eclipse.swt.widgets.Composite)
public boolean canFinish()
AbstractConversionRulesSelectionPage.isComplete()
), and when it is, creates an appropriate converter,
sets its conversion rule values, and sets the converter for the parent wizard.
canFinish
in class AbstractConversionRulesSelectionPage
true
if the wizard can finish the import process, false
otherwiseAbstractConversionRulesSelectionPage.canFinish()
protected boolean isComplete()
isComplete
in class AbstractConversionRulesSelectionPage
true
if the wizard can finish the import process, false
otherwiseAbstractConversionRulesSelectionPage.isComplete()
public void refreshSelectedData()
refreshSelectedData
in class AbstractConversionRulesSelectionPage
AbstractConversionRulesSelectionPage.refreshSelectedData()
public void refreshConversionPreview()
refreshConversionPreview
in class AbstractConversionRulesSelectionPage
AbstractConversionRulesSelectionPage.refreshConversionPreview()
public int showWarningMsgBox()
showWarningMsgBox
in class AbstractConversionRulesSelectionPage
AbstractConversionRulesSelectionPage.showWarningMsgBox()
public void refreshCombosBlocking(List<org.eclipse.swt.widgets.Combo> combosToBlock, List<org.eclipse.swt.widgets.Combo> combosToUnblock, IConversionRule newRule)
refreshCombosBlocking
in class AbstractConversionRulesSelectionPage
combosToBlock
- the comboboxes to blockcombosToUnblock
- the comboboxes to unblocknewRule
- the newly selected conversion rulerefreshCombosBlocking(java.util.List, java.util.List)
public void setSourceNodeRule(String ruleId)
ruleId
- the rule identifierpublic void setSourceNodeRule(ISourceNodeConversionRule rule)
rule
- the rule to setpublic void setTargetNodeRule(String ruleId)
ruleId
- the rule identifierpublic void setTargetNodeRule(ITargetNodeConversionRule rule)
rule
- the rule to setpublic void setDateRule(String ruleId)
ruleId
- the rule identifierpublic void setDateRule(IDateConversionRule rule)
rule
- the rule to setpublic ISourceNodeConversionRule getSourceNodeRule()
public ITargetNodeConversionRule getTargetNodeRule()
public IDateConversionRule getDateRule()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |