All Packages Class Hierarchy This Package Previous Next Index
Class jHelp.htmlHelpIndexFrame
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----jHelp.htmlHelpIndexFrame
- public class htmlHelpIndexFrame
- extends Frame
This class provides a basic pop-up index frame that contains a navigable
list of indexed items, and optionally word search and query panels.
If constructed with only the name of an index file, then the search and
query panels are not created. If a word-list file (generated by htmlHelpIndexBuilder)
is included in the constructor, then the index panel and search and query panels
are presented in the frame using a tabbed-folders style of UI.
The source of the index and the word list are compiled using the helper
application jHelpIndexBuilder. The sequence for implementing an index frame
is as follows:
- Construct an htmlHelpFrame or htmlHelpPanel object.
- Construct an htmlHelpIndexFrame object, passing the instance of
the help frame or panel to it in the constructor.
- If you are using htmlHelpFrame, use htmlHelpFrame.setHelpIndex to
enable the "Index" button, and assign the htmlHelpIndexFrame object to
the htmlHelpFrame object.
Note that if you are using an htmlHelpPanel, you will be responsible for
implementing an "Index" button to show the index frame in your UI.
-
htmlHelpIndexFrame(String, String, Object, Object)
- The most basic index frame constructor, does not provide a word list and uses the
default Locale of the machine.
-
htmlHelpIndexFrame(String, String, Object, Object, Locale)
- This constructor does not provide a word list and uses the
specified Locale.
-
htmlHelpIndexFrame(String, String, Object, Object, String)
- This constructor does not provide a word list, uses the default Locale,
and specifies a zip or jar containing the index file.
-
htmlHelpIndexFrame(String, String, String, Object, Object)
- This constructor, provides both an index and a word list and uses the
default Locale of the machine.
-
htmlHelpIndexFrame(String, String, String, Object, Object, Locale)
- This constructor, provides both an index and a word list and uses the
specified Locale.
-
htmlHelpIndexFrame(String, String, String, Object, Object, String)
- This constructor provides both an index file and a word list, uses the default Locale,
and specifies a zip or jar containing the index and word files.
-
htmlHelpIndexFrame(String, String, String, Object, Object, String, Locale)
- This constructor provides both an index file and a word list, uses the specified Locale,
and specifies a zip or jar containing the index and word files.
-
setLocation(int, int)
- Set the index frame's location.
-
setLocation(Point)
- Set the index frame's location.
-
setSize(Dimension)
- Set the size of the index frame.
-
setSize(int, int)
- Set the size of the index frame.
-
setVisible(boolean)
- Display the index frame, at either the default size and location, or at
a previously set size and location.
-
show()
- Display the index frame, at either the default size and location, or at
a previously set size and location.
htmlHelpIndexFrame
public htmlHelpIndexFrame(String title,
String filename,
Object instance,
Object hf)
- The most basic index frame constructor, does not provide a word list and uses the
default Locale of the machine.
- Parameters:
- title - the caption to appear in the Frame's title bar
- filename - the name of the compiled index file (with path)
- instance - either an applet, or application frame instance (determines
how files ar loaded.)
- hf - an instance of either jHelp.htmlHelpFrame or jHelp.htmlHelpPanel that
will be associated with this index frame.
htmlHelpIndexFrame
public htmlHelpIndexFrame(String title,
String filename,
Object instance,
Object hf,
Locale locale)
- This constructor does not provide a word list and uses the
specified Locale.
- Parameters:
- title - the caption to appear in the Frame's title bar
- filename - the name of the compiled index file (with path)
- instance - either an applet, or application frame instance (determines
how files ar loaded.)
- hf - an instance of either jHelp.htmlHelpFrame or jHelp.htmlHelpPanel that
will be associated with this index frame.
- locale - a specific Locale object
htmlHelpIndexFrame
public htmlHelpIndexFrame(String title,
String filename,
Object instance,
Object hf,
String zipfile)
- This constructor does not provide a word list, uses the default Locale,
and specifies a zip or jar containing the index file.
- Parameters:
- title - the caption to appear in the Frame's title bar
- filename - the name of the compiled index file (with path), must be a zip entry of the
named zip file
- instance - either an applet, or application frame instance (determines
how files ar loaded.)
- hf - an instance of either jHelp.htmlHelpFrame or jHelp.htmlHelpPanel that
will be associated with this index frame.
- zipfile - the name of a zip or jar containing the requested index file
htmlHelpIndexFrame
public htmlHelpIndexFrame(String title,
String filename,
String filename2,
Object instance,
Object hf)
- This constructor, provides both an index and a word list and uses the
default Locale of the machine.
- Parameters:
- title - the caption to appear in the Frame's title bar
- filename - the name of the compiled index file (with path)
- filename2 - the name of the compiled word-list file (with path)
- instance - either an applet, or application frame instance (determines
how files ar loaded.)
- hf - an instance of either jHelp.htmlHelpFrame or jHelp.htmlHelpPanel that
will be associated with this index frame.
htmlHelpIndexFrame
public htmlHelpIndexFrame(String title,
String filename,
String filename2,
Object instance,
Object hf,
Locale locale)
- This constructor, provides both an index and a word list and uses the
specified Locale.
- Parameters:
- title - the caption to appear in the Frame's title bar
- filename - the name of the compiled index file (with path)
- filename2 - the name of the compiled word-list file (with path)
- instance - either an applet, or application frame instance (determines
how files ar loaded.)
- hf - an instance of either jHelp.htmlHelpFrame or jHelp.htmlHelpPanel that
will be associated with this index frame.
- locale - a specific Locale object
htmlHelpIndexFrame
public htmlHelpIndexFrame(String title,
String filename,
String filename2,
Object instance,
Object hf,
String zipfile)
- This constructor provides both an index file and a word list, uses the default Locale,
and specifies a zip or jar containing the index and word files.
- Parameters:
- title - the caption to appear in the Frame's title bar
- filename - the name of the compiled index file (with path), must be a zip entry of the
named zip file
- filename2 - the name of the compiled word-list file (with path), must be a zip entry of the
named zip file
- instance - either an applet, or application frame instance (determines
how files ar loaded.)
- hf - an instance of either jHelp.htmlHelpFrame or jHelp.htmlHelpPanel that
will be associated with this index frame.
- zipfile - the name of a zip or jar containing the requested index file
htmlHelpIndexFrame
public htmlHelpIndexFrame(String title,
String filename,
String filename2,
Object instance,
Object hf,
String zipfile,
Locale locale)
- This constructor provides both an index file and a word list, uses the specified Locale,
and specifies a zip or jar containing the index and word files.
- Parameters:
- title - the caption to appear in the Frame's title bar
- filename - the name of the compiled index file (with path), must be a zip entry of the
named zip file
- filename2 - the name of the compiled word-list file (with path), must be a zip entry of the
named zip file
- instance - either an applet, or application frame instance (determines
how files ar loaded.)
- hf - an instance of either jHelp.htmlHelpFrame or jHelp.htmlHelpPanel that
will be associated with this index frame.
- zipfile - the name of a zip or jar containing the requested index file
- locale - a specific Locale object
setSize
public void setSize(int width,
int height)
- Set the size of the index frame. By default, it sets itself to 320x400.
- Parameters:
- width - the width of the frame
- height - the height of the frame
- Overrides:
- setSize in class Component
setSize
public void setSize(Dimension dim)
- Set the size of the index frame. By default, it sets itself to 320x400.
- Parameters:
- dim - the Dimension that specified the width and height for the frame
- Overrides:
- setSize in class Component
setLocation
public void setLocation(int x,
int y)
- Set the index frame's location. By default, it sets itself to fit into the top
left corner of the display, with a little clearance from the edges.
- Parameters:
- x - - the x coordinate of the frame origin
- y - - the y coordinate of the frame origin
- Overrides:
- setLocation in class Component
setLocation
public void setLocation(Point p)
- Set the index frame's location. By default, it sets itself to fit into the top
left corner of the display, with a little clearance from the edges.
- Parameters:
- p - - the origin point of the index frame
- Overrides:
- setLocation in class Component
show
public void show()
- Display the index frame, at either the default size and location, or at
a previously set size and location.
- Overrides:
- show in class Window
setVisible
public void setVisible(boolean state)
- Display the index frame, at either the default size and location, or at
a previously set size and location.
- Overrides:
- setVisible in class Component
All Packages Class Hierarchy This Package Previous Next Index