|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.help.Presentation
Presentation is an abstract class providing a generic interface for the development of alternative Presentations. Each implementation of Presentation will need to override the static method getPresentation according to it's own needs. For instance Popup creates a single object whereas SecondaryWindow looks for an existing secondary window that matches the parameters before creating a new SecondaryWindow and MainWindow will always create a new Presentation. Presentation implements several generic methods required in all presentations.
HelpSet
Constructor Summary | |
Presentation()
|
Method Summary | |
Map.ID |
getCurrentID()
Determines which ID is displayed (if any). |
java.net.URL |
getCurrentURL()
Determines which URL is displayed. |
java.awt.Font |
getFont()
Gets the font for this Presentation. |
HelpSet |
getHelpSet()
Returns the default HelpSet |
java.util.Locale |
getLocale()
Gets the locale of this component. |
static Presentation |
getPresentation(HelpSet hs,
java.lang.String name)
Get a "name" Presentation given the passed HelpSet. |
java.awt.Dimension |
getSize()
Requests the size of the presentation. |
abstract boolean |
isDisplayed()
Determines if the presentation is displayed. |
void |
setCurrentID(Map.ID id)
Displays this ID--HelpVisitListeners are notified. |
void |
setCurrentID(java.lang.String id)
Shows this ID as content relative to the (top) HelpSet for the Presentation instance--HelpVisitListeners are notified. |
void |
setCurrentURL(java.net.URL url)
sets the current URL. |
abstract void |
setDisplayed(boolean b)
Displays the presentation to the user. |
void |
setFont(java.awt.Font f)
Sets the font for this this Presentation. |
void |
setHelpSet(HelpSet hs)
Changes the HelpSet for this presentation. |
void |
setHelpSetPresentation(HelpSet.Presentation hsPres)
Set the Presentation attributes from a named presentation in a HelpSet. |
void |
setLocale(java.util.Locale l)
Sets the locale of this Presentation. |
void |
setSize(java.awt.Dimension d)
Requests the presentation be set to a given size. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Presentation()
Method Detail |
public static Presentation getPresentation(HelpSet hs, java.lang.String name)
hs
- The helpset used to get the Presentationname
- The name of the presentation.public void setHelpSetPresentation(HelpSet.Presentation hsPres)
HelpSet.Presentation
public Map.ID getCurrentID()
public void setCurrentID(java.lang.String id) throws BadIDException
id
- A string that identifies the topic to show for the loaded (top) HelpSet
BadIDException
- The ID is not valid for the HelpSetpublic void setCurrentID(Map.ID id) throws InvalidHelpSetContextException
id
- a Map.ID indicating the URL to display
InvalidHelpSetContextException
- if the current helpset does not contain
id.helpsetpublic java.net.URL getCurrentURL()
public void setCurrentURL(java.net.URL url)
url
- The url to display. A null URL is a valid url.public HelpSet getHelpSet()
public void setHelpSet(HelpSet hs)
hs
- The HelpSet to set for this presentation.
A null hs is valid parameter.public abstract void setDisplayed(boolean b)
public abstract boolean isDisplayed()
public java.awt.Font getFont()
public void setFont(java.awt.Font f)
f
- The font.public java.util.Locale getLocale()
setLocale(java.util.Locale)
public void setLocale(java.util.Locale l)
l
- The locale to become this component's locale. A null locale
is the same as the defaultLocale.getLocale()
public java.awt.Dimension getSize()
public void setSize(java.awt.Dimension d)
d
- - a Dimension to set the size to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |