|
|||||||||
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.UserHostPage
public class UserHostPage
The first of a two page wizard for connecting to a database. This page requires the user enter host, port, username and password.
Field Summary | |
---|---|
protected static java.lang.String |
PASSWORD
|
protected static java.lang.String |
TIMESTAMP
|
Constructor Summary | |
---|---|
UserHostPage(DatabaseServiceDialect dialect)
|
Method Summary | |
---|---|
void |
createControl(Composite parent)
|
java.lang.String[] |
getDatabaseNames()
Returns the database names looked up when the next button is pressed. |
protected IDialogSettings |
getDialogSettings()
|
java.lang.String |
getHost()
Returns the host parameter entered into this page. |
java.util.Map<java.lang.String,java.io.Serializable> |
getParams()
Gather up connection parameters from the user interface |
java.lang.String |
getPassword()
Returns the password parameter entered into this page. |
java.lang.Integer |
getPort()
Returns the port parameter entered into this page. |
java.lang.String |
getUsername()
Returns the username parameter entered into this page. |
boolean |
isPageComplete()
|
boolean |
leavingPage()
Called by framework as the page is about to be left. |
protected void |
removeConnection()
|
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, getResourceIDs, 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 |
Methods inherited from interface net.refractions.udig.catalog.ui.UDIGConnectionPage |
---|
getResourceIDs, getServices, setErrorMessage |
Field Detail |
---|
protected static final java.lang.String TIMESTAMP
protected static final java.lang.String PASSWORD
Constructor Detail |
---|
public UserHostPage(DatabaseServiceDialect dialect)
Method Detail |
---|
public java.util.Map<java.lang.String,java.io.Serializable> getParams()
AbstractUDIGImportPage
getParams
in interface UDIGConnectionPage
getParams
in class AbstractUDIGImportPage
public void createControl(Composite parent)
protected void removeConnection()
protected IDialogSettings getDialogSettings()
public boolean isPageComplete()
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 java.lang.String[] getDatabaseNames()
NOTE: This can therefore only be called after the next button has been pressed.
public java.lang.String getHost()
public java.lang.Integer getPort()
public java.lang.String getUsername()
public java.lang.String getPassword()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |