GridTableBaseTag.java

00001 /*
00002  * JOnAS: Java(TM) Open Application Server
00003  * Copyright (C) 1999 Bull S.A.
00004  * Contact: jonas-team@objectweb.org
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00019  * USA
00020  *
00021  * Initial developer(s): Michel-Ange ANTON
00022  * --------------------------------------------------------------------------
00023  * $Id: GridTableBaseTag.java,v 1.4 2004/03/26 16:16:12 benoitf Exp $
00024  * --------------------------------------------------------------------------
00025  */
00026 
00027 package org.objectweb.jonas.webapp.taglib;
00028 
00029 import javax.servlet.jsp.JspException;
00030 
00031 public class GridTableBaseTag extends GridBaseTag {
00032 
00033 // ----------------------------------------------------- Properties
00034 
00035     private String align = null;
00036     private String valign = null;
00037     private String width = null;
00038     private String height = null;
00039 
00043     public String getAlign() {
00044         return (this.align);
00045     }
00046 
00052     public void setAlign(String align) {
00053         this.align = align;
00054     }
00055 
00059     public String getValign() {
00060         return (this.valign);
00061     }
00062 
00069     public void setValign(String valign) {
00070         this.valign = valign;
00071     }
00072 
00073     public String getWidth() {
00074         return width;
00075     }
00076 
00077     public void setWidth(String width) {
00078         this.width = width;
00079     }
00080 
00081     public String getHeight() {
00082         return height;
00083     }
00084 
00085     public void setHeight(String height) {
00086         this.height = height;
00087     }
00088 
00089 // ----------------------------------------------------- Protected Methods
00090 
00094     protected String getHtmlElement() {
00095         return "table";
00096     }
00097 
00101     protected String prepareAttributes() throws JspException {
00102         StringBuffer sb = new StringBuffer();
00103 
00104         // Append "width" parameter
00105         sb.append(prepareAttribute("width", width));
00106         // Append "height" parameter
00107         sb.append(prepareAttribute("height", height));
00108         // Append "align" parameter
00109         sb.append(prepareAttribute("align", align));
00110         // Append "valign" parameter
00111         sb.append(prepareAttribute("valign", valign));
00112 
00113         // Append Event Handler details
00114         sb.append(super.prepareAttributes());
00115 
00116         return sb.toString();
00117 
00118     }
00119 
00120 // ----------------------------------------------------- Public Methods
00121 
00125     public void release() {
00126         super.release();
00127         align = null;
00128         valign = null;
00129         width = null;
00130         height = null;
00131     }
00132 }

Generated on Tue Feb 15 15:05:34 2005 for JOnAS by  doxygen 1.3.9.1