org.geotools.swt.control
Class JParameterListWizard

Object
  extended by Wizard
      extended by JParameterListWizard
All Implemented Interfaces:
IWizard

public class JParameterListWizard
extends Wizard

The parameter list wizard.

Author:
Andrea Antonello (www.hydrologis.com)

Field Summary
 
Fields inherited from class Wizard
DEFAULT_IMAGE
 
Constructor Summary
JParameterListWizard(String title, String description, List<Parameter<?>> contents)
          Constructor.
JParameterListWizard(String title, String description, List<Parameter<?>> contents, Map<String,Object> connectionParams)
           
 
Method Summary
 void addPages()
           
 Map<String,Object> getConnectionParameters()
          Retrieve the connection parameters entered
 File getFile()
          Helper method that returns the "url" element of the connection parameters as a File, if present.
 boolean performFinish()
           
 
Methods inherited from class Wizard
addPage, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JParameterListWizard

public JParameterListWizard(String title,
                            String description,
                            List<Parameter<?>> contents)
Constructor.

Parameters:
title - title for the dialog
description - brief description to be displayed on the page
contents - a List of Parameter objects defining the data being requested

JParameterListWizard

public JParameterListWizard(String title,
                            String description,
                            List<Parameter<?>> contents,
                            Map<String,Object> connectionParams)
Method Detail

addPages

public void addPages()
Specified by:
addPages in interface IWizard
Overrides:
addPages in class Wizard

performFinish

public boolean performFinish()
Specified by:
performFinish in interface IWizard
Specified by:
performFinish in class Wizard

getConnectionParameters

public Map<String,Object> getConnectionParameters()
Retrieve the connection parameters entered

Returns:
the Map of connection parameters

getFile

public File getFile()
Helper method that returns the "url" element of the connection parameters as a File, if present. Equivalent to:

     URL url = (URL) myWizard.getConnectionParameters().get("url");
     File file = DataUtilities.urlToFile(url);
 

Returns:
url parameter as a File, or null if not applicable


Copyright © 1996-2014 Geotools. All Rights Reserved.