Interface BoxValues

All Known Subinterfaces:
BoxValues.TableBoxValues

public interface BoxValues
Interface giving access to the computed box values.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Sub-interface for tables in the simple box model.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Fill the style declaration with the box values.
    float
    Gets the computed value of the border-bottom-width property, expressed in a previously specified unit (see the documentation for the class that returned this object).
    float
    Gets the computed value of the border-left-width property, expressed in a previously specified unit (see the documentation for the class that returned this object).
    float
    Gets the computed value of the border-right-width property, expressed in a previously specified unit (see the documentation for the class that returned this object).
    float
    Gets the computed value of the border-top-width property, expressed in a previously specified unit (see the documentation for the class that returned this object).
    float
    Gets the computed value of the margin-bottom property, expressed in a previously specified unit (see the documentation for the class that returned this object).
    float
    Gets the computed value of the margin-left property, expressed in a previously specified unit (see the documentation for the class that returned this object).
    float
    Gets the computed value of the margin-right property, expressed in a previously specified unit (see the documentation for the class that returned this object).
    float
    Gets the computed value of the margin-top property, expressed in a previously specified unit (see the documentation for the class that returned this object).
    float
    Gets the computed value of the padding-bottom property, expressed in a previously specified unit (see the documentation for the class that returned this object).
    float
    Gets the computed value of the padding-left property, expressed in a previously specified unit (see the documentation for the class that returned this object).
    float
    Gets the computed value of the padding-right property, expressed in a previously specified unit (see the documentation for the class that returned this object).
    float
    Gets the computed value of the padding-top property, expressed in a previously specified unit (see the documentation for the class that returned this object).
    short
    The length unit for which the values were computed.
    float
    Gets the computed value of the width property, expressed in a previously specified unit (see the documentation for the class that returned this object).
  • Method Details

    • getMarginTop

      float getMarginTop()
      Gets the computed value of the margin-top property, expressed in a previously specified unit (see the documentation for the class that returned this object).
      Returns:
      the value of the margin-top property.
    • getMarginRight

      float getMarginRight()
      Gets the computed value of the margin-right property, expressed in a previously specified unit (see the documentation for the class that returned this object).
      Returns:
      the value of the margin-right property.
    • getMarginBottom

      float getMarginBottom()
      Gets the computed value of the margin-bottom property, expressed in a previously specified unit (see the documentation for the class that returned this object).
      Returns:
      the value of the margin-bottom property.
    • getMarginLeft

      float getMarginLeft()
      Gets the computed value of the margin-left property, expressed in a previously specified unit (see the documentation for the class that returned this object).
      Returns:
      the value of the margin-left property.
    • getPaddingTop

      float getPaddingTop()
      Gets the computed value of the padding-top property, expressed in a previously specified unit (see the documentation for the class that returned this object).
      Returns:
      the value of the padding-top property.
    • getPaddingRight

      float getPaddingRight()
      Gets the computed value of the padding-right property, expressed in a previously specified unit (see the documentation for the class that returned this object).
      Returns:
      the value of the padding-right property.
    • getPaddingBottom

      float getPaddingBottom()
      Gets the computed value of the padding-bottom property, expressed in a previously specified unit (see the documentation for the class that returned this object).
      Returns:
      the value of the padding-bottom property.
    • getPaddingLeft

      float getPaddingLeft()
      Gets the computed value of the padding-left property, expressed in a previously specified unit (see the documentation for the class that returned this object).
      Returns:
      the value of the padding-left property.
    • getBorderTopWidth

      float getBorderTopWidth()
      Gets the computed value of the border-top-width property, expressed in a previously specified unit (see the documentation for the class that returned this object).
      Returns:
      the value of the border-top-width property.
    • getBorderRightWidth

      float getBorderRightWidth()
      Gets the computed value of the border-right-width property, expressed in a previously specified unit (see the documentation for the class that returned this object).
      Returns:
      the value of the border-right-width property.
    • getBorderBottomWidth

      float getBorderBottomWidth()
      Gets the computed value of the border-bottom-width property, expressed in a previously specified unit (see the documentation for the class that returned this object).
      Returns:
      the value of the border-bottom-width property.
    • getBorderLeftWidth

      float getBorderLeftWidth()
      Gets the computed value of the border-left-width property, expressed in a previously specified unit (see the documentation for the class that returned this object).
      Returns:
      the value of the border-left-width property.
    • getWidth

      float getWidth()
      Gets the computed value of the width property, expressed in a previously specified unit (see the documentation for the class that returned this object).

      For non-replaced inline elements, table rows, and row groups the value is undefined, and an estimated content width is returned instead.

      Returns:
      the value of the width property.
    • getUnitType

      short getUnitType()
      The length unit for which the values were computed.
      Returns:
      the length unit. If negative, it is the natural unit as given by the style database.
    • fillBoxValues

      default void fillBoxValues(CSSStyleDeclaration style)
      Fill the style declaration with the box values.

      The style declaration should correspond to an element that displays as block.

      Parameters:
      style - the style declaration.