001    package org.apache.myfaces.tobago.renderkit;
002    
003    /*
004     * Licensed to the Apache Software Foundation (ASF) under one or more
005     * contributor license agreements.  See the NOTICE file distributed with
006     * this work for additional information regarding copyright ownership.
007     * The ASF licenses this file to You under the Apache License, Version 2.0
008     * (the "License"); you may not use this file except in compliance with
009     * the License.  You may obtain a copy of the License at
010     *
011     *      http://www.apache.org/licenses/LICENSE-2.0
012     *
013     * Unless required by applicable law or agreed to in writing, software
014     * distributed under the License is distributed on an "AS IS" BASIS,
015     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016     * See the License for the specific language governing permissions and
017     * limitations under the License.
018     */
019    
020    
021    import org.apache.myfaces.tobago.config.Configurable;
022    import org.apache.myfaces.tobago.layout.Measure;
023    
024    import javax.faces.context.FacesContext;
025    
026    public abstract class AbstractLayoutableRendererBaseWrapper extends AbstractRendererBaseWrapper
027        implements LayoutComponentRenderer {
028    
029      public Measure getCustomMeasure(FacesContext facesContext, Configurable component, String name) {
030        return ((LayoutComponentRenderer) getRenderer(facesContext)).getCustomMeasure(facesContext, component, name);
031      }
032    
033      public Measure getWidth(FacesContext facesContext, Configurable component) {
034        return ((LayoutComponentRenderer) getRenderer(facesContext)).getWidth(facesContext, component);
035      }
036    
037      public Measure getHeight(FacesContext facesContext, Configurable component) {
038        return ((LayoutComponentRenderer) getRenderer(facesContext)).getHeight(facesContext, component);
039      }
040    
041      public Measure getMinimumWidth(FacesContext facesContext, Configurable component) {
042        return ((LayoutComponentRenderer) getRenderer(facesContext)).getMinimumWidth(facesContext, component);
043      }
044    
045      public Measure getMinimumHeight(FacesContext facesContext, Configurable component) {
046        return ((LayoutComponentRenderer) getRenderer(facesContext)).getMinimumHeight(facesContext, component);
047      }
048    
049      public Measure getPreferredWidth(FacesContext facesContext, Configurable component) {
050        return ((LayoutComponentRenderer) getRenderer(facesContext)).getPreferredWidth(facesContext, component);
051      }
052    
053      public Measure getPreferredHeight(FacesContext facesContext, Configurable component) {
054        return ((LayoutComponentRenderer) getRenderer(facesContext)).getPreferredHeight(facesContext, component);
055      }
056    
057      public Measure getMaximumWidth(FacesContext facesContext, Configurable component) {
058        return ((LayoutComponentRenderer) getRenderer(facesContext)).getMaximumWidth(facesContext, component);
059      }
060    
061      public Measure getMaximumHeight(FacesContext facesContext, Configurable component) {
062        return ((LayoutComponentRenderer) getRenderer(facesContext)).getMaximumHeight(facesContext, component);
063      }
064    
065      public Measure getMarginLeft(FacesContext facesContext, Configurable component) {
066        return ((LayoutComponentRenderer) getRenderer(facesContext)).getMarginLeft(facesContext, component);
067      }
068    
069      public Measure getMarginRight(FacesContext facesContext, Configurable component) {
070        return ((LayoutComponentRenderer) getRenderer(facesContext)).getMarginRight(facesContext, component);
071      }
072    
073      public Measure getMarginTop(FacesContext facesContext, Configurable component) {
074        return ((LayoutComponentRenderer) getRenderer(facesContext)).getMarginTop(facesContext, component);
075      }
076    
077      public Measure getMarginBottom(FacesContext facesContext, Configurable component) {
078        return ((LayoutComponentRenderer) getRenderer(facesContext)).getMarginBottom(facesContext, component);
079      }
080    
081      public Measure getBorderLeft(FacesContext facesContext, Configurable component) {
082        return ((LayoutComponentRenderer) getRenderer(facesContext)).getBorderLeft(facesContext, component);
083      }
084    
085      public Measure getBorderRight(FacesContext facesContext, Configurable component) {
086        return ((LayoutComponentRenderer) getRenderer(facesContext)).getBorderRight(facesContext, component);
087      }
088    
089      public Measure getBorderTop(FacesContext facesContext, Configurable component) {
090        return ((LayoutComponentRenderer) getRenderer(facesContext)).getBorderTop(facesContext, component);
091      }
092    
093      public Measure getBorderBottom(FacesContext facesContext, Configurable component) {
094        return ((LayoutComponentRenderer) getRenderer(facesContext)).getBorderBottom(facesContext, component);
095      }
096    
097      public Measure getPaddingLeft(FacesContext facesContext, Configurable component) {
098        return ((LayoutComponentRenderer) getRenderer(facesContext)).getPaddingLeft(facesContext, component);
099      }
100    
101      public Measure getPaddingRight(FacesContext facesContext, Configurable component) {
102        return ((LayoutComponentRenderer) getRenderer(facesContext)).getPaddingRight(facesContext, component);
103      }
104    
105      public Measure getPaddingTop(FacesContext facesContext, Configurable component) {
106        return ((LayoutComponentRenderer) getRenderer(facesContext)).getPaddingTop(facesContext, component);
107      }
108    
109      public Measure getPaddingBottom(FacesContext facesContext, Configurable component) {
110        return ((LayoutComponentRenderer) getRenderer(facesContext)).getPaddingBottom(facesContext, component);
111      }
112    
113      public Measure getVerticalScrollbarWeight(FacesContext facesContext, Configurable component) {
114        return ((LayoutComponentRenderer) getRenderer(facesContext)).getVerticalScrollbarWeight(facesContext, component);
115      }
116    }