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

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

public class ButtonTableCreator
extends Object

SWT table creator, which creates tables with "select" buttons as labels.

Author:
AGH CAST Team

Constructor Summary
ButtonTableCreator(int selectColumnsCount)
          The default constructor.
 
Method Summary
 void createTable(org.eclipse.swt.widgets.Composite container, org.eclipse.swt.layout.GridData tableLData, TabularData tabData, Map<Integer,Integer> indicesMap)
          Creates table basing on parsed tabular data.
 List<Integer> getSelectedColumnIndices()
          Retrieves the selected column index of the entire tabular data (basing on the indices mapping).
 void selectTableColumn(int columnIndex)
          Selects a specified column index in table.
 void selectTableColumns(List<Integer> columnIndices)
          Method called by the mediating conversion rules configuration dialog in order to set the previously chosen table columns selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonTableCreator

public ButtonTableCreator(int selectColumnsCount)
The default constructor.

Parameters:
selectColumnsCount - the maximal number of columns allowed to be selected
Method Detail

createTable

public void createTable(org.eclipse.swt.widgets.Composite container,
                        org.eclipse.swt.layout.GridData tableLData,
                        TabularData tabData,
                        Map<Integer,Integer> indicesMap)
Creates table basing on parsed tabular data.

Parameters:
container - the table container
tableLData - the table layout data
tabData - the data to be inserted into the table
indicesMap - the mapping of dialog tabular data column indices to the column indices of the entire tabular data

selectTableColumns

public void selectTableColumns(List<Integer> columnIndices)
Method called by the mediating conversion rules configuration dialog in order to set the previously chosen table columns selection.

Parameters:
columnIndices - the indices of the columns that are to be selected

selectTableColumn

public void selectTableColumn(int columnIndex)
Selects a specified column index in table.

Parameters:
columnIndex - the column index to select

getSelectedColumnIndices

public List<Integer> getSelectedColumnIndices()
Retrieves the selected column index of the entire tabular data (basing on the indices mapping).

Returns:
selected column index


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