|
||||||||||
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
public abstract class AbstractConversionRulesSelectionPage
Abstract class for conversion rules selection pages of the importer wizard.
Field Summary | |
---|---|
protected IImportConverter |
converter
The import converter responsible for the current domain model's data conversion. |
protected Map<Class<? extends IConversionRule>,org.eclipse.swt.widgets.Combo> |
ruleCombosMap
The map of existing conversion rules to the comboboxes that handle their configuration. |
protected List<ConversionRuleInfo> |
ruleInfos
The conversion rules' information. |
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
---|
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
---|---|
protected |
AbstractConversionRulesSelectionPage(String pageName,
String description)
|
Method Summary | |
---|---|
abstract boolean |
canFinish()
Checks whether the wizard can finish the import process (using the helper method isComplete() ), and when it is, creates an appropriate converter,
sets its conversion rule values, and sets the converter for the parent wizard. |
boolean |
canFlipToNextPage()
|
void |
checkBlocking(IConversionRule oldRule,
IConversionRule newRule,
Class<? extends IConversionRule> ruleClazz)
Checks whether the comboboxes in the curent rules selection page should be blocked or unblocked due to the change in rule selection. |
void |
createControl(org.eclipse.swt.widgets.Composite parent)
|
protected abstract org.eclipse.swt.widgets.Composite |
createConvRulesComposite(org.eclipse.swt.widgets.Composite parent)
|
List<TabularData> |
getConversionPreview(TabularData data)
Delegated method. |
AbstractConversionRuleConfigDialog |
getConversionRuleConfigDialog(String ruleId)
Retrieves conversion rule configuration dialog for conversion rule of the specified identifier. |
IConversionRule |
getConversionRuleInstance(String ruleId)
Retrieves conversion rule instance with specified identifier. |
String |
getSelectedRuleId(org.eclipse.swt.widgets.Combo combo)
Retrieves the conversion rule identifier selected in the specified combobox. |
void |
initPage()
initPage() is invoked before showing page. |
protected abstract boolean |
isComplete()
Returns whether the current conversion rule selection page is complete - whether all its obligatory conversion rules are complete (are entirely configured). |
boolean |
isCurrentWizardPage()
Method is a delegate of a protected method WizardPage.isCurrentPage . |
boolean |
isSaveTemplateSelected()
|
abstract 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. |
abstract void |
refreshConversionPreview()
Refreshes the conversion preview table. |
abstract void |
refreshSelectedData()
Method called by the previous page to refresh the selected data. |
void |
setMustSaveTemplate()
This method marks flag that template from import process must be saved. |
void |
setRuleComboData(org.eclipse.swt.widgets.Combo convRuleCombo,
Class<?> convRuleClazz)
Sets data and items to display for the specified ombo with conversion rule implementing a specified interface class. |
void |
setRuleCombosMap(Map<Class<? extends IConversionRule>,org.eclipse.swt.widgets.Combo> ruleCombosMap)
|
void |
setRuleDescriptionLabel(String ruleId,
org.eclipse.swt.widgets.Label ruleDescriptionLbl)
Sets the specified description label for a conversion rule with specified identifier. |
abstract 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.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 |
---|
protected IImportConverter converter
protected Map<Class<? extends IConversionRule>,org.eclipse.swt.widgets.Combo> ruleCombosMap
protected List<ConversionRuleInfo> ruleInfos
Constructor Detail |
---|
protected AbstractConversionRulesSelectionPage(String pageName, String description)
Method Detail |
---|
public void createControl(org.eclipse.swt.widgets.Composite parent)
IDialogPage.createControl(org.eclipse.swt.widgets.Composite)
public boolean isSaveTemplateSelected()
public boolean canFlipToNextPage()
canFlipToNextPage
in interface org.eclipse.jface.wizard.IWizardPage
canFlipToNextPage
in class AbstractImportWizardPage
AbstractImportWizardPage.canFlipToNextPage()
public void setMustSaveTemplate()
protected abstract org.eclipse.swt.widgets.Composite createConvRulesComposite(org.eclipse.swt.widgets.Composite parent)
public void initPage()
initPage
in class AbstractImportWizardPage
AbstractImportWizardPage.initPage()
public 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 void checkBlocking(IConversionRule oldRule, IConversionRule newRule, Class<? extends IConversionRule> ruleClazz)
oldRule
- the rule that had been selected previouslynewRule
- the rule that had been selected recentlyruleClazz
- the class of the selected rulepublic abstract void refreshSelectedData()
public abstract void refreshConversionPreview()
public abstract void refreshCombosBlocking(List<org.eclipse.swt.widgets.Combo> combosToBlock, List<org.eclipse.swt.widgets.Combo> combosToUnblock, IConversionRule newRule)
combosToBlock
- the comboboxes to blockcombosToUnblock
- the comboboxes to unblocknewRule
- the newly selected conversion rulepublic abstract boolean canFinish()
isComplete()
), and when it is, creates an appropriate converter,
sets its conversion rule values, and sets the converter for the parent wizard.
true
if the wizard can finish the import process, false
otherwisepublic abstract int showWarningMsgBox()
protected abstract boolean isComplete()
isComplete
in class AbstractImportWizardPage
true
if the wizard can finish the import process, false
otherwisepublic void setRuleComboData(org.eclipse.swt.widgets.Combo convRuleCombo, Class<?> convRuleClazz)
convRuleCombo
- the combo for conversion ruleconvRuleClazz
- the interface class for conversion rulepublic String getSelectedRuleId(org.eclipse.swt.widgets.Combo combo)
combo
- the combo, from which the selection is to be retrieved
public void setRuleDescriptionLabel(String ruleId, org.eclipse.swt.widgets.Label ruleDescriptionLbl)
ruleId
- the rule identifierruleDescriptionLbl
- the rule description labelpublic IConversionRule getConversionRuleInstance(String ruleId)
ruleId
- the rule id
public AbstractConversionRuleConfigDialog getConversionRuleConfigDialog(String ruleId)
ruleId
- the rule id
public void setRuleCombosMap(Map<Class<? extends IConversionRule>,org.eclipse.swt.widgets.Combo> ruleCombosMap)
public List<TabularData> getConversionPreview(TabularData data)
IImportConverter.preview(List)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |