|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserAgent<C>
User agent for rendering documents.
| Method Summary | |
|---|---|
void |
addDownloadListener(URL url,
DownloadListener<C> listener)
Adds a download listener for asynchronous retrieval of resources (embedded images, etc.) |
ResourceDownloader<C> |
download(URL url)
Registers an URL for downloading with this user agent. |
ElementReplacer<C> |
getElementReplacer(String namespaceUri)
Gets the element replacer for the given namespace URI. |
ResourceDownloader<C> |
getResourceDownloader(URL url)
Gets the resource downloader for the given URL, creating one if none exists. |
StyleDatabase |
getStyleDatabase()
Gets the style database used for the styles applied by this agent. |
void |
setElementReplacer(String namespaceUri,
ElementReplacer<C> replacer)
Sets the element replacer for the given namespace URI. |
| Method Detail |
|---|
ResourceDownloader<C> download(URL url)
url - the URL to be downloaded.
void addDownloadListener(URL url,
DownloadListener<C> listener)
In the process, it creates a resource downloader object.
url - the URL for the resource to be downloaded.listener - the download listener.ResourceDownloader<C> getResourceDownloader(URL url)
url - the URL.
ElementReplacer<C> getElementReplacer(String namespaceUri)
namespaceUri - the namespace URI of the requested replacer.
If passed an empty string, will return the replacer for the
namespace of XHTML.
void setElementReplacer(String namespaceUri,
ElementReplacer<C> replacer)
namespaceUri - the namespace URI of the supplied replacer.replacer - the element replacer.StyleDatabase getStyleDatabase()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||