Class LabelWithHelpIcon

    • Field Detail

      • label

        protected JLabel label
        The label with the text.
    • Constructor Detail

      • LabelWithHelpIcon

        public LabelWithHelpIcon​(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

      • setLabelFor

        public void setLabelFor​(Component comp)
        Set the component this is labeling. Can be null if this does not label a Component.
        Parameters:
        comp - the Component to be labeled.
      • setText

        public void setText​(String text)
        Sets the text on the label.
        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.