aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/flow/Table.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/Table.java')
-rw-r--r--src/java/org/apache/fop/fo/flow/Table.java36
1 files changed, 17 insertions, 19 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Table.java b/src/java/org/apache/fop/fo/flow/Table.java
index 5e2797bac..d1a658504 100644
--- a/src/java/org/apache/fop/fo/flow/Table.java
+++ b/src/java/org/apache/fop/fo/flow/Table.java
@@ -59,6 +59,7 @@ import org.apache.fop.datatypes.ColorType;
import org.apache.fop.datatypes.LengthRange;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
+import org.apache.fop.fo.FOTreeVisitor;
import org.apache.fop.fo.properties.TableLayout;
import org.apache.fop.fo.properties.TableOmitFooterAtBreak;
import org.apache.fop.fo.properties.TableOmitHeaderAtBreak;
@@ -127,25 +128,6 @@ public class Table extends FObj {
}
}
- /**
- * Return a LayoutManager responsible for laying out this FObj's content.
- * Must override in subclasses if their content can be laid out.
- * @param list the list to which the layout manager(s) should be added
- */
- public void addLayoutManager(List list) {
- TableLayoutManager tlm = new TableLayoutManager();
- tlm.setUserAgent(getUserAgent());
- tlm.setFObj(this);
- tlm.setColumns(columns);
- if (tableHeader != null) {
- tlm.setTableHeader(tableHeader.getLayoutManager());
- }
- if (tableFooter != null) {
- tlm.setTableFooter(tableFooter.getLayoutManager());
- }
- list.add(tlm);
- }
-
private void setup() {
// Common Accessibility Properties
CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
@@ -222,5 +204,21 @@ public class Table extends FObj {
return true;
}
+ public ArrayList getColumns() {
+ return columns;
+ }
+
+ public TableBody getTableHeader() {
+ return tableHeader;
+ }
+
+ public TableBody getTableFooter() {
+ return tableFooter;
+ }
+
+ public void acceptVisitor(FOTreeVisitor fotv) {
+ fotv.serveVisitor(this);
+ }
+
}