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.renderkit;
21  
22  
23  import org.apache.myfaces.tobago.config.Configurable;
24  import org.apache.myfaces.tobago.layout.Measure;
25  
26  import javax.faces.context.FacesContext;
27  
28  public abstract class AbstractLayoutableRendererBaseWrapper extends AbstractRendererBaseWrapper
29      implements LayoutComponentRenderer {
30  
31    public Measure getCustomMeasure(FacesContext facesContext, Configurable component, String name) {
32      return ((LayoutComponentRenderer) getRenderer(facesContext)).getCustomMeasure(facesContext, component, name);
33    }
34  
35    public Measure getWidth(FacesContext facesContext, Configurable component) {
36      return ((LayoutComponentRenderer) getRenderer(facesContext)).getWidth(facesContext, component);
37    }
38  
39    public Measure getHeight(FacesContext facesContext, Configurable component) {
40      return ((LayoutComponentRenderer) getRenderer(facesContext)).getHeight(facesContext, component);
41    }
42  
43    public Measure getMinimumWidth(FacesContext facesContext, Configurable component) {
44      return ((LayoutComponentRenderer) getRenderer(facesContext)).getMinimumWidth(facesContext, component);
45    }
46  
47    public Measure getMinimumHeight(FacesContext facesContext, Configurable component) {
48      return ((LayoutComponentRenderer) getRenderer(facesContext)).getMinimumHeight(facesContext, component);
49    }
50  
51    public Measure getPreferredWidth(FacesContext facesContext, Configurable component) {
52      return ((LayoutComponentRenderer) getRenderer(facesContext)).getPreferredWidth(facesContext, component);
53    }
54  
55    public Measure getPreferredHeight(FacesContext facesContext, Configurable component) {
56      return ((LayoutComponentRenderer) getRenderer(facesContext)).getPreferredHeight(facesContext, component);
57    }
58  
59    public Measure getMaximumWidth(FacesContext facesContext, Configurable component) {
60      return ((LayoutComponentRenderer) getRenderer(facesContext)).getMaximumWidth(facesContext, component);
61    }
62  
63    public Measure getMaximumHeight(FacesContext facesContext, Configurable component) {
64      return ((LayoutComponentRenderer) getRenderer(facesContext)).getMaximumHeight(facesContext, component);
65    }
66  
67    public Measure getMarginLeft(FacesContext facesContext, Configurable component) {
68      return ((LayoutComponentRenderer) getRenderer(facesContext)).getMarginLeft(facesContext, component);
69    }
70  
71    public Measure getMarginRight(FacesContext facesContext, Configurable component) {
72      return ((LayoutComponentRenderer) getRenderer(facesContext)).getMarginRight(facesContext, component);
73    }
74  
75    public Measure getMarginTop(FacesContext facesContext, Configurable component) {
76      return ((LayoutComponentRenderer) getRenderer(facesContext)).getMarginTop(facesContext, component);
77    }
78  
79    public Measure getMarginBottom(FacesContext facesContext, Configurable component) {
80      return ((LayoutComponentRenderer) getRenderer(facesContext)).getMarginBottom(facesContext, component);
81    }
82  
83    public Measure getBorderLeft(FacesContext facesContext, Configurable component) {
84      return ((LayoutComponentRenderer) getRenderer(facesContext)).getBorderLeft(facesContext, component);
85    }
86  
87    public Measure getBorderRight(FacesContext facesContext, Configurable component) {
88      return ((LayoutComponentRenderer) getRenderer(facesContext)).getBorderRight(facesContext, component);
89    }
90  
91    public Measure getBorderTop(FacesContext facesContext, Configurable component) {
92      return ((LayoutComponentRenderer) getRenderer(facesContext)).getBorderTop(facesContext, component);
93    }
94  
95    public Measure getBorderBottom(FacesContext facesContext, Configurable component) {
96      return ((LayoutComponentRenderer) getRenderer(facesContext)).getBorderBottom(facesContext, component);
97    }
98  
99    public Measure getPaddingLeft(FacesContext facesContext, Configurable component) {
100     return ((LayoutComponentRenderer) getRenderer(facesContext)).getPaddingLeft(facesContext, component);
101   }
102 
103   public Measure getPaddingRight(FacesContext facesContext, Configurable component) {
104     return ((LayoutComponentRenderer) getRenderer(facesContext)).getPaddingRight(facesContext, component);
105   }
106 
107   public Measure getPaddingTop(FacesContext facesContext, Configurable component) {
108     return ((LayoutComponentRenderer) getRenderer(facesContext)).getPaddingTop(facesContext, component);
109   }
110 
111   public Measure getPaddingBottom(FacesContext facesContext, Configurable component) {
112     return ((LayoutComponentRenderer) getRenderer(facesContext)).getPaddingBottom(facesContext, component);
113   }
114 
115   public Measure getVerticalScrollbarWeight(FacesContext facesContext, Configurable component) {
116     return ((LayoutComponentRenderer) getRenderer(facesContext)).getVerticalScrollbarWeight(facesContext, component);
117   }
118 }