/Users/lyon/j4p/src/gui/html/AddressForm.java
|
1 /*
2 * @author Douglas A. Lyon
3 * @version Oct 31, 2002.10:44:23 AM
4 */
5 package gui.html;
6
7 // to run use:
8 // gui.html.AddressForm
9
10 import addBk.address.AddressRecord;
11
12 public class AddressForm {
13
14 AddressRecord ar =
15 new AddressRecord();
16 HtmlSynthesizer hs =
17 new HtmlSynthesizer();
18
19 public AddressRecord
20 getAddress() {
21 return ar;
22 }
23
24 public String toString() {
25 return
26 hs.getHtml(
27 hs.getTitle("addressbook")
28 + hs.getBody(
29 hs.getTable(
30 hs.getCaption("My Caption")
31 + hs.getSheet(ar.getRecordAsArray())
32 )
33 )
34 );
35 }
36
37 public static void main(String args[]) {
38 AddressForm af = new
39 AddressForm();
40 System.out.println(af);
41 HtmlViewer hv = new HtmlViewer();
42 hv.setString(af.toString());
43 }
44 }
45