|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.help.NFHelpSystem
NetFactor implementation of the HelpSystem interface.
Supported API: true
Extendable: false
Field Summary | |
private AppletContext |
appletContext
|
(package private) PropertyChangeSupport |
changes
|
private String |
contentsURL
|
private URL |
documentBase
|
private String |
helpURL
|
private String |
name
|
private ResourceBundle |
resources
|
private String |
whereToShowDocument
|
Fields inherited from interface wt.help.HelpSystem |
APPLET_CONTEXT, CONTENTS_KEY, CONTENTS_URL, DESCRIPTION_KEY, DOCUMENT_BASE, HELP_KEY, HELP_URL, KEY_DELIMITER, MISSING_RESOURCE, NAME, RESOURCES, SHOW_IN_CURRENT_FRAME, SHOW_IN_PARENT_FRAME, SHOW_IN_SEPARATE_FRAME, SHOW_IN_TOP_FRAME, TIP_KEY, WHERE_TO_SHOW_DOCUMENT |
Constructor Summary | |
NFHelpSystem()
Default constructor. |
|
NFHelpSystem(String name,
AppletContext appletContext,
URL documentBase,
String whereToShowDocument,
ResourceBundle resources)
Complete constructor which initializes all necessary properties. |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add property change listener. |
protected String |
formatResourceKeyAlg1(String type,
String system,
String context,
String topic)
|
protected String |
formatResourceKeyAlg2(String[] args,
int count)
|
AppletContext |
getAppletContext()
Get the applet context for this HelpSystem. |
String |
getContentsURL()
The current help contents help URL. |
URL |
getDocumentBase()
Get the base url used to show help urls. |
String |
getHelpURL()
The current help url. |
String |
getName()
Get the HelpSystem name. |
ResourceBundle |
getResources()
Get the resource bundle for help. |
protected String |
getResourceString(String type,
String system,
String context,
String topic)
|
protected String |
getResourceStringAlg1(String type,
String system,
String context,
String topic)
|
protected String |
getResourceStringAlg2(String[] args,
int count)
The second algorithm for finding a help resource entry. |
String |
getToolDescription(String contextId,
String toolId)
The tool description for the component over which the mouse is positioned. |
String |
getToolTipText(String contextId,
String toolId)
The tool tip for the component over which the mouse is positioned. |
String |
getWhereToShowDocument()
Get property whereToShowDocument. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove property change listener. |
void |
setAppletContext(AppletContext newValue)
Set the applet context for this HelpSystem. |
protected void |
setContentsURL(String newValue)
|
void |
setDocumentBase(URL newValue)
Set the base url used to show help urls. |
protected void |
setHelpURL(String newValue)
|
void |
setName(String newValue)
Set help system name. |
void |
setResources(ResourceBundle newValue)
Set the resource bundle for help. |
void |
setWhereToShowDocument(String newValue)
Set String used to indicate which frame help should be displayed in. |
void |
showContents(String contextId)
Show help contents for the context id. |
void |
showFind(String contextId)
|
void |
showFind(String contextId,
String keyword)
|
void |
showHelp(String contextId)
Show help for the context id. |
void |
showHelp(String contextId,
String topicId)
Show help contents for the context id and topic id. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String name
private AppletContext appletContext
private URL documentBase
private String whereToShowDocument
private ResourceBundle resources
private String contentsURL
private String helpURL
PropertyChangeSupport changes
Constructor Detail |
public NFHelpSystem()
public NFHelpSystem(String name, AppletContext appletContext, URL documentBase, String whereToShowDocument, ResourceBundle resources) throws PropertyVetoException
name
- the name of the help system, will be used to form help resource keys.appletContext
- the context in which this container is running, it's showDocumentOperation will be invoked.documentBase
- the base upon which relative URL's will be shown.whereToShowDocument
- indicates in which frame to showDocument.
PropertyVetoException
- if any of the arguments are invalid.Method Detail |
public String getName()
HelpSystem
getName
in interface HelpSystem
public void setName(String newValue) throws PropertyVetoException
setName
in interface HelpSystem
newValue
- the new value of the help system name.
PropertyVetoException
- if the new valid is invalid.public AppletContext getAppletContext()
HelpSystem
getAppletContext
in interface HelpSystem
public void setAppletContext(AppletContext newValue) throws PropertyVetoException
HelpSystem
setAppletContext
in interface HelpSystem
newValue
- the new value of the appletContext.
PropertyVetoException
- if the new value is invalid.public URL getDocumentBase()
HelpSystem
getDocumentBase
in interface HelpSystem
public void setDocumentBase(URL newValue) throws PropertyVetoException
HelpSystem
setDocumentBase
in interface HelpSystem
newValue
- the new value of the document base.
PropertyVetoException
- if the new value is invalid.public String getWhereToShowDocument()
getWhereToShowDocument
in interface HelpSystem
ApplextContext
public void setWhereToShowDocument(String newValue) throws PropertyVetoException
HelpSystem
setWhereToShowDocument
in interface HelpSystem
newValue
- the new value for where to show frame.
PropertyVetoException
- if the new value is invalid.AppletContext
public ResourceBundle getResources()
HelpSystem
getResources
in interface HelpSystem
public void setResources(ResourceBundle newValue) throws PropertyVetoException
HelpSystem
setResources
in interface HelpSystem
newValue
- the new value of the resources field.
PropertyVetoException
- if the new value is invalid.public String getContentsURL()
HelpSystem
getContentsURL
in interface HelpSystem
protected void setContentsURL(String newValue)
newValue
- the new value of the help contents URL.public String getHelpURL()
HelpSystem
getHelpURL
in interface HelpSystem
protected void setHelpURL(String newValue)
newValue
- the new value of the help URL.public String getToolTipText(String contextId, String toolId)
HelpSystem
getToolTipText
in interface HelpSystem
contextId
- the sub-key for the context.toolId
- the sub-key for the tool.
public String getToolDescription(String contextId, String toolId)
HelpSystem
getToolDescription
in interface HelpSystem
contextId
- the sub-key for the context.toolId
- the sub-key for the tool.
public void showContents(String contextId)
HelpSystem
showContents
in interface HelpSystem
contextId
- the context help sub-key.public void showHelp(String contextId)
HelpSystem
showHelp
in interface HelpSystem
contextId
- the context help sub-key.public void showHelp(String contextId, String topicId)
HelpSystem
showHelp
in interface HelpSystem
contextId
- the context help sub-key.topicId
- the topic help sub-key.public void showFind(String contextId)
showFind
in interface HelpSystem
public void showFind(String contextId, String keyword)
showFind
in interface HelpSystem
public void addPropertyChangeListener(PropertyChangeListener listener)
HelpSystem
addPropertyChangeListener
in interface HelpSystem
listener
- the new listener.public void removePropertyChangeListener(PropertyChangeListener listener)
HelpSystem
removePropertyChangeListener
in interface HelpSystem
listener
- the listener to be removed.protected String getResourceString(String type, String system, String context, String topic)
protected String getResourceStringAlg1(String type, String system, String context, String topic)
protected String formatResourceKeyAlg1(String type, String system, String context, String topic)
protected String getResourceStringAlg2(String[] args, int count)
protected String formatResourceKeyAlg2(String[] args, int count)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |