org.apache.fop.fo.properties

Class BorderWidthPropertyMaker

Implemented Interfaces:
Cloneable

public class BorderWidthPropertyMaker
extends LengthProperty.Maker

This subclass of LengthProperty.Maker handles the special treatment of border width described in 7.7.20.

Field Summary

Fields inherited from class org.apache.fop.fo.properties.PropertyMaker

contextDep, corresponding, defaultProperty, defaultValue, propId, setByShorthand

Constructor Summary

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".

Method Summary

Property
get(int subpropId, PropertyList propertyList, boolean bTryInherit, boolean bTryDefault)
Check the value of the style property and return a length of 0 when the style is NONE.
void
setBorderStyleId(int borderStyleId)
Set the propId of the style property for the same side.

Methods inherited from class org.apache.fop.fo.properties.LengthProperty.Maker

convertProperty

Methods inherited from class org.apache.fop.fo.properties.PropertyMaker

addEnum, addKeyword, addShorthand, addSubpropMaker, checkEnumValues, checkValueKeywords, clone, compute, convertProperty, convertPropertyDatatype, convertShorthandProperty, findProperty, get, getName, getPercentBase, getPropId, getShorthand, getSubprop, getSubpropMaker, isInherited, make, make, make, makeNewProperty, setByShorthand, setCorresponding, setDatatypeParser, setDefault, setDefault, setInherited, setPercentBase, setSubprop, useGeneric

Constructor Details

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 Details

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.
Overrides:
get in interface PropertyMaker

setBorderStyleId

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

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.