01: //** Copyright Statement ***************************************************
02: //The Salmon Open Framework for Internet Applications (SOFIA)
03: // Copyright (C) 1999 - 2002, Salmon LLC
04: //
05: // This program is free software; you can redistribute it and/or
06: // modify it under the terms of the GNU General Public License version 2
07: // as published by the Free Software Foundation;
08: //
09: // This program is distributed in the hope that it will be useful,
10: // but WITHOUT ANY WARRANTY; without even the implied warranty of
11: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: // GNU General Public License for more details.
13: //
14: // You should have received a copy of the GNU General Public License
15: // along with this program; if not, write to the Free Software
16: // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: //
18: // For more information please visit http://www.salmonllc.com
19: //** End Copyright Statement ***************************************************
20: package com.salmonllc.html;
21:
22: /////////////////////////
23: //$Archive: /JADE/SourceCode/com/salmonllc/html/HtmlAnchor.java $
24: //$Author: Dan $
25: //$Revision: 10 $
26: //$Modtime: 10/30/02 2:38p $
27: /////////////////////////
28:
29: import java.io.*;
30:
31: /**
32: * This container will construct an anchor tag around the components within it.
33: */
34: public class HtmlAnchor extends HtmlContainer {
35:
36: /**
37: * Creates a new HtmlAnchor
38: * @param name The name of the anchor
39: * @param p The page the anchor will go in.
40: */
41: public HtmlAnchor(String name, com.salmonllc.html.HtmlPage p) {
42: super (name, p);
43: }
44:
45: public void generateHTML(PrintWriter p, int rowNo) throws Exception {
46: p.println("<A NAME=\"" + getFullName() + "\">");
47: super .generateHTML(p, rowNo);
48: p.println("</A>");
49: }
50: }
|