Class JtvHelpWindow
public class JtvHelpWindow
extends JtvWindow
A centred, non-numbered help window that hosts a JtvHelpViewer.
JtvHelpWindow is a standard JtvWindow descendant that wraps a JtvHelpViewer together with keyboard-driven horizontal and vertical scroll bars. It is the top-level container shown when context-sensitive help is requested by the application.
The window is:
- Titled "Help".
- Initially sized 50×18 characters and centred on screen
(
ofCentered). - Numbered with
wnNoNumberso no window number appears in the title bar.
Colour palette
The seven-entry palette cpHelpWindow overrides the default window
palette to use help-specific colours for the frame, title, drag bar,
close button, resize corner, scroll bars, and scroll arrows.
org.viktor44.jtvision.help.JtvHelpWindow
Summary
Constructors
| Visibility | Signature |
|---|---|
| public | JtvHelpWindow(JtvHelpFile hFile, int context) |
Fields
| Modifiers | Field name | Type |
|---|---|---|
| private static final | helpWinTitle | String |
| private static final | cpHelpWindow | org.viktor44.jtvision.core.JtvPalette |
Methods
| Modifiers | Method signature | Return type |
|---|---|---|
| public | getPalette() | org.viktor44.jtvision.core.JtvPalette |
Constructors
JtvHelpWindow(JtvHelpFile hFile, int context)
Constructs the help window, creates keyboard-controlled scroll bars,
and inserts a JtvHelpViewer that immediately displays the topic
for context.
The viewer bounds are inset two columns and one row from the window interior to leave room for the frame.
Parameters
hFile- the help file to load topics from; may benull, in which case an empty topic is showncontext- the initial help-context ID to display in the viewer
Fields
String helpWinTitle
The title bar text of the help window.
org.viktor44.jtvision.core.JtvPalette cpHelpWindow
Default colour palette for the help window frame and controls:
0x13— frame (passive).0x13— title.0x15— frame (active).0x18— drag bar.0x17— close button.0x13— scroll bar page area.0x14— scroll bar arrows.
Methods
getPalette()
Overrides:
getPalette() in org.viktor44.jtvision.views.JtvWindow
Returns the help window's colour palette cpHelpWindow,
overriding the default window palette with help-specific colours.
Returns
the help window's colour palette