KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > table > CornerBuilderImpl


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  */

11 package com.tonbeller.jpivot.table;
12
13 import org.w3c.dom.Element JavaDoc;
14
15 /**
16  * renders the upper left corner
17  *
18  * @author av
19  */

20 public class CornerBuilderImpl extends PartBuilderSupport implements CornerBuilder {
21
22   /**
23    * @see com.tonbeller.jpivot.ui.table.CornerBuilder#render(TableRenderer)
24    */

25   public Element JavaDoc build(int colSpan, int rowSpan) {
26     Element JavaDoc corner = table.elem("corner");
27     corner.setAttribute("rowspan", Integer.toString(rowSpan));
28     corner.setAttribute("colspan", Integer.toString(colSpan));
29     return corner;
30   }
31
32 }
33
Popular Tags