KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > wap > def > PanelGrid


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.wap.def;
17
18 /**
19  * Renders an WML table element. Required attribute is "column" what sets number of colums in the table. Render the "header" and a "footer" facet if present, as the first or last row of the table. Render the children based on the value of the "columns" attribute, creating a new row each time a "columns" worth of children have been rendered. Each child is rendered inside of a "td" element. If a child has "rendered==false" it is not rendered, and the column counter must not be incremented.
20  *
21  * @wapfaces.tag
22  * componentFamily="UIPanel"
23  * rendererType="GridRenderer"
24  * tagName="panelGrid"
25  * tagBaseClass="org.apache.myfaces.wap.base.ComponentTagBase"
26  * bodyContent="JSP"
27  *
28  * @author <a HREF="mailto:Jiri.Zaloudek@ivancice.cz">Jiri Zaloudek</a> (latest modification by $Author: matzew $)
29  * @version $Revision: 1.1 $ $Date: 2004/12/30 09:37:25 $
30  * $Log: PanelGrid.java,v $
31  * Revision 1.1 2004/12/30 09:37:25 matzew
32  * added a new RenderKit for WML. Thanks to Jirí Žaloudek
33  *
34  */

35
36
37 public class PanelGrid extends javax.faces.component.UIPanel {
38     
39     /**
40      * Aligns the text in a column. Specify a list of the align values, one for each column. Posible are values: "C", "L" or "R". Example: aling="RRCL" - the first column is align to right, second right, third center and the fourth column to left. Default aling is left.
41      *
42      * @wapfaces.attribute
43      * valueBinding="true"
44      */

45     java.lang.String JavaDoc align;
46     
47     /**
48      * Sets the number of columns in the table.
49      *
50      * @wapfaces.attribute
51      * required="true"
52      * valueBinding="true"
53      */

54     java.lang.String JavaDoc columns;
55     
56     /**
57      * The attribute styleClass affiliates an element with one or more classes. Multiple elements can be given the same styleClass name.
58      *
59      * @wapfaces.attribute
60      * valueBinding="true"
61      */

62     java.lang.String JavaDoc styleClass;
63
64     /**
65      * Sets a title for the table.
66      *
67      * @wapfaces.attribute
68      * valueBinding="true"
69      */

70     java.lang.String JavaDoc title;
71     
72     /**
73      * The xml:lang attribute specifies the natural or formal language of an element or its attributes.
74      *
75      * @wapfaces.attribute
76      * valueBinding="true"
77      */

78     java.lang.String JavaDoc xmllang;
79     
80     // ============= ABSTARACT ATTRIBUTES ======================================
81
/**
82      * The component identifier for the associated component.
83      *
84      * @wapfaces.attribute
85      * abstract="true"
86      * inherit="true"
87      */

88     java.lang.String JavaDoc id;
89     
90     /**
91      * Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
92      *
93      * @wapfaces.attribute
94      * abstract="true"
95      * inherit="true"
96      */

97     boolean rendered;
98         
99     /**
100      * The value binding expression linking this component to a property in a backing bean.
101      *
102      * @wapfaces.attribute
103      * abstract="true"
104      * inherit="true"
105      */

106     java.lang.String JavaDoc binding;
107 }
108
Popular Tags