Class HtmlValues

java.lang.Object
org.lobobrowser.html.style.HtmlValues

public class HtmlValues extends Object
  • Field Details

  • Method Details

    • isBorderStyle

      public static boolean isBorderStyle(String token)
    • getMarginInsets

      public static HtmlInsets getMarginInsets(CSS2Properties cssProperties, RenderState renderState)
    • getPaddingInsets

      public static HtmlInsets getPaddingInsets(CSS2Properties cssProperties, RenderState renderState)
    • getBorderInsets

      public static HtmlInsets getBorderInsets(Insets borderStyles, CSS2Properties cssProperties, RenderState renderState)
    • populateBorderInsets

      public static void populateBorderInsets(BorderInfo binfo, CSS2Properties cssProperties, RenderState renderState)
      Populates BorderInfo.insets.
      Parameters:
      binfo - A BorderInfo with its styles already populated.
      cssProperties - The CSS properties object.
      renderState - The current render state.
    • getInsets

      public static Insets getInsets(String insetsSpec, RenderState renderState, boolean negativeOK)
    • getFontNumberOldStyle

      public static final int getFontNumberOldStyle(String oldHtmlSpec, RenderState renderState)
      Gets a number for 1 to 7.
      Parameters:
      oldHtmlSpec - A number from 1 to 7 or +1, etc.
    • getFontSize

      public static final float getFontSize(int fontNumber)
    • getFontSizeSpec

      public static final String getFontSizeSpec(int fontNumber)
    • getFontSize

      public static final float getFontSize(String spec, RenderState parentRenderState)
    • getPixelSize

      public static final int getPixelSize(String spec, RenderState renderState, int errorValue, int availSize)
    • getPixelSize

      public static final int getPixelSize(String spec, RenderState renderState, int errorValue)
    • getOldSyntaxPixelSize

      public static int getOldSyntaxPixelSize(String spec, int availSize, int errorValue)
    • getOldSyntaxPixelSizeSimple

      public static int getOldSyntaxPixelSizeSimple(String spec, int errorValue)
    • getURIFromStyleValue

      public static URL getURIFromStyleValue(String fullURLStyleValue)
    • unquoteAndUnescape

      public static String unquoteAndUnescape(String text)
    • quoteAndEscape

      public static String quoteAndEscape(String text)
    • getColorFromBackground

      public static String getColorFromBackground(String background)
    • isLength

      public static boolean isLength(String token)
    • splitCssValue

      public static String[] splitCssValue(String cssValue)
    • isUrl

      public static boolean isUrl(String token)
    • getListStyleType

      public static int getListStyleType(String token)
    • getListStyleTypeDeprecated

      public static int getListStyleTypeDeprecated(String token)
    • getListStylePosition

      public static int getListStylePosition(String token)
    • getListStyle

      public static ListStyle getListStyle(String listStyleText)
    • isFontStyle

      public static boolean isFontStyle(String token)
    • isFontVariant

      public static boolean isFontVariant(String token)
    • isFontWeight

      public static boolean isFontWeight(String token)
    • getBorderInfo

      public static BorderInfo getBorderInfo(CSS2Properties properties, RenderState renderState)
    • getBorderStyles

      public static Insets getBorderStyles(CSS2Properties properties)
    • isBackgroundRepeat

      public static boolean isBackgroundRepeat(String repeat)
    • isBackgroundPosition

      public static boolean isBackgroundPosition(String token)