Interface BoxValues

All Known Subinterfaces:
BoxValues.TableBoxValues

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

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

    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 Link icon

    • getMarginTop Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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.