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

Quick Search    Search Deep

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


1   /*
2    * File: Image.java
3    * Auth: Mark Bednarczyk
4    * Date: DATE
5    *   Id: $Id: Image.java,v 1.1.1.1 2002/01/23 23:52:47 voytechs Exp $
6    ********************************************
7    * $Log: Image.java,v $
8    * Revision 1.1.1.1  2002/01/23 23:52:47  voytechs
9    * Initial public release, BETA 1.0 - voytechs
10   *
11   */
12  package com.voytechs.html.component;
13  
14  import com.voytechs.html.io.*;
15  
16  import java.lang.*;
17  
18  import java.io.IOException;
19  
20  /**
21   * A Image
22   */
23  public class Image 
24    extends SimpleComponent {
25  
26    /* Internal attributes */
27    private String imageUri = "";
28  
29    /**
30     *
31     * @param
32     * @exception
33     */
34    public Image(String uri) {
35      super();
36  
37      this.imageUri = uri;
38    }
39  
40    /**
41     * Output text to the HtmlWriter.
42     * @param htmlOut Out writer for this text.
43     */
44    public void paint(HtmlWriter htmlOut) throws IOException {
45      htmlOut.img(imageUri, tagProperties.toString());
46    }
47  
48    /**
49     * Set the text of the object.
50     * @param text Image to set in this component.
51     */
52    public void setUri(String uri) {
53      this.imageUri = uri;
54    }
55  
56    /**
57     * Get the text of this object.
58     * @return Image of this component.
59     */
60    public String getUri() {
61      return(imageUri);
62    }
63  
64    /**
65     * Test function for Image
66     * @param args command line arguments
67     */
68    public static void main(String [] args) {
69    }
70  
71  } /* END OF: Image */