KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > facelets > tag > ui > UILibrary


1 /**
2  * Licensed under the Common Development and Distribution License,
3  * you may not use this file except in compliance with the License.
4  * You may obtain a copy of the License at
5  *
6  * http://www.sun.com/cddl/
7  *
8  * Unless required by applicable law or agreed to in writing, software
9  * distributed under the License is distributed on an "AS IS" BASIS,
10  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
11  * implied. See the License for the specific language governing
12  * permissions and limitations under the License.
13  */

14
15 package com.sun.facelets.tag.ui;
16
17 import com.sun.facelets.component.UIRepeat;
18 import com.sun.facelets.tag.AbstractTagLibrary;
19
20 /**
21  * @author Jacob Hookom
22  * @version $Id: UILibrary.java,v 1.7 2006/03/29 04:10:08 jhook Exp $
23  */

24 public final class UILibrary extends AbstractTagLibrary {
25
26     public final static String JavaDoc Namespace = "http://java.sun.com/jsf/facelets";
27
28     public final static UILibrary Instance = new UILibrary();
29
30     public UILibrary() {
31         super(Namespace);
32
33         this.addTagHandler("include", IncludeHandler.class);
34
35         this.addTagHandler("composition", CompositionHandler.class);
36         
37         this.addComponent("component", ComponentRef.COMPONENT_TYPE, null, ComponentRefHandler.class);
38         
39         this.addComponent("fragment", ComponentRef.COMPONENT_TYPE, null, ComponentRefHandler.class);
40
41         this.addTagHandler("define", DefineHandler.class);
42
43         this.addTagHandler("insert", InsertHandler.class);
44
45         this.addTagHandler("param", ParamHandler.class);
46
47         this.addTagHandler("decorate", DecorateHandler.class);
48         
49         this.addComponent("repeat", UIRepeat.COMPONENT_TYPE, null, RepeatHandler.class);
50         
51         this.addComponent("debug", UIDebug.COMPONENT_TYPE, null);
52     }
53 }
54
Popular Tags