|
|||||||||
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
public abstract class AbstractUDIGImportPage
Abstract implementation of UDIGImportPage.
Constructor Summary | |
---|---|
AbstractUDIGImportPage(java.lang.String pageName)
|
Method Summary | |
---|---|
void |
dispose()
|
IWizardPage |
getNextPage()
|
java.util.Map<java.lang.String,java.io.Serializable> |
getParams()
Gather up connection parameters from the user interface |
java.util.Collection<java.net.URL> |
getResourceIDs()
Returns the ids of the GeoResource to use as the "selected" resources. |
java.util.Collection<IService> |
getServices()
Default implementation creates a collection of services from the parameters returned UDIGConnectionPage.getParams() |
boolean |
leavingPage()
Called by framework as the page is about to be left. |
void |
setErrorMessage(java.lang.String newMessage)
Sets the error Message on the wizard page. |
void |
setMessage(java.lang.String newMessage,
int newType)
Sets a Message on the wizard page. |
Methods inherited from class net.refractions.udig.catalog.ui.workflow.WorkflowWizardPage |
---|
canFlipToNextPage, getState, getWizard, setState, shown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractUDIGImportPage(java.lang.String pageName)
Method Detail |
---|
public void setMessage(java.lang.String newMessage, int newType)
public void setErrorMessage(java.lang.String newMessage)
setErrorMessage
in interface UDIGConnectionPage
newMessage
- the message, or null
to clear the error messagepublic final IWizardPage getNextPage()
public boolean leavingPage()
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 WorkflowWizardPage
WorkflowWizardPage.leavingPage()
public java.util.Collection<java.net.URL> getResourceIDs()
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
public java.util.Collection<IService> getServices()
UDIGConnectionPage.getParams()
getServices
in interface UDIGConnectionPage
public java.util.Map<java.lang.String,java.io.Serializable> getParams()
getParams
in interface UDIGConnectionPage
public void dispose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |