|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Tab
One of the tabs in the PostGis Connection wizard page
Method Summary | |
---|---|
void |
addListener(Listener modifyListener)
Fires an SWT.Modify method when something has changed that may change the state of the tab as recognizable by calling getParams(Map) and getResourceIDs(Map) . |
|
getParams(java.util.Map<java.lang.String,java.io.Serializable> params)
Returns the connection parameters as known by the caller. |
java.util.Collection<java.net.URL> |
getResourceIDs(java.util.Map<java.lang.String,java.io.Serializable> params)
Return the ids of the selected IGeoResource (if needed) |
void |
init()
Called when the containing page has just been shown. |
boolean |
leavingPage()
Called by the PostgisConnectionPage as the page is about to be left if the tab is active |
Method Detail |
---|
boolean leavingPage()
PostgisConnectionPage
as the page is about to be left if the tab is active
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.
If an expensive method is called make sure to run it in the container:
getContainer().run(true, cancelable, runnable);
getParams(java.util.Map<java.lang.String,java.io.Serializable> params)
params
- the basic parameters for connecting to a database. The tab can augment the params.
java.util.Collection<java.net.URL> getResourceIDs(java.util.Map<java.lang.String,java.io.Serializable> params)
params
- the params used for connecting to the database. It must be a valid set of Postgis params.
void addListener(Listener modifyListener)
getParams(Map)
and getResourceIDs(Map)
.
When an event is fired the owner of the tab should call getParams(Map)
and getResourceIDs(Map)
again.
modifyListener
- void init()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |