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.jsp.tags;
21:
22: /////////////////////////
23: //$Archive: /SOFIA/SourceCode/com/salmonllc/jsp/tags/RowSelectorTag.java $
24: //$Author: Srufle $
25: //$Revision: 6 $
26: //$Modtime: 4/15/03 10:38a $
27: /////////////////////////
28:
29: import com.salmonllc.html.HtmlComponent;
30: import com.salmonllc.jsp.JspRowSelector;
31:
32: /**
33: * This tag creates an Html Style
34: */
35:
36: public class RowSelectorTag extends BaseEmptyTag {
37: private String _onClick;
38:
39: public HtmlComponent createComponent() {
40:
41: JspRowSelector _rowSelector = new JspRowSelector(getName(),
42: getHelper().getController());
43: if (_onClick != null)
44: _rowSelector.setOnClick(_onClick);
45:
46: return _rowSelector;
47: }
48:
49: /**
50: * Returns the On Click attribute
51: */
52:
53: public String getOnclick() {
54: return _onClick;
55: }
56:
57: public void release() {
58: super .release();
59: _onClick = null;
60:
61: }
62:
63: /**
64: * Sets the On Click attribute
65: */
66:
67: public void setOnclick(String val) {
68: _onClick = val;
69: }
70: }
|