View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  
20  package org.apache.myfaces.tobago.internal.taglib.declaration;
21  
22  import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute;
23  
24  public interface IsGridLayoutContainer {
25  
26    /**
27     * This attribute is for internal use only.
28     *
29     * @param borderLeft The left border which is needed by some containers (e. g. a box).
30     */
31    @UIComponentTagAttribute(
32        type = "org.apache.myfaces.tobago.layout.Measure",
33        defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
34            + " getRenderer(getFacesContext())).getBorderLeft(getFacesContext(), this) : Measure.ZERO")
35    void setBorderLeft(String borderLeft);
36  
37    /**
38     * This attribute is for internal use only.
39     *
40     * @param borderRight The right border which is needed by some containers (e. g. a box).
41     */
42    @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
43        defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
44            + "getRenderer(getFacesContext())).getBorderRight(getFacesContext(), this) : Measure.ZERO")
45    void setBorderRight(String borderRight);
46  
47    /**
48     * This attribute is for internal use only.
49     *
50     * @param borderTop The top border which is needed by some containers (e. g. a box).
51     */
52    @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
53        defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
54            + "getRenderer(getFacesContext())).getBorderTop(getFacesContext(), this) : Measure.ZERO")
55    void setBorderTop(String borderTop);
56  
57    /**
58     * This attribute is for internal use only.
59     *
60     * @param borderBottom The bottom border which is needed by some containers (e. g. a box).
61     */
62    @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
63        defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
64            + "getRenderer(getFacesContext())).getBorderBottom(getFacesContext(), this) : Measure.ZERO")
65    void setBorderBottom(String borderBottom);
66  
67    /**
68     * This attribute is for internal use only.
69     *
70     * @param paddingLeft The left padding which is needed by some containers (e. g. a box).
71     */
72    @UIComponentTagAttribute(
73        type = "org.apache.myfaces.tobago.layout.Measure",
74        defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
75            + "getRenderer(getFacesContext())).getPaddingLeft(getFacesContext(), this) : Measure.ZERO")
76    void setPaddingLeft(String paddingLeft);
77  
78    /**
79     * This attribute is for internal use only.
80     *
81     * @param paddingRight The right padding which is needed by some containers (e. g. a box).
82     */
83    @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
84        defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
85            + "getRenderer(getFacesContext())).getPaddingRight(getFacesContext(), this) : Measure.ZERO")
86    void setPaddingRight(String paddingRight);
87  
88    /**
89     * This attribute is for internal use only.
90     *
91     * @param paddingTop The top padding which is needed by some containers (e. g. a box).
92     */
93    @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
94        defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
95            + "getRenderer(getFacesContext())).getPaddingTop(getFacesContext(), this) : Measure.ZERO")
96    void setPaddingTop(String paddingTop);
97  
98    /**
99     * This attribute is for internal use only.
100    *
101    * @param paddingBottom The bottom padding which is needed by some containers (e. g. a box).
102    */
103   @UIComponentTagAttribute(type = "org.apache.myfaces.tobago.layout.Measure",
104       defaultCode = "getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)\n"
105           + "getRenderer(getFacesContext())).getPaddingBottom(getFacesContext(), this) : Measure.ZERO")
106   void setPaddingBottom(String paddingBottom);
107 
108   /**
109    * This attribute is for internal use only.
110    *
111    * @param overflowX Does the component need a horizontal scollbar.
112    */
113   @UIComponentTagAttribute(
114       type = "boolean")
115   void setOverflowX(String overflowX);
116 
117   /**
118    * This attribute is for internal use only.
119    *
120    * @param overflowY Does the component need a vertical scollbar.
121    */
122   @UIComponentTagAttribute(
123       type = "boolean")
124   void setOverflowY(String overflowY);
125 
126 }