net.refractions.udig.catalog.ui.wizard
Class DataBaseRegistryWizardPage

java.lang.Object
  extended by WizardPage
      extended by net.refractions.udig.catalog.ui.AbstractUDIGImportPage
          extended by net.refractions.udig.catalog.ui.wizard.DataStoreWizardPage
              extended by net.refractions.udig.catalog.ui.wizard.DataBaseRegistryWizardPage
All Implemented Interfaces:
UDIGConnectionPage
Direct Known Subclasses:
AbstractProprietaryDatastoreWizardPage

public abstract class DataBaseRegistryWizardPage
extends DataStoreWizardPage

David's magic superclass, seems to delegate to createAdvancedControl for anything cool.

Since:
0.3
Author:
dzwiers

Nested Class Summary
static class DataBaseRegistryWizardPage.DataBaseConnInfo
           
 
Field Summary
protected  Group advanced
           
protected  Button advancedKey
           
protected  Control database
           
protected  Control host
           
protected  Text pass
           
protected  Text port
           
protected  CCombo schema
           
protected  Text user
           
 
Fields inherited from class net.refractions.udig.catalog.ui.wizard.DataStoreWizardPage
canFlipToNextPage
 
Constructor Summary
DataBaseRegistryWizardPage()
           
DataBaseRegistryWizardPage(java.lang.String name)
           
 
Method Summary
protected abstract  Group createAdvancedControl(Composite arg0)
           
 void createControl(Composite arg0)
          TODO summary sentence for createControl ...
protected  boolean excludeDB(java.lang.String db)
           
protected  boolean excludeSchema(java.lang.String schema)
           
 void focusGained(FocusEvent e)
          TODO summary sentence for focusGained ...
 void focusLost(FocusEvent e)
          TODO summary sentence for focusLost ...
protected abstract  java.sql.Connection getConnection()
           
protected abstract  java.lang.String getDBText()
          Gets the database parameter
protected abstract  java.lang.String getHostText()
          gets the host name
protected abstract  java.lang.String getPassText()
          gets the password
protected abstract  java.lang.String getPortText()
          gets the port number
protected abstract  java.lang.String getUserText()
          gets the username
protected abstract  boolean hasSchema()
           
protected abstract  boolean isDBCombo()
           
protected  boolean isFireEvents()
           
protected abstract  boolean isHostCombo()
           
 boolean isPageComplete()
           
 void modifyText(ModifyEvent e)
           
protected  void populateDB()
           
protected  void populateSchema()
           
protected  void setFireEvents(boolean fire)
           
 void setVisible(boolean visible)
           
 void widgetDefaultSelected(SelectionEvent e)
          TODO summary sentence for widgetDefaultSelected ...
 void widgetSelected(SelectionEvent e)
          TODO summary sentence for widgetSelected ...
protected  void widgetSelectedInternal(SelectionEvent e)
           
 
Methods inherited from class net.refractions.udig.catalog.ui.wizard.DataStoreWizardPage
canFlipToNextPage, getDataStoreFactorySpi, getParams, setCanFlipToNextPage
 
Methods inherited from class net.refractions.udig.catalog.ui.AbstractUDIGImportPage
getNextPage, leavingPage, popErrorMessage, popMessage, setErrorMessage, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

protected Control host

port

protected Text port

user

protected Text user

pass

protected Text pass

database

protected Control database

schema

protected CCombo schema

advancedKey

protected Button advancedKey

advanced

protected Group advanced
Constructor Detail

DataBaseRegistryWizardPage

public DataBaseRegistryWizardPage(java.lang.String name)

DataBaseRegistryWizardPage

public DataBaseRegistryWizardPage()
Method Detail

getHostText

protected abstract java.lang.String getHostText()
gets the host name


getPortText

protected abstract java.lang.String getPortText()
gets the port number


getPassText

protected abstract java.lang.String getPassText()
gets the password


getUserText

protected abstract java.lang.String getUserText()
gets the username


getDBText

protected abstract java.lang.String getDBText()
Gets the database parameter


focusGained

public void focusGained(FocusEvent e)
TODO summary sentence for focusGained ...

Parameters:
e -
See Also:
org.eclipse.swt.events.FocusListener#focusGained(org.eclipse.swt.events.FocusEvent)

focusLost

public void focusLost(FocusEvent e)
TODO summary sentence for focusLost ...

Parameters:
e -
See Also:
org.eclipse.swt.events.FocusListener#focusLost(org.eclipse.swt.events.FocusEvent)

isDBCombo

protected abstract boolean isDBCombo()

isHostCombo

protected abstract boolean isHostCombo()

hasSchema

protected abstract boolean hasSchema()

createControl

public void createControl(Composite arg0)
TODO summary sentence for createControl ...

Parameters:
parent -
See Also:
org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)

createAdvancedControl

protected abstract Group createAdvancedControl(Composite arg0)

setVisible

public void setVisible(boolean visible)

isPageComplete

public boolean isPageComplete()
Specified by:
isPageComplete in class DataStoreWizardPage
See Also:
org.eclipse.jface.wizard.IWizardPage#isPageComplete()

setFireEvents

protected void setFireEvents(boolean fire)

isFireEvents

protected boolean isFireEvents()

modifyText

public void modifyText(ModifyEvent e)

widgetSelected

public void widgetSelected(SelectionEvent e)
TODO summary sentence for widgetSelected ...

Parameters:
e -
See Also:
org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)

widgetSelectedInternal

protected void widgetSelectedInternal(SelectionEvent e)

populateDB

protected void populateDB()

populateSchema

protected void populateSchema()

excludeDB

protected boolean excludeDB(java.lang.String db)

excludeSchema

protected boolean excludeSchema(java.lang.String schema)

getConnection

protected abstract java.sql.Connection getConnection()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent e)
TODO summary sentence for widgetDefaultSelected ...

Parameters:
e -
See Also:
org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)