Class SelectableLabelWithHelpIcon

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class SelectableLabelWithHelpIcon
    extends JPanel
    A panel containing a label an a help icon. A customized tool tip is used, the tool tip is also displayed when the user clicks on the help icon. The main difference with LabelWithHelpIcon is that this uses a JEditorPane as label.
    See Also:
    Serialized Form
    • Constructor Detail

      • SelectableLabelWithHelpIcon

        public SelectableLabelWithHelpIcon​(org.forgerock.i18n.LocalizableMessage text,
                                           org.forgerock.i18n.LocalizableMessage tooltipIcon)
        The constructor of this panel.
        Parameters:
        text - the text of the panel.
        tooltipIcon - the tool tip of the help icon.
    • Method Detail

      • setText

        public void setText​(String text)
        Sets the text on the label. The text is assumed to be in HTML format but the font will be imposed by the font specified using setFont(java.awt.Font).
        Parameters:
        text - the text to be displayed.
      • getText

        public String getText()
        Returns the text displayed on the panel.
        Returns:
        the text displayed on the panel.
      • setHelpTooltip

        public void setHelpTooltip​(String tooltip)
        Sets the tool tip to be used in the help icon.
        Parameters:
        tooltip - the tool tip text.
      • getHelpTooltip

        public String getHelpTooltip()
        Returns the tool tip to be used in the help icon.
        Returns:
        the tool tip to be used in the help icon.
      • setHelpIconVisible

        public void setHelpIconVisible​(boolean visible)
        Sets whether the help icon is visible or not.
        Parameters:
        visible - whether the help icon is visible or not.