|
|||||||||
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.DataSourceSelectionPage
public class DataSourceSelectionPage
This is a wizard page which is used to select from a set of data sources.
Each data source is described an instance of
Client code may instantiate objects of this class,but may only call
setSelectedDescriptor(UDIGImportPageDescriptor). All other methods are
wizard lifecycle methods.page
Constructor Summary | |
---|---|
DataSourceSelectionPage()
|
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)
|
protected Button |
findButton(Control buttonBar,
int buttonID)
|
java.util.List<UDIGConnectionFactoryDescriptor> |
getDescriptors()
|
Viewer |
getViewer()
|
protected void |
saveSelectedDescriptor()
|
void |
select(java.util.List<java.lang.String> ids)
Sets the selected set of import page descriptiors. |
void |
select(java.lang.String id)
Sets the selected import page descriptor. |
void |
selectionChanged(SelectionChangedEvent event)
|
void |
setSelection(java.util.List<UDIGConnectionFactoryDescriptor> descriptors)
Sets the selected import page descriptor. |
Methods inherited from class net.refractions.udig.catalog.ui.workflow.WorkflowWizardPage |
---|
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 DataSourceSelectionPage()
Method Detail |
---|
public void select(java.util.List<java.lang.String> ids)
ids
- A list of import page identifiers.public void select(java.lang.String id)
id
- The id of the import page to select.public void setSelection(java.util.List<UDIGConnectionFactoryDescriptor> descriptors)
descriptor
- The descriptor to be selected.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
public void createControl(Composite parent)
org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
protected Button findButton(Control buttonBar, int buttonID)
public void selectionChanged(SelectionChangedEvent event)
org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
public Viewer getViewer()
public java.util.List<UDIGConnectionFactoryDescriptor> getDescriptors()
protected void saveSelectedDescriptor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |