Top | Module | Use | Manual | Index |
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS  |
You can either get a simple static ContentResultSet or you can listen to change-notifications and than swap from the old to a new ContentResultSet .
The following describes the dynamic use:
XDynamicResultSet provides the possibility to get notifications about changes on a ContentResultSet and have an listener-controlled update from one version to the next version. Two ContentResultSet implementations were given to the listener in the first notification as interface XResultSet .
To get notifications the listener has to be of type XDynamicResultSetListener .
After registration you will get notifications for events of type ListEvent .
The calling of XDynamicResultSetListener::notify has to happen in an own thread, because it could take a longer time and any actions til the listener returns the call. So don't block the notify-causing action.
While one notify-call is going on:
After the listener has returned the notify-call:
Known Services which Export this Interface |
|
com::sun::star::ucb::DynamicResultSet | provides read access to a static or dynamically changing ContentResultSet . |
com::sun::star::ucb::CachedDynamicResultSet | provides read access to a static or dynamically changing ContentResultSet . |
com::sun::star::ucb::CachedDynamicResultSetStub | provides read access to a static or dynamicallly changing ContentResultSet . |
Methods' Summary |
|
getStaticResultSet | Call this, if you don't care about any changes. |
setListener | Call this, if you want to get notifications about changes. |
connectToCache | Connects this to a CachedDynamicResultSet for optimized remote data transport. |
getCapabilities | Using this method you can get information, whether the offered ContentResultSet s are sorted or filtered etc correctly as demanded during the creation of the XDynamicResultSet . |
Methods' Details |
||
|
||
|
||
|
||
|
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.