1 /* 2 /* 3 * Copyright 2008 The Kuali Foundation 4 * 5 * Licensed under the Educational Community License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.opensource.org/licenses/ecl2.php 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 package org.kuali.ole.sys.document.web.renderers; 18 19 20 public abstract class TotalRendererBase implements Renderer, CellCountCurious, RepresentedCellCurious { 21 private int cellCount = 0; 22 private String representedCellPropertyName; 23 private int columnNumberOfRepresentedCell = 0; 24 25 public void clear() { 26 cellCount = 0; 27 columnNumberOfRepresentedCell = 0; 28 representedCellPropertyName = null; 29 } 30 31 /** 32 * Gets the cellCount attribute. 33 * @return Returns the cellCount. 34 */ 35 public int getCellCount() { 36 return cellCount; 37 } 38 39 /** 40 * Sets the cellCount attribute value. 41 * @param cellCount The cellCount to set. 42 */ 43 public void setCellCount(int cellCount) { 44 this.cellCount = cellCount; 45 } 46 47 /** 48 * Gets the representedCellPropertyName attribute. 49 * @return Returns the representedCellPropertyName. 50 */ 51 public String getRepresentedCellPropertyName() { 52 return representedCellPropertyName; 53 } 54 55 /** 56 * Sets the representedCellPropertyName attribute value. 57 * @param representedCellPropertyName The representedCellPropertyName to set. 58 */ 59 public void setRepresentedCellPropertyName(String representedCellPropertyName) { 60 this.representedCellPropertyName = representedCellPropertyName; 61 } 62 63 /** 64 * Gets the columnNumberOfRepresentedCell attribute. 65 * @return Returns the columnNumberOfRepresentedCell. 66 */ 67 public int getColumnNumberOfRepresentedCell() { 68 return columnNumberOfRepresentedCell; 69 } 70 71 /** 72 * Sets the columnNumberOfRepresentedCell attribute value. 73 * @param columnNumberOfRepresentedCell The columnNumberOfRepresentedCell to set. 74 */ 75 public void setColumnNumberOfRepresentedCell(int columnNumberOfRepresentedCell) { 76 this.columnNumberOfRepresentedCell = columnNumberOfRepresentedCell; 77 } 78 79 }