Class BasicHyperlinkUI.ULHtml.BasicDocument

All Implemented Interfaces:
Serializable, Document, StyledDocument
Enclosing class:
BasicHyperlinkUI.ULHtml

static class BasicHyperlinkUI.ULHtml.BasicDocument extends HTMLDocument
The subclass of HTMLDocument that is used as the model. getForeground is overridden to return the foreground property from the Component this was created for.
  • Field Details

    • clz

      private static Class<?> clz
    • displayPropertiesToCSS

      private static Method displayPropertiesToCSS
  • Constructor Details

  • Method Details

    • displayPropertiesToCSS

      private static String displayPropertiesToCSS(Font f, Color c)
    • setFontAndColor

      private void setFontAndColor(Font font, Color fg)
      Sets the default font and default color. These are set by adding a rule for the body that specifies the font and color. This allows the html to override these should it wish to have a custom font or color.