Interface GComponent

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String HTML_DISABLE_STRING  
    • Method Summary

      All Methods Static Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default boolean getHTMLRenderingEnabled()
      Returns the current HTML rendering 'enable-ment' of this component.
      default void setHTMLRenderingEnabled​(boolean enabled)
      Enables and disables the rendering of HTML content in this component.
      static void setHTMLRenderingFlag​(javax.swing.JComponent comp, boolean enabled)
      Sets the HTML rendering flag for the specified component.
      static void warnAboutHtmlText​(java.lang.String text)
      Helper function that logs a warning about a string text that looks like it has HTML text.
    • Field Detail

    • Method Detail

      • setHTMLRenderingEnabled

        default void setHTMLRenderingEnabled​(boolean enabled)
        Enables and disables the rendering of HTML content in this component. If enabled, this component will interpret HTML content when the text this component is showing begins with <html>
        Parameters:
        enable - true to enable HTML rendering; false to disable it
      • getHTMLRenderingEnabled

        default boolean getHTMLRenderingEnabled()
        Returns the current HTML rendering 'enable-ment' of this component.
        Returns:
        boolean, true if HTML rendering is allowed
      • warnAboutHtmlText

        static void warnAboutHtmlText​(java.lang.String text)
        Helper function that logs a warning about a string text that looks like it has HTML text.

        Use this when working with a string in a label that has already disabled HTML rendering.

        Parameters:
        text - string to test for HTML and warn about
      • setHTMLRenderingFlag

        static void setHTMLRenderingFlag​(javax.swing.JComponent comp,
                                         boolean enabled)
        Sets the HTML rendering flag for the specified component.
        Parameters:
        comp - the thing
        enabled - boolean, if true html rendering will be allowed