KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > facelets > tag > TextHandler


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 package com.sun.facelets.tag;
15
16 import com.sun.facelets.FaceletContext;
17
18 /**
19  * A mixin' interface that allows other code to identify FaceletHandlers
20  * that may provide text (String) content.
21  *
22  * @author Jacob Hookom
23  *
24  */

25 public interface TextHandler {
26
27     /**
28      * Return the literal String value of the contained text
29      * @return
30      */

31     public String JavaDoc getText();
32     
33     /**
34      * Evaluate the literal String value against EL of the contained text
35      * @param ctx
36      * @return
37      */

38     public String JavaDoc getText(FaceletContext ctx);
39     
40 }
41
Popular Tags