C
- the help component ClassW
- the help dialog window Classpublic abstract class AbstractHelpContentViewer<C,W> extends java.lang.Object implements HelpContentViewer<C,W>
ArticlesModel
by calling the HelpContentViewer.installModel(org.docgene.help.model.ArticlesModel)
method. Note that this can also be performed directly through the JavaHelpFactory
by the
JavaHelpFactory.install(org.docgene.help.HelpContentViewer)
methodHelpContentViewer.getHelpComponent()
and add it in your GUIHelpContentViewer.getHelpWindow(java.lang.Object, java.lang.String, int, int)
and
add it in your GUIHelpContentViewer.registerContextHelp(java.lang.String, java.lang.Object)
method.Modifier and Type | Field and Description |
---|---|
protected java.net.URL |
articleIcon
The icon for articles.
|
protected java.net.URL |
backwardIcon
The icon for the backward button.
|
protected java.net.URL |
closedChapterIcon
The icon for closed chapters.
|
protected Article |
currentArticle
The current article.
|
protected java.lang.String |
currentTitle
The current title.
|
protected java.net.URL |
forwardIcon
The icon for the forward button.
|
protected java.lang.String |
fullTextSearchText
The full text search text.
|
protected java.net.URL |
glossaryIcon
The icon for the glossary.
|
protected java.lang.String |
hintText
The search hint text.
|
protected NavigationHistory |
history
The navigation history.
|
protected java.net.URL |
homeIcon
The icon for the home page.
|
protected Localization |
localization
The Locale.
|
protected double |
location
The splitpane location of the separator between the tree and the content of the pages.
|
protected ArticlesModel |
model
The articles model.
|
protected java.net.URL |
openChapterIcon
The icon for opened chapters.
|
protected HistoryElement |
previousPage
The previous page.
|
protected java.net.URL |
searchIcon
The icon for the Search.
|
HELP_CLIENT_PROPERTY, ICON_BACKWARD, ICON_FORWARD, ICON_GLOSSARY, ICON_HOME
Constructor and Description |
---|
AbstractHelpContentViewer() |
Modifier and Type | Method and Description |
---|---|
abstract HistoryElement |
back()
Perform a back action in the history.
|
abstract HistoryElement |
forward()
Perform a forward action in the history.
|
Article |
getCurrentArticle()
Return the current article.
|
java.lang.String |
getCurrentTitle()
Return the current title.
|
protected java.lang.String |
getElementName(java.lang.String key)
Return the text name for an element in the GUI (depending on the Locale).
|
java.util.Locale |
getLocale()
Return the Locale to use for the GUI. it will be the English Locale by default.
|
Localization |
getLocalization()
Return the Localization to use for the GUI.
|
NavigationHistory |
getNavigationHistory()
Return the navigation history.
|
HistoryElement |
getPreviousPage()
Return the previous page in the history.
|
abstract void |
goTo(HistoryElement element)
Go to an element.
|
void |
setArticleIcon(java.net.URL url)
Set the URL for the icon specifying the image for articles in the tree..
|
void |
setClosedChapterIcon(java.net.URL url)
Set the URL for the icon specifying the image for closed chapters.
|
void |
setDividerLocation(double location)
Set the divider location between the articles tree and the articles content.
|
void |
setExpandedChapterIcon(java.net.URL url)
Set the URL for the icon specifying the image for expanded chapters.
|
void |
setFullSearchText(java.lang.String text)
Set the full text search text.
|
void |
setIcon(java.lang.String buttonID,
java.net.URL url)
Set the URL for the icon for a button.
|
void |
setLocale(java.util.Locale locale)
Set the Locale to use for the GUI.
|
void |
setSearchTextHint(java.lang.String hintText)
Set the text hint to show in the search box.
|
void |
setSearchTextIcon(java.net.URL url)
Set the URL for the icon used in the search text field.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createContextHelpButton, getArticlesModel, getAutoComplete, getHelpComponent, getHelpWindow, getHistory, getStyleSheetThemes, hasStyleSheetTheme, installModel, registerContextHelp, registerContextHelpWindow, reloadPage, resetStyleSheetTheme, setContextHelpIcon, setContextHelpPointerImage, setLocale, setStyleSheetTheme, showHelpDialog, showHelpDialog, showHelpTopic
protected ArticlesModel model
protected Article currentArticle
protected java.lang.String currentTitle
protected java.lang.String hintText
protected java.lang.String fullTextSearchText
protected double location
protected final NavigationHistory history
protected HistoryElement previousPage
protected Localization localization
protected java.net.URL openChapterIcon
protected java.net.URL closedChapterIcon
protected java.net.URL articleIcon
protected java.net.URL searchIcon
protected java.net.URL glossaryIcon
protected java.net.URL homeIcon
protected java.net.URL forwardIcon
protected java.net.URL backwardIcon
public Article getCurrentArticle()
getCurrentArticle
in interface HelpContentViewer<C,W>
public java.lang.String getCurrentTitle()
getCurrentTitle
in interface HelpContentViewer<C,W>
public void setDividerLocation(double location)
setDividerLocation
in interface HelpContentViewer<C,W>
location
- the locationpublic void setArticleIcon(java.net.URL url)
setArticleIcon
in interface HelpContentViewer<C,W>
url
- the URLpublic void setExpandedChapterIcon(java.net.URL url)
setExpandedChapterIcon
in interface HelpContentViewer<C,W>
url
- the URLpublic void setClosedChapterIcon(java.net.URL url)
setClosedChapterIcon
in interface HelpContentViewer<C,W>
url
- the URLpublic void setIcon(java.lang.String buttonID, java.net.URL url)
HelpContentViewer.ICON_HOME
for the home buttonHelpContentViewer.ICON_FORWARD
for the forward buttonHelpContentViewer.ICON_BACKWARD
for the backward buttonHelpContentViewer.ICON_GLOSSARY
for the glossary buttonsetIcon
in interface HelpContentViewer<C,W>
buttonID
- the button idurl
- the URLpublic void setSearchTextIcon(java.net.URL url)
setSearchTextIcon
in interface HelpContentViewer<C,W>
url
- the URLpublic void setSearchTextHint(java.lang.String hintText)
setSearchTextHint
in interface HelpContentViewer<C,W>
hintText
- the text hintpublic void setFullSearchText(java.lang.String text)
setFullSearchText
in interface HelpContentViewer<C,W>
text
- the full text search textpublic NavigationHistory getNavigationHistory()
public HistoryElement getPreviousPage()
public abstract HistoryElement back()
public abstract HistoryElement forward()
public abstract void goTo(HistoryElement element)
element
- the elementpublic void setLocale(java.util.Locale locale)
setLocale
in interface HelpContentViewer<C,W>
locale
- the Localepublic java.util.Locale getLocale()
getLocale
in interface HelpContentViewer<C,W>
public Localization getLocalization()
getLocalization
in interface HelpContentViewer<C,W>
protected java.lang.String getElementName(java.lang.String key)
key
- the element keyCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence