Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/voytechs/html/component/TableBody.java


1   /*
2    * File: TableBody.java
3    * Auth: Mark Bednarczyk
4    * Date: DATE
5    *   Id: $Id: TableBody.java,v 1.1.1.1 2002/01/23 23:52:48 voytechs Exp $
6    ********************************************
7    * $Log: TableBody.java,v $
8    * Revision 1.1.1.1  2002/01/23 23:52:48  voytechs
9    * Initial public release, BETA 1.0 - voytechs
10   *
11   */
12  package com.voytechs.html.component;
13  
14  import com.voytechs.html.event.EventException;
15  import com.voytechs.html.io.HtmlWriter;
16  import com.voytechs.html.util.LogFacility;
17  
18  import java.lang.*;
19  import java.util.*;
20  import java.io.IOException;
21  
22  /**
23   * A TableBody object is has a collection of form input/button elements.
24   */
25  public class TableBody 
26    extends TableContainer {
27  
28    /* Internal attributes */
29  
30    /**
31     *
32     * @param
33     * @exception
34     */
35    public TableBody() {
36      super();
37    }
38  
39    /**
40     * Setup the initial HTML Document with the required headers.
41     */
42    public void paint(HtmlWriter htmlOut) throws IOException {
43  
44      htmlOut.tBody(tagProperties.toString());
45  
46      super.paint(htmlOut);
47  
48      htmlOut.tBodyEnd();
49    }
50  
51    /**
52     * Add all form related components.
53     * @param rowElement A component to be added to the list of children to be managed.
54     */
55    public TableBody addElement(TableRow rowElement)
56        throws EventException {
57  
58      LogFacility.log.println(this + "::TableBody::addElement() - rowElement=" + rowElement); 
59  
60      super.addChild(rowElement);
61  
62      return(this);
63    }
64  
65    public TableBody setBGColor(String color) {
66      tagProperties.put("BGCOLOR", color);
67  
68      return(this);
69    }
70  
71    public TableBody setAlignment(String value) {
72      tagProperties.put("ALIGN", value);
73  
74      return(this);
75    }
76  
77    public TableBody verticalAlignment(String value) {
78      tagProperties.put("VALIGN", value);
79  
80      return(this);
81    }
82  
83  
84    /**
85     * Test function for TableBody
86     * @param args command line arguments
87     */
88    public static void main(String [] args) {
89    }
90  
91  } /* END OF: TableBody */