pl.edu.agh.cast.importer.wizard.utils
Class ComboBoxTableCreator

java.lang.Object
  extended by pl.edu.agh.cast.importer.wizard.utils.ComboBoxTableCreator

public class ComboBoxTableCreator
extends Object

SWT table creator, which creates tables with comboboxes as labels and configuration buttons above.

Author:
AGH CAST Team

Constructor Summary
ComboBoxTableCreator(AnalyzersSelectionPage mediator)
          The default constructor.
 
Method Summary
 void createTable(org.eclipse.swt.widgets.Composite container, String[] comboItems, Object[] comboData, RawTabularData rawTabData)
          Creates table basing on column names and tokenized raw tabular data.
 void disableConfigButton(int columnIndex)
          Disables configuration button in column with the specified index.
 void enableConfigButton(int columnIndex)
          Enables configuration button in column with the specified index.
 List<String> getDistinctTokensInColumn(int columnIndex)
          Delegate method.
 List<String> getSelectedColumnCaptions()
          Retrieves the selected captions for tabular data columns.
 List<Object> getSelectedComboData()
          Retrieves the selected combobox data (analyzers).
 void widgetModified()
          Delegated method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComboBoxTableCreator

public ComboBoxTableCreator(AnalyzersSelectionPage mediator)
The default constructor.

Parameters:
mediator - the mediating wizard page
Method Detail

createTable

public void createTable(org.eclipse.swt.widgets.Composite container,
                        String[] comboItems,
                        Object[] comboData,
                        RawTabularData rawTabData)
Creates table basing on column names and tokenized raw tabular data.

Parameters:
container - the table container
comboItems - the combobox items
comboData - the combobox data
rawTabData - the data to be inserted into the table

enableConfigButton

public void enableConfigButton(int columnIndex)
Enables configuration button in column with the specified index.

Parameters:
columnIndex - the column index

disableConfigButton

public void disableConfigButton(int columnIndex)
Disables configuration button in column with the specified index.

Parameters:
columnIndex - the column index

widgetModified

public void widgetModified()
Delegated method.

See Also:
AnalyzersSelectionPage.widgetModified()

getDistinctTokensInColumn

public List<String> getDistinctTokensInColumn(int columnIndex)
Delegate method.

See Also:
RawTabularData.getDistinctTokensInColumn(int)

getSelectedComboData

public List<Object> getSelectedComboData()
Retrieves the selected combobox data (analyzers).

Returns:
selected combobox data

getSelectedColumnCaptions

public List<String> getSelectedColumnCaptions()
Retrieves the selected captions for tabular data columns.

Returns:
selected column captions


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