Source code: com/voytechs/html/component/TableData.java
1 /*
2 * File: TableData.java
3 * Auth: Mark Bednarczyk
4 * Date: DATE
5 * Id: $Id: TableData.java,v 1.1.1.1 2002/01/23 23:52:48 voytechs Exp $
6 ********************************************
7 * $Log: TableData.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.io.HtmlWriter;
15 import com.voytechs.html.util.LogFacility;
16
17 import java.lang.*;
18 import java.util.*;
19 import java.io.IOException;
20
21 /**
22 * A TableData object is has a collection of form input/button elements.
23 */
24 public class TableData
25 extends TableComponent {
26
27 /* Internal attributes */
28
29 /**
30 *
31 * @param
32 * @exception
33 */
34 public TableData() {
35 super();
36 }
37
38 /**
39 * Setup the initial HTML Document with the required headers.
40 */
41 public void paint(HtmlWriter htmlOut) throws IOException {
42
43 htmlOut.td(tagProperties.toString());
44
45 super.paint(htmlOut);
46
47 htmlOut.tdEnd();
48 }
49
50 /**
51 * Add all form related components.
52 * @param rowElement A component to be added to the list of children to be managed.
53 */
54 public TableData addElement(FormComponent formElement) {
55
56 LogFacility.log.println(this + "::TableData::addElement() - formElement=" + formElement);
57
58 super.addChild(formElement);
59
60 return(this);
61 }
62
63 /**
64 * Add all form related components.
65 * @param rowElement A component to be added to the list of children to be managed.
66 */
67 public TableData addElement(SimpleComponent simpleElement) {
68
69 LogFacility.log.println(this + "::TableData::addElement() - simpleElement=" + simpleElement);
70
71 super.addChild(simpleElement);
72
73 return(this);
74 }
75
76 /**
77 * Test function for TableData
78 * @param args command line arguments
79 */
80 public static void main(String [] args) {
81 }
82
83 } /* END OF: TableData */