Revision: 7659
Author: victormote
Date: 2006-06-16 17:05:15 -0700 (Fri, 16 Jun 2006)
ViewCVS: http://svn.sourceforge.net/foray/?rev=7659&view=rev
Log Message:
-----------
Simplify rendering by ignoring the various table-related container items and letting them pass through the Visitor logic as AreaNodes.
Modified Paths:
--------------
trunk/foray/foray-render/src/java/org/foray/render/Renderer.java
Modified: trunk/foray/foray-render/src/java/org/foray/render/Renderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/Renderer.java 2006-06-16 23:18:04 UTC (rev 7658)
+++ trunk/foray/foray-render/src/java/org/foray/render/Renderer.java 2006-06-17 00:05:15 UTC (rev 7659)
@@ -418,29 +418,7 @@
* as possible. Contiguous cells that have identical borders should have
* their borders painted at the same time. */
doFrame(area);
- List children = area.getChildren();
-
- // First process the table-header
- for (int i = 0; i < children.size(); i++) {
- Area child = (Area)children.get(i);
- if (child instanceof TableHeaderContainer) {
- render((TableHeaderContainer) child);
- }
- }
- // Then process all of the table-body
- for (int i = 0; i < children.size(); i++) {
- Area child = (Area)children.get(i);
- if (child instanceof TableBodyContainer) {
- render((TableBodyContainer) child);
- }
- }
- // Then process the table-footer
- for (int i = 0; i < children.size(); i++) {
- Area child = (Area)children.get(i);
- if (child instanceof TableFooterContainer) {
- render((TableFooterContainer) child);
- }
- }
+ renderChildren(area);
}
public void render(TableRowContainer area) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|