KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > custom > buffer > BufferTag


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 package org.apache.myfaces.custom.buffer;
17
18 import javax.faces.component.UIComponent;
19
20 import org.apache.myfaces.taglib.html.HtmlComponentTagBase;
21 /**
22  * @author Sylvain Vieujot (latest modification by $Author: matzew $)
23  * @version $Revision: 1.2 $ $Date: 2005/02/18 17:19:30 $
24  * $Log: BufferTag.java,v $
25  * Revision 1.2 2005/02/18 17:19:30 matzew
26  * added release() to tag clazzes.
27  *
28  * Revision 1.1 2005/01/04 15:41:06 svieujot
29  * new x:buffer component.
30  *
31  */

32 public class BufferTag extends HtmlComponentTagBase {
33   private String JavaDoc _into = null;
34
35   public void release() {
36       super.release();
37       _into = null;
38   }
39   
40   public String JavaDoc getComponentType() {
41     return Buffer.COMPONENT_TYPE;
42   }
43
44   public String JavaDoc getRendererType() {
45     return BufferRenderer.RENDERER_TYPE;
46   }
47
48   protected void setProperties(UIComponent component) {
49     super.setProperties(component);
50     setStringProperty(component, "into", _into);
51   }
52
53   public void setInto(String JavaDoc into) {
54     this._into = into;
55   }
56 }
Popular Tags