public static class HelpSet.DefaultHelpSetFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HelpSetFactory.HelpAction
Internal storage of HelpAction defined in a Presentaion
|
Constructor and Description |
---|
DefaultHelpSetFactory() |
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration |
listMessages()
Enumerates all the error messages.
|
HelpSet |
parsingEnded(HelpSet hs)
Parsing has ended.
|
void |
parsingStarted(java.net.URL source)
Parsing starts.
|
void |
processDOCTYPE(java.lang.String root,
java.lang.String publicID,
java.lang.String systemID)
Process a DOCTYPE
|
void |
processHomeID(HelpSet hs,
java.lang.String value)
A HomeID is found.
|
void |
processMapRef(HelpSet hs,
java.util.Hashtable attributes)
process a <mapref>
|
void |
processPI(HelpSet hs,
java.lang.String target,
java.lang.String data)
Processes a PI
|
void |
processPresentation(HelpSet hs,
java.lang.String name,
boolean defaultPresentation,
boolean displayViews,
boolean displayViewImages,
java.awt.Dimension size,
java.awt.Point location,
java.lang.String title,
java.lang.String imageID,
boolean toolbar,
java.util.Vector helpActions)
Creates a HelpSet.Presentation from the data.
|
void |
processSubHelpSet(HelpSet hs,
java.util.Hashtable attributes)
Called when a sub-HelpSet is found.
|
void |
processTitle(HelpSet hs,
java.lang.String value)
A title is found
|
void |
processView(HelpSet hs,
java.lang.String name,
java.lang.String label,
java.lang.String type,
java.util.Hashtable viewAttributes,
java.lang.String data,
java.util.Hashtable dataAttributes,
java.util.Locale locale)
Creates a NavigatorView from the data.
|
void |
reportMessage(java.lang.String msg,
boolean validParse)
Reports an error message.
|
public void parsingStarted(java.net.URL source)
public void processDOCTYPE(java.lang.String root, java.lang.String publicID, java.lang.String systemID)
publicID
- the document. If null or is not valid a parsingError
will be generated.root
- The root tag of the documentsystemID
- SystemID from the DOCTYPEpublic void processPI(HelpSet hs, java.lang.String target, java.lang.String data)
target
- The target of the PIdata
- A String for the data in the PIpublic void processTitle(HelpSet hs, java.lang.String value)
hs
- The Helpsetvalue
- The title of the HelpSetpublic void processHomeID(HelpSet hs, java.lang.String value)
hs
- The Helpsetvalue
- The home ID for the helpsetpublic void processMapRef(HelpSet hs, java.util.Hashtable attributes)
Spec
- to the URLAttributes
- for the tagpublic void processView(HelpSet hs, java.lang.String name, java.lang.String label, java.lang.String type, java.util.Hashtable viewAttributes, java.lang.String data, java.util.Hashtable dataAttributes, java.util.Locale locale)
hs
- The HelpSetpublic void processPresentation(HelpSet hs, java.lang.String name, boolean defaultPresentation, boolean displayViews, boolean displayViewImages, java.awt.Dimension size, java.awt.Point location, java.lang.String title, java.lang.String imageID, boolean toolbar, java.util.Vector helpActions)
hs
- The HelpSetname
- Name of the PresentationdisplayViews
- Display the Views in the PresentationdisplayViewImages
- Display the Views Images in the Presentationsize
- Size of the Presentationlocation
- Location of the Presentationtitle
- Title for the presentationtoolbar
- Is there a custom toolbar for the presentationhelpActions
- A Vector of HelpAction(s).public void processSubHelpSet(HelpSet hs, java.util.Hashtable attributes)
public void reportMessage(java.lang.String msg, boolean validParse)
msg
- The message to report.validParse
- Whether the on-going parse should return a valid object.public java.util.Enumeration listMessages()