|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWizardPage
net.refractions.udig.catalog.ui.workflow.WorkflowWizardPage
net.refractions.udig.catalog.ui.AbstractUDIGImportPage
net.refractions.udig.catalog.service.database.DataConnectionPage
public class DataConnectionPage
This page allows the user to select the database and rest of the information for creating a layer from the database. (Schema, table, SQL)
Constructor Summary | |
---|---|
DataConnectionPage()
|
Method Summary | |
---|---|
void |
createControl(Composite parent)
|
java.util.Map<java.lang.String,java.io.Serializable> |
getParams()
Gather parameters from the user interface. |
java.util.Collection<java.net.URL> |
getResourceIDs()
Returns the ids of the GeoResource to use as the "selected" resources. |
void |
handleEvent(Event event)
|
boolean |
isPageComplete()
|
boolean |
leavingPage()
Called by framework as the page is about to be left. |
void |
shown()
Called immediately after a page has been shown in the wizard. |
Methods inherited from class net.refractions.udig.catalog.ui.AbstractUDIGImportPage |
---|
dispose, getNextPage, getServices, setErrorMessage, setMessage |
Methods inherited from class net.refractions.udig.catalog.ui.workflow.WorkflowWizardPage |
---|
canFlipToNextPage, getState, getWizard, setState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataConnectionPage()
Method Detail |
---|
public boolean isPageComplete()
public java.util.Map<java.lang.String,java.io.Serializable> getParams()
getParams
in interface UDIGConnectionPage
getParams
in class AbstractUDIGImportPage
public void shown()
WorkflowWizardPage
shown
in class WorkflowWizardPage
public boolean leavingPage()
AbstractUDIGImportPage
There are two main use cases for this method. The first is to save settings for the next time the wizard is visited. The other is to perform some checks or do some loading that is too expensive to do every time isPageComplete() is called. For example a database wizard page might try to connect to the database in this method rather than isPageComplete() because it is such an expensive method to call.
Remember that this method is only called when moving forward.
If an expensive method is called make sure to run it in the container:
getContainer().run(false, cancelable, runnable);Remember to pass in false as the fork parameter so that it blocks until the method has completed executing.
leavingPage
in class AbstractUDIGImportPage
WorkflowWizardPage.leavingPage()
public void createControl(Composite parent)
public java.util.Collection<java.net.URL> getResourceIDs()
AbstractUDIGImportPage
Example: The postgis wizard pages permits the user to select the table of interest. When
moving to a new state (for example the Resource Selection State in
net.refractions.udig.project.ui) that state should use that as the selected IGeoResources if
it needs a selection of IGeoResources
In the ResourceSelectionState example it would use this collection and not need to query the
user with a wizard page for that input
getResourceIDs
in interface UDIGConnectionPage
getResourceIDs
in class AbstractUDIGImportPage
public void handleEvent(Event event)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |