All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----com.sgi.sysadm.ui.richText.RichTextComponent
|
+----com.sgi.sysadm.ui.richText.RichTextArea
|
+----com.sgi.sysadm.ui.LinkLabelBase
A LinkLabel's text and link is determined by resources.
The string that is displayed in the label is determined by using
the LABEL property. The link that the label launches is
determined by the GLOSSARY property. Both of these
properties are of the form <name>.something, where
name argument passed to the constructor.
Since this class extends RichTextArea, it can handle launching
everything that RichTextArea handles. Because this class will just
show a normal label instead of a link if the GLOSSARY
property is not found, it can be used for normal labels when there
will be a possibility of desiring a link label at a later time.
Example
A call to new LinkLabelBase(rs, "MyLabel", "LinkLabel"), and a resource
file with
MyLabel.label = "My Nice Label: MyLabel.glossary = glossary.myGlossWould show a LinkLabel with text "My Nice Label:". When the user clicked on the link, the "glossary.myGloss" glossary entry would be displayed.
public static final String LABEL
public static final String GLOSSARY
public static final String PRE_TAGS
public static final String POST_TAGS
public LinkLabelBase(ResourceStack rs,
String name,
String className)
public void setText(String text)
public void setGlossary(String text)
All Packages Class Hierarchy This Package Previous Next Index