KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > tags > html > HtmlOptionsDataSourceTag


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * $Header:$
17  */

18 package org.apache.beehive.netui.tags.html;
19
20 import javax.servlet.jsp.JspException JavaDoc;
21
22 /**
23  * Abstract base class extending the <code>HtmlDefaultableDataSourceTag</code> and adding support
24  * for the <code>optionsDataSource</code> attribute.
25  */

26 abstract public class HtmlOptionsDataSourceTag extends HtmlDefaultableDataSourceTag
27 {
28     /**
29      * The value of the options data source.
30      */

31     protected Object JavaDoc _optionsDataSource;
32
33     /**
34      * Sets the options datasource value (an expression).
35      * @param optionsDataSource the options datasource
36      * @jsptagref.attributedescription Sets the options datasource value (an expression).
37      * @jsptagref.databindable true
38      * @jsptagref.attributesyntaxvalue <i>expression_options_datasource</i>
39      * @netui:attribute required="false" rtexprvalue="true" type="java.lang.Object"
40      * description="Sets the options datasource value."
41      */

42     public void setOptionsDataSource(Object JavaDoc optionsDataSource)
43             throws JspException JavaDoc
44     {
45         _optionsDataSource = optionsDataSource;
46     }
47
48     /**
49      * Release any acquired resources.
50      */

51     protected void localRelease()
52     {
53         super.localRelease();
54         _optionsDataSource = null;
55     }
56 }
57
Popular Tags