pl.edu.agh.cast.importer.wizard.dialog.rule
Class AbstractConversionRuleConfigDialog

java.lang.Object
  extended by org.eclipse.swt.widgets.Dialog
      extended by pl.edu.agh.cast.importer.wizard.dialog.rule.AbstractConversionRuleConfigDialog
Direct Known Subclasses:
AbstractSingleColumnConversionRuleConfigDialog, DateDoubleColumnConversionRuleConfigDialog, DirectedGraphConversionRuleConfigDialog

public abstract class AbstractConversionRuleConfigDialog
extends org.eclipse.swt.widgets.Dialog

Abstract class for conversion rules configuration dialogs of the importer wizard.

Author:
AGH CAST Team

Field Summary
protected  TabularData data
          The tabular data to be converted.
protected  String[] labelParams
          The additional parameters for the conversion rule.
protected  AbstractConversionRulesSelectionPage mediator
          The mediating conversion rules selection page.
protected  IConversionRule rule
          The conversion rule.
protected  org.eclipse.swt.widgets.Shell shell
          The dialog shell.
 
Constructor Summary
AbstractConversionRuleConfigDialog(org.eclipse.swt.widgets.Shell parent)
          The default constructor.
 
Method Summary
protected abstract  boolean createContents()
           
protected  boolean createTable(org.eclipse.swt.widgets.Composite container, ButtonTableCreator tableCreator, Class<?> columnType, String columnTypeName)
          Calls the ButtonTableCreator.createTable(Composite, GridData, TabularData, Map) method of the specified table creator, which is to be created on the specified composite.
 void open()
          Opens the dialog.
 void setData(AbstractConversionRulesSelectionPage mediatingPage, TabularData tabData, String[] params, IConversionRule convRule)
          Sets necessary data for this conversion rule configuration dialog.
 
Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shell

protected org.eclipse.swt.widgets.Shell shell
The dialog shell.


mediator

protected AbstractConversionRulesSelectionPage mediator
The mediating conversion rules selection page.


data

protected TabularData data
The tabular data to be converted.


labelParams

protected String[] labelParams
The additional parameters for the conversion rule.


rule

protected IConversionRule rule
The conversion rule.

Constructor Detail

AbstractConversionRuleConfigDialog

public AbstractConversionRuleConfigDialog(org.eclipse.swt.widgets.Shell parent)
The default constructor.

Parameters:
parent - the parent shell
Method Detail

open

public void open()
Opens the dialog.


setData

public void setData(AbstractConversionRulesSelectionPage mediatingPage,
                    TabularData tabData,
                    String[] params,
                    IConversionRule convRule)
Sets necessary data for this conversion rule configuration dialog.

Parameters:
mediatingPage - the mediating page
tabData - the tabular data
params - the additional parameters
convRule - the conversion rule

createTable

protected boolean createTable(org.eclipse.swt.widgets.Composite container,
                              ButtonTableCreator tableCreator,
                              Class<?> columnType,
                              String columnTypeName)
Calls the ButtonTableCreator.createTable(Composite, GridData, TabularData, Map) method of the specified table creator, which is to be created on the specified composite.

Parameters:
container - the container for the new table that is to be created
tableCreator - the button table creator
columnType - the type of columns to be included in the table
columnTypeName - the name of the column type
Returns:
true of the table was successfully created, false otherwise

createContents

protected abstract boolean createContents()


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