001    // Copyright 2004, 2005 The Apache Software Foundation
002    //
003    // Licensed under the Apache License, Version 2.0 (the "License");
004    // you may not use this file except in compliance with the License.
005    // You may obtain a copy of the License at
006    //
007    //     http://www.apache.org/licenses/LICENSE-2.0
008    //
009    // Unless required by applicable law or agreed to in writing, software
010    // distributed under the License is distributed on an "AS IS" BASIS,
011    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012    // See the License for the specific language governing permissions and
013    // limitations under the License.
014    
015    package org.apache.tapestry.contrib.tree.components.table;
016    
017    import org.apache.tapestry.IRender;
018    import org.apache.tapestry.IRequestCycle;
019    import org.apache.tapestry.contrib.table.model.ITableModelSource;
020    import org.apache.tapestry.contrib.table.model.simple.SimpleTableColumn;
021    import org.apache.tapestry.util.ComponentAddress;
022    
023    /**
024     * @author ceco
025     */
026    public class TreeTableColumn extends SimpleTableColumn
027    {
028    
029        private static final long serialVersionUID = -8046804468741132535L;
030    
031        /**
032         * @param arg0
033         * @param arg1
034         */
035        public TreeTableColumn(String arg0, boolean arg1,
036                ComponentAddress objComponentAddress)
037        {
038            super(arg0, arg1);
039            setValueRendererSource(new TreeTableValueRenderSource(
040                    objComponentAddress));
041        }
042    
043        /**
044         * @see org.apache.tapestry.contrib.table.model.common.AbstractTableColumn#getValueRenderer(org.apache.tapestry.IRequestCycle,
045         *      org.apache.tapestry.contrib.table.model.ITableModelSource,
046         *      java.lang.Object)
047         */
048        public IRender getValueRenderer(IRequestCycle arg0, ITableModelSource arg1,
049                Object arg2)
050        {
051            return super.getValueRenderer(arg0, arg1, arg2);
052        }
053    
054    }