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 015package org.apache.tapestry.contrib.tree.components.table; 016 017import org.apache.tapestry.IRender; 018import org.apache.tapestry.IRequestCycle; 019import org.apache.tapestry.contrib.table.model.ITableModelSource; 020import org.apache.tapestry.contrib.table.model.simple.SimpleTableColumn; 021import org.apache.tapestry.util.ComponentAddress; 022 023/** 024 * @author ceco 025 */ 026public class TreeTableColumn extends SimpleTableColumn 027{ 028 private static final long serialVersionUID = -8046804468741132535L; 029 030 /** 031 * @param arg0 032 * @param arg1 033 */ 034 public TreeTableColumn(String arg0, boolean arg1, ComponentAddress objComponentAddress) { 035 super(arg0, arg1); 036 setValueRendererSource(new TreeTableValueRenderSource(objComponentAddress)); 037 } 038 039 /** 040 * @see org.apache.tapestry.contrib.table.model.common.AbstractTableColumn#getValueRenderer(org.apache.tapestry.IRequestCycle, org.apache.tapestry.contrib.table.model.ITableModelSource, java.lang.Object) 041 */ 042 public IRender getValueRenderer(IRequestCycle arg0, ITableModelSource arg1, Object arg2) { 043 return super.getValueRenderer(arg0, arg1, arg2); 044 } 045 046}