KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > patterns > dialoglayout > www > DialogRowTag


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: DialogRowTag.java,v 1.12 2007/01/07 06:14:28 bastafidli Exp $
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; version 2 of the License.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */

21  
22 package org.opensubsystems.patterns.dialoglayout.www;
23
24 import javax.servlet.jsp.JspException JavaDoc;
25
26 import org.opensubsystems.core.www.BlockElementTag;
27 import org.opensubsystems.core.www.TagUtils;
28
29 /**
30  * Custom tag to generate all HTML code necessary to display row of a dialog,
31  * which usually contains single label and a single control possibly stretching
32  * the entire width of a dialog. The dialog row will be created from the content
33  * of the body of this tag.
34  *
35  * @version $Id: DialogRowTag.java,v 1.12 2007/01/07 06:14:28 bastafidli Exp $
36  * @author Miro Halas
37  * @code.reviewer Miro Halas
38  * @code.reviewed 1.9 2006/02/18 05:29:32 bastafidli
39  */

40 public class DialogRowTag extends CachedRow
41 {
42    // Attributes ///////////////////////////////////////////////////////////////
43

44    /**
45     * Generated serial version id for this class.
46     */

47    private static final long serialVersionUID = -378243901735631499L;
48
49    // Constructors /////////////////////////////////////////////////////////////
50

51    /**
52     * Constructor for custom tag.
53     */

54    public DialogRowTag()
55    {
56       super("clsDialogRowStandalone", BlockElementTag.DIV_BLOCK_ELEMENT);
57       m_strIdSuffix = "cmpsite";
58    }
59    
60    // Business logic ///////////////////////////////////////////////////////////
61

62    /**
63     * {@inheritDoc}
64     */

65    public int doEndTag(
66    ) throws JspException JavaDoc
67    {
68       // And now generate the default end of the element
69
int iRetValue = super.doEndTag();
70
71       // If the controls in this row had any context help, this is the
72
// place to put it on the page - it must be at the end, after super
73
// was called
74
TagUtils.write(pageContext,
75                      getCachedContent(ContextHelpTag.CONTEXT_HELP_CACHE, true));
76       
77       return iRetValue;
78    }
79 }
80
Popular Tags