All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.richText.RichTextArea

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----com.sgi.sysadm.ui.richText.RichTextComponent
                                   |
                                   +----com.sgi.sysadm.ui.richText.RichTextArea

public class RichTextArea
extends RichTextComponent
RichTextArea is a subclass of RichTextComponent that adds the handling of link activations by popping up a glossary window. The target of each link that is clicked on is looked up in a ResourceStack. The value retrieved is displayed in a separate glossary window. If the resource lookup fails, the target of the link is displayed as text in the glossary window.


Variable Index

 o GLOSSARY_NAME
RichTextArea.glossary is the name of the RichTextArea that will be created when a link is clicked.
 o GLOSSARY_TITLE
RichTextArea.glossary.title is the name of the String resource which specifies the title given to the glossary Frame.

Constructor Index

 o RichTextArea(String, ResourceStack)
Construct a RichTextArea.

Method Index

 o setGlossaryResources(ResourceStack)
Set the resource stack to be used for looking up glossary entries.

Variables

 o GLOSSARY_NAME
 public static final String GLOSSARY_NAME
RichTextArea.glossary is the name of the RichTextArea that will be created when a link is clicked. Thus, RichTextComponent resources relative to RichTextArea.glossary will apply to the RichTextArea that displays glossary entries.

 o GLOSSARY_TITLE
 public static final String GLOSSARY_TITLE
RichTextArea.glossary.title is the name of the String resource which specifies the title given to the glossary Frame.

Constructors

 o RichTextArea
 public RichTextArea(String name,
                     ResourceStack rs)
Construct a RichTextArea.

Parameters:
name - Instance name of this RichTextArea. Used for looking up resource settings.
rs - ResourceStack containing resource settings for this instance of RichTextArea. Unless setGlossaryResources is called, rs is also used for looking up glossary entries.

Methods

 o setGlossaryResources
 public void setGlossaryResources(ResourceStack rs)
Set the resource stack to be used for looking up glossary entries.

Parameters:
rs - The ResourceStack to be used for looking up glossary entries.

All Packages  Class Hierarchy  This Package  Previous  Next  Index