KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > aspects > gui > web > html > Text


1 // ===========================================================================
2
// Copyright (c) 1996 Mort Bay Consulting Pty. Ltd. All rights reserved.
3
// $Id: Text.java,v 1.2 2004/04/19 23:09:06 laurent Exp $
4
// ---------------------------------------------------------------------------
5

6 package org.objectweb.jac.aspects.gui.web.html;
7
8 import java.util.Vector JavaDoc;
9
10 /* -------------------------------------------------------------------- */
11 /** A simple block of straight text.
12  */

13 public class Text extends Composite
14 {
15     /* ----------------------------------------------------------------- */
16     public Text()
17     {}
18
19     /* ----------------------------------------------------------------- */
20     public Text(String JavaDoc s)
21     {
22         add(s);
23     }
24
25     /* ----------------------------------------------------------------- */
26     public Text(String JavaDoc[] s)
27     {
28         add(s);
29     }
30
31     /* ----------------------------------------------------------------- */
32     public Text add(String JavaDoc[] s)
33     {
34         for (int i=0;i<s.length;i++)
35             add(s[i]);
36         return this;
37     }
38
39     /* ----------------------------------------------------------------- */
40     public Text add(Vector JavaDoc v)
41     {
42         for (int i=0;i<v.size();i++)
43             add(v.elementAt(i));
44         return this;
45     }
46 }
47
Popular Tags