net.refractions.udig.project.ui.wizard.export
Class MapSelectorPage

java.lang.Object
  extended by WizardPage
      extended by net.refractions.udig.project.ui.wizard.export.MapSelectorPage
Direct Known Subclasses:
MapSelectorPageWithScaleColumn

public class MapSelectorPage
extends WizardPage

Wizard Page for selecting the maps to export.

Author:
Jesse

Nested Class Summary
 class MapSelectorPage.SelectButtonListener
           
 
Field Summary
protected  StructuredViewer viewer
           
 
Constructor Summary
MapSelectorPage()
          Create a new instance
 
Method Summary
 void addToSelection(IStructuredSelection selection)
          Adds the selection to the set of selected maps
protected  void configureEditors(TableViewer viewer2)
          Implementation does nothing
protected  void createColumns(Table table, TableLayout tableLayout)
          Creates the columns that are shown in the viewer.
 void createControl(Composite parent)
           
protected  IBaseLabelProvider createLabelProvider(StructuredViewer viewer2)
          Creates the label provider to use in the table viewer.
 java.io.File getExportDir()
           
 java.util.Collection<IMap> getMaps()
           
protected  void initializeViewer(Composite listComp)
          By default creates a table viewer.
 void setSelection(IStructuredSelection selection)
          Sets the set of selected maps
 void updateMapList()
          Updates the list of selected maps
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewer

protected StructuredViewer viewer
Constructor Detail

MapSelectorPage

public MapSelectorPage()
Create a new instance

Method Detail

createControl

public void createControl(Composite parent)

getExportDir

public java.io.File getExportDir()

initializeViewer

protected final void initializeViewer(Composite listComp)
By default creates a table viewer. Calls add columns in order to create the required columns for the table.

Parameters:
listComp - the parent Composite.

configureEditors

protected void configureEditors(TableViewer viewer2)
Implementation does nothing

Parameters:
viewer2 - the viewer created by

createLabelProvider

protected IBaseLabelProvider createLabelProvider(StructuredViewer viewer2)
Creates the label provider to use in the table viewer. This version creates an AdapterFactoryLabelProviderDecorator.

Parameters:
viewer2 -
Returns:

createColumns

protected void createColumns(Table table,
                             TableLayout tableLayout)
Creates the columns that are shown in the viewer. The default is a single "Map" column. The table that is passed in has one column and uses TableLayout with ColumnWeightData. The headers are not visible.

This method simply renames the first (only) column's name to "Name"

Parameters:
table - table to add columns to
tableLayout -

updateMapList

public void updateMapList()
Updates the list of selected maps

Parameters:
mapList -

getMaps

public java.util.Collection<IMap> getMaps()

setSelection

public void setSelection(IStructuredSelection selection)
Sets the set of selected maps

Parameters:
selection -

addToSelection

public void addToSelection(IStructuredSelection selection)
Adds the selection to the set of selected maps

Parameters:
selection - selections to inspect