|
|||||||||
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.ui.FileConnectionPage
public class FileConnectionPage
A wizard page that opens a file dialog and closes the wizard when dialog is closed.
Constructor Summary | |
---|---|
FileConnectionPage()
Construct OpenFilePage . |
Method Summary | |
---|---|
boolean |
canFlipToNextPage()
This method returns true if there are more states in the workflow, and the current page is complete. |
void |
createControl(Composite parent)
|
FileDialog |
getFileDialog()
|
java.lang.String |
getId()
|
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() |
protected boolean |
hasOneResource(SubProgressMonitor monitor,
java.util.List<IService> services)
|
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, getParams, leavingPage, setErrorMessage, setMessage |
Methods inherited from class net.refractions.udig.catalog.ui.workflow.WorkflowWizardPage |
---|
getState, getWizard, setState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.refractions.udig.catalog.ui.UDIGConnectionPage |
---|
getParams, setErrorMessage |
Constructor Detail |
---|
public FileConnectionPage()
OpenFilePage
.
Method Detail |
---|
public java.lang.String getId()
protected boolean hasOneResource(SubProgressMonitor monitor, java.util.List<IService> services) throws java.io.IOException
java.io.IOException
public boolean canFlipToNextPage()
WorkflowWizardPage
public boolean canFlipToNextPage() {
boolean flip = super.canFlipToNextPage();
if (flip) {
//validate user input (usually checking state of ui)
if (...) {
return true;
}
}
return false;
}
canFlipToNextPage
in class WorkflowWizardPage
org.eclipse.jface.wizard.WizardPage#canFlipToNextPage()
public void createControl(Composite parent)
org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
public void shown()
WorkflowWizardPage
shown
in class WorkflowWizardPage
public FileDialog getFileDialog()
public java.util.Collection<IService> getServices()
AbstractUDIGImportPage
UDIGConnectionPage.getParams()
getServices
in interface UDIGConnectionPage
getServices
in class AbstractUDIGImportPage
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |