C
- the help component ClassW
- the help dialog window Classpublic interface HelpContentViewer<C,W>
ArticlesModel
by calling the 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)
methodgetHelpComponent()
and add it in your GUIgetHelpWindow(java.lang.Object, java.lang.String, int, int)
and
add it in your GUIregisterContextHelp(java.lang.String, java.lang.Object)
method.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HELP_CLIENT_PROPERTY
The docGenerator Help client property, used for the context sensitive Help.
|
static java.lang.String |
ICON_BACKWARD
"backward": The key for the backward icon.
|
static java.lang.String |
ICON_FORWARD
"forward": The key for the forward icon.
|
static java.lang.String |
ICON_GLOSSARY
"glossary": The key for the glossary icon.
|
static java.lang.String |
ICON_HOME
"home": The key for the home icon.
|
Modifier and Type | Method and Description |
---|---|
C |
createContextHelpButton()
Create a button to start a context senstive help.
|
ArticlesModel |
getArticlesModel()
Return the articles model.
|
AutoComplete |
getAutoComplete()
Return the AutoComplete element.
|
Article |
getCurrentArticle()
Return the current article.
|
java.lang.String |
getCurrentTitle()
Return the current title.
|
C |
getHelpComponent()
Return the component which shows the help GUI.
|
W |
getHelpWindow(W owner,
java.lang.String title,
int width,
int height)
Return the dialog window which shows the help GUI.
|
NavigationHistory |
getHistory()
Return the navigation history.
|
java.util.Locale |
getLocale()
Return the Locale to use for the GUI.
|
Localization |
getLocalization()
Return the Localization to use for the GUI.
|
default java.util.Set<java.lang.String> |
getStyleSheetThemes()
Return the set of styleSheet themes ids.
|
default boolean |
hasStyleSheetTheme()
Return true if there is a stylesheet theme.
|
void |
installModel(ArticlesModel model)
Install the Help content in the HelpContentViewer.
|
boolean |
registerContextHelp(java.lang.String helpID,
C component)
Add a context sensitive help to a component.
|
void |
registerContextHelpWindow(W window)
Add a window managed by the context help.
|
void |
reloadPage()
Reload the current page.
|
default void |
resetStyleSheetTheme()
Reset the stylesheet theme.
|
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 |
setContextHelpIcon(java.net.URL url)
Set the URL for the icon specifying the image for the context sensitive help.
|
void |
setContextHelpPointerImage(java.net.URL url)
Set the URL for the image for the context sensitive pointer shape.
|
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.
|
default void |
setLocale(java.lang.String 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.
|
default boolean |
setStyleSheetTheme(java.lang.String id)
Set the current stylesheet theme to a specified theme id.
|
void |
showHelpDialog(C relativeTo)
Show the help dialog relative to a component.
|
void |
showHelpDialog(int x,
int y)
Show the help dialog.
|
void |
showHelpTopic(java.lang.String helpID,
C relativeTo)
Show the help topic for a specified id.
|
static final java.lang.String HELP_CLIENT_PROPERTY
static final java.lang.String ICON_GLOSSARY
static final java.lang.String ICON_HOME
static final java.lang.String ICON_FORWARD
static final java.lang.String ICON_BACKWARD
void installModel(ArticlesModel model) throws java.io.IOException
model
- the ArticlesModeljava.io.IOException
ArticlesModel getArticlesModel()
Article getCurrentArticle()
java.lang.String getCurrentTitle()
void setDividerLocation(double location)
location
- the locationvoid setSearchTextHint(java.lang.String hintText)
hintText
- the text hintvoid setFullSearchText(java.lang.String text)
text
- the full text search textvoid setSearchTextIcon(java.net.URL url)
url
- the URLvoid setExpandedChapterIcon(java.net.URL url)
url
- the URLvoid setClosedChapterIcon(java.net.URL url)
url
- the URLvoid setContextHelpIcon(java.net.URL url)
url
- the URLvoid setContextHelpPointerImage(java.net.URL url)
url
- the URLvoid setArticleIcon(java.net.URL url)
url
- the URLvoid setIcon(java.lang.String buttonID, java.net.URL url)
ICON_HOME
for the home buttonICON_FORWARD
for the forward buttonICON_BACKWARD
for the backward buttonICON_GLOSSARY
for the glossary buttonbuttonID
- the button idurl
- the URLNavigationHistory getHistory()
C getHelpComponent()
W getHelpWindow(W owner, java.lang.String title, int width, int height)
owner
- the owner windowtitle
- the dialog window titlewidth
- the dialog widthheight
- the dialog heightAutoComplete getAutoComplete()
boolean registerContextHelp(java.lang.String helpID, C component)
helpID
- the helpRef idcomponent
- the componentC createContextHelpButton()
void registerContextHelpWindow(W window)
window
- the windowvoid showHelpDialog(C relativeTo)
relativeTo
- the component from which the help Window must be relative to (can be null)void showHelpDialog(int x, int y)
x
- the x position on screeny
- the y position on screenvoid showHelpTopic(java.lang.String helpID, C relativeTo)
helpID
- the help idrelativeTo
- the component from which the help Window must be relative to (can be null)void setLocale(java.util.Locale locale)
locale
- the Localedefault void setLocale(java.lang.String locale)
locale
- the LocaleLocalization getLocalization()
java.util.Locale getLocale()
void reloadPage()
default boolean hasStyleSheetTheme()
default java.util.Set<java.lang.String> getStyleSheetThemes()
default void resetStyleSheetTheme()
default boolean setStyleSheetTheme(java.lang.String id)
id
- the theme idCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence