Class BorderWidthPropertyMaker

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class BorderWidthPropertyMaker
    extends LengthProperty.Maker
    This subclass of LengthProperty.Maker handles the special treatment of border width described in 7.7.20.
    • Constructor Detail

      • BorderWidthPropertyMaker

        public BorderWidthPropertyMaker​(int propId)
        Create a length property which check the value of the border-*-style property and return a length of 0 when the style is "none".
        Parameters:
        propId - the border-*-width of the property.
    • Method Detail

      • setBorderStyleId

        public void setBorderStyleId​(int borderStyleId)
        Set the propId of the style property for the same side.
        Parameters:
        borderStyleId - the border style id
      • get

        public Property get​(int subpropId,
                            PropertyList propertyList,
                            boolean bTryInherit,
                            boolean bTryDefault)
                     throws PropertyException
        Check the value of the style property and return a length of 0 when the style is NONE. Return the property on the current FlowObject. Depending on the passed flags, this will try to compute it based on other properties, or if it is inheritable, to return the inherited value. If all else fails, it returns the default value.
        Overrides:
        get in class PropertyMaker
        Parameters:
        subpropId - The subproperty id of the property being retrieved. Is 0 when retrieving a base property.
        propertyList - The PropertyList object being built for this FO.
        bTryInherit - true if inherited properties should be examined.
        bTryDefault - true if the default value should be returned.
        Returns:
        the property value
        Throws:
        PropertyException - if there is a problem evaluating the property