org.geotools.swing.data
Class JParameterListPage

java.lang.Object
  extended by org.geotools.swing.wizard.JPage
      extended by org.geotools.swing.data.JParameterListPage

public class JParameterListPage
extends JPage

A wizard page that will prompt the user for a file of the supplied format ask for any additional information.

This page will allow the user to edit and modify the provided connectionParameters map - but will only show parameters that match the indicated "level". If level is null it assumed to be "user".


Field Summary
protected  java.util.Map<java.lang.String,java.lang.Object> connectionParameters
          Connection params for datastore
 
Fields inherited from class org.geotools.swing.wizard.JPage
backPageIdentifier, DEFAULT, FINISH, NEXT, nextPageIdentifier, pageIdentifier
 
Constructor Summary
JParameterListPage(java.lang.String title, java.lang.String description, java.util.List<Parameter<?>> contents, java.util.Map<java.lang.String,java.lang.Object> params)
           
 
Method Summary
 javax.swing.JPanel createPanel()
          Called to initialize the page for the first time.
 boolean isValid()
          Validation of page state; if the page isValid then the next or finish button will be enabled.
 void preClosePanel()
          Override this method to perform functionality just before the panel is to be hidden.
 void preDisplayPanel()
          Called just before the panel is to be displayed.
 
Methods inherited from class org.geotools.swing.wizard.JPage
dispose, getBackPageIdentifier, getJWizard, getModel, getNextPageIdentifier, getPageIdentifier, getPanel, postDisplayPanel, setBackPageIdentifier, setNextPageIdentifier, setPageIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionParameters

protected java.util.Map<java.lang.String,java.lang.Object> connectionParameters
Connection params for datastore

Constructor Detail

JParameterListPage

public JParameterListPage(java.lang.String title,
                          java.lang.String description,
                          java.util.List<Parameter<?>> contents,
                          java.util.Map<java.lang.String,java.lang.Object> params)
Method Detail

createPanel

public javax.swing.JPanel createPanel()
Description copied from class: JPage
Called to initialize the page for the first time.

Please note this method will normally only be called once; even if the user clicks forwards and backwards to return to your page. It is only called if getPanel() returns null.

Calling this method directly will erase any previously constructed panel.

Overrides:
createPanel in class JPage

preDisplayPanel

public void preDisplayPanel()
Description copied from class: JPage
Called just before the panel is to be displayed.

This is a good time to populate your fields with values; hook up any listeners and gernally muck about.

Overrides:
preDisplayPanel in class JPage

preClosePanel

public void preClosePanel()
Description copied from class: JPage
Override this method to perform functionality just before the panel is to be hidden.

Overrides:
preClosePanel in class JPage

isValid

public boolean isValid()
Description copied from class: JPage
Validation of page state; if the page isValid then the next or finish button will be enabled.

If you need to call setNextPageIdentifier based on input this is the time to do it.

Overrides:
isValid in class JPage
Returns:
true if the page contents are valid


Copyright © 1996-2010 Geotools. All Rights Reserved.