|
Oracle Help for Java API Reference Release 4.2.7.0.0 B12198-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.help.library.helpset.HelpSet
A robust implementation of the Book interface that supports the Oracle Help for Java extensions of the JavaHelp standard file format. This file format is described in detail in the OHJ 3.2 File Formats Document.
Field Summary | |
static java.lang.String |
PARAM_CLASS
|
static java.lang.String |
PARAM_DEFAULT
|
static java.lang.String |
PARAM_ENGINE
|
static java.lang.String |
PARAM_ENGINEPARAMS
|
static java.lang.String |
PARAM_ID
|
static java.lang.String |
PARAM_IMAGE
|
static java.lang.String |
PARAM_LOCATION
|
static java.lang.String |
PARAM_TYPE
|
static java.lang.String |
PARAM_URL
|
static java.lang.String |
TAG_BG
|
static java.lang.String |
TAG_DATA
|
static java.lang.String |
TAG_HEIGHT
|
static java.lang.String |
TAG_HELPSET
|
static java.lang.String |
TAG_HOMEID
|
static java.lang.String |
TAG_KEY
|
static java.lang.String |
TAG_LABEL
|
static java.lang.String |
TAG_LINKFG
|
static java.lang.String |
TAG_LINKREF
|
static java.lang.String |
TAG_LINKS
|
static java.lang.String |
TAG_MAP
|
static java.lang.String |
TAG_MAPREF
|
static java.lang.String |
TAG_MERGETYPE
|
static java.lang.String |
TAG_NAME
|
static java.lang.String |
TAG_SUBHELPSET
|
static java.lang.String |
TAG_TEXTFG
|
static java.lang.String |
TAG_TITLE
|
static java.lang.String |
TAG_TOOLBAR
|
static java.lang.String |
TAG_TYPE
|
static java.lang.String |
TAG_VIEW
|
static java.lang.String |
TAG_WIDTH
|
static java.lang.String |
TAG_WINTYPE
|
static java.lang.String |
TAG_X
|
static java.lang.String |
TAG_Y
|
Constructor Summary | |
HelpSet()
Create an empty HelpSet Note: Most clients will use the HelpSet() constructors that load help content from an existing helpset file. |
|
HelpSet(java.lang.Class pathClass,
java.lang.String pathExtension)
Create a HelpSet from the helpset file at the specified location. |
|
HelpSet(java.lang.Class pathClass,
java.lang.String pathExtension,
java.lang.String helpDefaultEncoding)
Create a HelpSet from the helpset file at the specified location using the specified encoding. |
|
HelpSet(java.net.URL fileURL)
Create a HelpSet from the helpset file at the specified location. |
|
HelpSet(java.net.URL fileURL,
java.lang.String helpDefaultEncoding)
Create a HelpSet from the helpset file at the specified location using the specified encoding. |
Method Summary | |
oracle.help.common.View[] |
getAllViews()
Get all of the View objects defined in this book (views of all types). |
oracle.help.common.AssociativeLink[] |
getAssociativeLinks()
Get the AssociativeLink objects defined in this book. |
java.lang.String |
getBookTitle()
Get the title of the Book |
java.lang.String |
getHelpSetEncoding()
Gets the encoding of the HelpSet, null if using the LocaleUtils default encoding |
oracle.help.library.helpset.HelpSetSection[] |
getHelpSetSections()
|
java.lang.String |
getHomeID()
Gets the HomeID for the HelpSet. |
oracle.help.common.View[] |
getViewsByType(java.lang.String type)
Get the View objects defined in this book of the specified type. |
oracle.help.common.WindowType[] |
getWindowTypes()
Get the WindowType objects defined in this book. |
java.net.URL |
mapIDToURL(java.lang.String id)
Get the URL the Book mapped to the given ID. |
java.lang.String |
mapURLToWindowTypeName(java.net.URL url)
Get the name of the WindowType this Book has mapped to the given URL. |
void |
setHomeID(java.lang.String homeID)
Sets the HomeID for the HelpSet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TAG_HELPSET
public static final java.lang.String TAG_TITLE
public static final java.lang.String TAG_HOMEID
public static final java.lang.String TAG_SUBHELPSET
public static final java.lang.String TAG_WINTYPE
public static final java.lang.String TAG_HEIGHT
public static final java.lang.String TAG_WIDTH
public static final java.lang.String TAG_X
public static final java.lang.String TAG_Y
public static final java.lang.String TAG_TEXTFG
public static final java.lang.String TAG_LINKFG
public static final java.lang.String TAG_BG
public static final java.lang.String TAG_TOOLBAR
public static final java.lang.String TAG_LINKS
public static final java.lang.String TAG_MAP
public static final java.lang.String TAG_VIEW
public static final java.lang.String TAG_DATA
public static final java.lang.String TAG_KEY
public static final java.lang.String TAG_NAME
public static final java.lang.String TAG_TYPE
public static final java.lang.String TAG_MERGETYPE
public static final java.lang.String TAG_LABEL
public static final java.lang.String TAG_MAPREF
public static final java.lang.String TAG_LINKREF
public static final java.lang.String PARAM_ID
public static final java.lang.String PARAM_URL
public static final java.lang.String PARAM_CLASS
public static final java.lang.String PARAM_TYPE
public static final java.lang.String PARAM_DEFAULT
public static final java.lang.String PARAM_ENGINE
public static final java.lang.String PARAM_ENGINEPARAMS
public static final java.lang.String PARAM_LOCATION
public static final java.lang.String PARAM_IMAGE
Constructor Detail |
public HelpSet()
public HelpSet(java.lang.Class pathClass, java.lang.String pathExtension) throws HelpSetParseException
baseClass
- A Java class. The HelpSet uses
the location of this class to determine the location
of your helpset file. The dirPathExt is appended to
the absolute path to the directory containing the
Java class. The resulting path should be the path
to your helpset file.dirpathExt
- The dirPathExt is a path appended to
the absolute path to the directory containing the
baseClass. The resulting path should be the path
to your helpset file.HelpSetParseException
- if the helpset cannot be parsedpublic HelpSet(java.lang.Class pathClass, java.lang.String pathExtension, java.lang.String helpDefaultEncoding) throws HelpSetParseException
baseClass
- A Java class. The HelpSet uses
the location of this class to determine the location
of your helpset file. The dirPathExt is appended to
the absolute path to the directory containing the
Java class. The resulting path should be the path
to your helpset file.dirpathExt
- The dirPathExt is a path appended to
the absolute path to the directory containing the
baseClass. The resulting path should be the path
to your helpset file.helpDefaultEncoding
- HelpSetParseException
- if the helpset cannot be parsedpublic HelpSet(java.net.URL fileURL) throws HelpSetParseException
fileURL
- A URL to the OHJ helpset file.HelpSetParseException
- if the helpset cannot be parsedpublic HelpSet(java.net.URL fileURL, java.lang.String helpDefaultEncoding) throws HelpSetParseException
fileURL
- A URL to the OHJ helpset file.helpDefaultEncoding
- HelpSetParseException
- if the helpset cannot be parsedMethod Detail |
public java.net.URL mapIDToURL(java.lang.String id)
Book
mapIDToURL
in interface Book
oracle.help.library.Book
id
- The topicID.public java.lang.String mapURLToWindowTypeName(java.net.URL url)
mapURLToWindowTypeName
in interface Book
url
- The URL to map.public java.lang.String getBookTitle()
Book
getBookTitle
in interface Book
public oracle.help.common.View[] getViewsByType(java.lang.String type)
Book
getViewsByType
in interface Book
oracle.help.library.Book
type
- The type identifier of the
views to retrievepublic oracle.help.common.View[] getAllViews()
Book
getAllViews
in interface Book
public oracle.help.common.WindowType[] getWindowTypes()
Book
getWindowTypes
in interface Book
public oracle.help.common.AssociativeLink[] getAssociativeLinks()
Book
getAssociativeLinks
in interface Book
public oracle.help.library.helpset.HelpSetSection[] getHelpSetSections()
public void setHomeID(java.lang.String homeID)
homeID
- The HomeID to setpublic java.lang.String getHomeID()
homeID
- The HomeID to setpublic java.lang.String getHelpSetEncoding()
homeID
- The HomeID to set
|
HELP ${project.version} | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |