KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: SplitDialogRowTag.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 two column row
31  * of a dialog. The dialog row can then contain controls in the left column and
32  * different controls in the right columns.
33  *
34  * @version $Id: SplitDialogRowTag.java,v 1.12 2007/01/07 06:14:28 bastafidli Exp $
35  * @author Miro Halas
36  * @code.reviewer Miro Halas
37  * @code.reviewed 1.7 2005/10/06 01:46:34 jlegeny
38  */

39 public class SplitDialogRowTag extends CachedRow
40 {
41    // Attributes ///////////////////////////////////////////////////////////////
42

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

46    private static final long serialVersionUID = -360303768303686236L;
47
48    // Constructors /////////////////////////////////////////////////////////////
49

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

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

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

64    public int doEndTag(
65    ) throws JspException JavaDoc
66    {
67       super.doEndTag();
68
69       // If the controls in this row had any context help, this is the
70
// place to put it on the page
71
TagUtils.write(pageContext,
72                      getCachedContent(ContextHelpTag.CONTEXT_HELP_CACHE, true));
73
74       return (EVAL_PAGE);
75    }
76 }
77
Popular Tags