~ubuntu-branches/ubuntu/saucy/fop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/java/org/apache/fop/fo/flow/table/TableCell.java

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-05-21 12:21:26 UTC
  • mfrom: (15.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20130521122126-3c9r5fo6ountjg6r
Tags: 1:1.1.dfsg-2ubuntu1
* Merge from Debian unstable.  Remaining changes:
  -  Transition libservlet2.5-java -> libservlet3.0-java.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * limitations under the License.
16
16
 */
17
17
 
18
 
/* $Id: TableCell.java 679326 2008-07-24 09:35:34Z vhennebert $ */
 
18
/* $Id: TableCell.java 1242848 2012-02-10 16:51:08Z phancock $ */
19
19
 
20
20
package org.apache.fop.fo.flow.table;
21
21
 
26
26
import org.apache.fop.fo.FONode;
27
27
import org.apache.fop.fo.PropertyList;
28
28
import org.apache.fop.fo.ValidationException;
 
29
import org.apache.fop.fo.properties.CommonAccessibility;
 
30
import org.apache.fop.fo.properties.CommonAccessibilityHolder;
29
31
import org.apache.fop.fo.properties.CommonBorderPaddingBackground;
30
32
import org.apache.fop.fo.properties.LengthRangeProperty;
31
33
 
33
35
 * Class modelling the <a href="http://www.w3.org/TR/xsl/#fo_table-cell">
34
36
 * <code>fo:table-cell</code></a> object.
35
37
 */
36
 
public class TableCell extends TableFObj {
 
38
public class TableCell extends TableFObj implements CommonAccessibilityHolder {
37
39
    // The value of properties relevant for fo:table-cell.
 
40
    private CommonAccessibility commonAccessibility;
38
41
    private CommonBorderPaddingBackground commonBorderPaddingBackground;
39
42
    private LengthRangeProperty blockProgressionDimension;
40
43
    private int columnNumber;
46
49
    private int startsRow;
47
50
    private Length width;
48
51
    // Unused but valid items, commented out for performance:
49
 
    //     private CommonAccessibility commonAccessibility;
50
52
    //     private CommonAural commonAural;
51
53
    //     private CommonRelativePosition commonRelativePosition;
52
54
    //     private int relativeAlign;
74
76
     */
75
77
    public void bind(PropertyList pList) throws FOPException {
76
78
        super.bind(pList);
 
79
        commonAccessibility = CommonAccessibility.getInstance(pList);
77
80
        commonBorderPaddingBackground = pList.getBorderPaddingBackgroundProps();
78
81
        blockProgressionDimension = pList.get(PR_BLOCK_PROGRESSION_DIMENSION).getLengthRange();
79
82
        displayAlign = pList.get(PR_DISPLAY_ALIGN).getEnum();
145
148
        return true;
146
149
    }
147
150
 
 
151
    /** {@inheritDoc} */
 
152
    public CommonAccessibility getCommonAccessibility() {
 
153
        return commonAccessibility;
 
154
    }
 
155
 
148
156
    /**
149
157
     * Get the {@link CommonBorderPaddingBackground} instance
150
158
     * attached to this TableCell.