001/* 002/* 003 * Copyright 2008 The Kuali Foundation 004 * 005 * Licensed under the Educational Community License, Version 2.0 (the "License"); 006 * you may not use this file except in compliance with the License. 007 * You may obtain a copy of the License at 008 * 009 * http://www.opensource.org/licenses/ecl2.php 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.kuali.ole.sys.document.web.renderers; 018 019 020public abstract class TotalRendererBase implements Renderer, CellCountCurious, RepresentedCellCurious { 021 private int cellCount = 0; 022 private String representedCellPropertyName; 023 private int columnNumberOfRepresentedCell = 0; 024 025 public void clear() { 026 cellCount = 0; 027 columnNumberOfRepresentedCell = 0; 028 representedCellPropertyName = null; 029 } 030 031 /** 032 * Gets the cellCount attribute. 033 * @return Returns the cellCount. 034 */ 035 public int getCellCount() { 036 return cellCount; 037 } 038 039 /** 040 * Sets the cellCount attribute value. 041 * @param cellCount The cellCount to set. 042 */ 043 public void setCellCount(int cellCount) { 044 this.cellCount = cellCount; 045 } 046 047 /** 048 * Gets the representedCellPropertyName attribute. 049 * @return Returns the representedCellPropertyName. 050 */ 051 public String getRepresentedCellPropertyName() { 052 return representedCellPropertyName; 053 } 054 055 /** 056 * Sets the representedCellPropertyName attribute value. 057 * @param representedCellPropertyName The representedCellPropertyName to set. 058 */ 059 public void setRepresentedCellPropertyName(String representedCellPropertyName) { 060 this.representedCellPropertyName = representedCellPropertyName; 061 } 062 063 /** 064 * Gets the columnNumberOfRepresentedCell attribute. 065 * @return Returns the columnNumberOfRepresentedCell. 066 */ 067 public int getColumnNumberOfRepresentedCell() { 068 return columnNumberOfRepresentedCell; 069 } 070 071 /** 072 * Sets the columnNumberOfRepresentedCell attribute value. 073 * @param columnNumberOfRepresentedCell The columnNumberOfRepresentedCell to set. 074 */ 075 public void setColumnNumberOfRepresentedCell(int columnNumberOfRepresentedCell) { 076 this.columnNumberOfRepresentedCell = columnNumberOfRepresentedCell; 077 } 078 079}