public interface EngineManager
Modifier and Type | Method and Description |
---|---|
void |
applyAutocomplete(Article article,
java.lang.String title,
boolean isDifferentArticle) |
void |
applyFullTextSearchLink(java.lang.String term)
Fired when applying a full text search.
|
void |
back()
Perform a back action.
|
void |
create()
Create the engine manager.
|
ContentViewer |
getContentViewer()
Return the content viewer.
|
java.net.URL |
getPage()
Return the current page.
|
javax.swing.JComponent |
getScrollPane()
Return the scroll pane.
|
default boolean |
goTo(Article article,
java.lang.String anchor)
Go to an anchor in a specific article.
|
boolean |
goTo(Article article,
java.lang.String anchor,
boolean allowReload)
Go to an anchor in a specific article.
|
boolean |
goTo(java.net.URL url,
java.lang.String anchor)
Go to an anchor in a specific URL.
|
boolean |
loadHTML(java.net.URL url)
We show embedded HTML content in a JFXPanel because Swing may not render correctly HTML content by default (for example javadoc).
|
void |
pageLoaded(java.net.URL url)
Called when a page is loaded.
|
java.lang.String |
scroll(java.lang.String desc,
boolean isNewPage)
Scroll to a reference on a page.
|
void |
setContentViewer(ContentViewer viewer)
Set the ContentViewer
|
boolean |
setPage(java.net.URL url)
Set the current page.
|
void |
update()
Update the engine manager.
|
ContentViewer getContentViewer()
void back()
default boolean goTo(Article article, java.lang.String anchor)
article
- the articleanchor
- the anchorboolean goTo(Article article, java.lang.String anchor, boolean allowReload)
article
- the articleanchor
- the anchorallowReload
- true if reloading pages is allowedboolean goTo(java.net.URL url, java.lang.String anchor)
url
- the URLanchor
- the anchorvoid applyFullTextSearchLink(java.lang.String term)
term
- the term to search forjava.net.URL getPage()
boolean setPage(java.net.URL url)
url
- the current page URLvoid create()
void update()
void setContentViewer(ContentViewer viewer)
viewer
- the ContentViewer.javax.swing.JComponent getScrollPane()
boolean loadHTML(java.net.URL url)
url
- the URLvoid applyAutocomplete(Article article, java.lang.String title, boolean isDifferentArticle)
void pageLoaded(java.net.URL url)
url
- the page URLjava.lang.String scroll(java.lang.String desc, boolean isNewPage)
desc
- the referenceisNewPage
- if the reference is in a new pageCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence