javax.help
Class Popup
- ActionListener
public class Popup
implements ActionListener
Popup is a Presentation class that will create a popup help window for an
application. There is only one popup per application. A popup contains only
a content viewer. It is intended to provide immediate help and then allow
the user to continue working. Once a popup loses focus, it is destroyed.
getCurrentID , getCurrentURL , getFont , getHelpModel , getHelpSet , getLocale , getPresentation , getSize , isDisplayed , setCurrentID , setCurrentID , setCurrentURL , setDisplayed , setFont , setHelpSet , setHelpSetPresentation , setLocale , setSize |
actionPerformed
public void actionPerformed(ActionEvent e)
getInvoker
public Component getInvoker()
Get the Component that invoked this popup
- Component The invoking component
getInvokerInternalBounds
public Rectangle getInvokerInternalBounds()
Get the internal bounds for the invoker.
getPresentation
public static Presentation getPresentation(HelpSet hs,
String name)
create a new Popup for a given HelpSet and HelpSet.Presentation
"name". If the "name"d HelpSet.Presentation does not exist in the
HelpSet then the defaultHelpSet.Presentation if used.
- getPresentation in interface Presentation
hs
- The HelpSEt used in this presentationname
- The name of the HelpSet.Presentation to use
setDisplayed
public void setDisplayed(boolean b)
Displays the presentation to the user
- setDisplayed in interface Presentation
setInvoker
public void setInvoker(Component invoker)
Set the invoking component for this popup. This must be called before
setDisplayed(true) is called. If there is an invoker already set it will
be used instead of the new invoker.
invoker
- The component that invoked this popup
setInvokerInternalBounds
public void setInvokerInternalBounds(Rectangle bounds)
Set the the internal bounds for an invoker. For some invokers like
JTrees and JTables it is necessary to set an internal bounds to
further define the location of where to place the popup.
bounds
- A Rectangle of the internal bounds