001/* 002 * Copyright 2008-2009 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.ole.sys.document.web; 017 018import java.util.List; 019 020import javax.servlet.jsp.JspException; 021import javax.servlet.jsp.PageContext; 022import javax.servlet.jsp.tagext.JspFragment; 023import javax.servlet.jsp.tagext.Tag; 024 025 026public interface AccountingLineGroup { 027 028 /** 029 * Renders the whole of this accounting line group 030 * 031 * @param pageContext the page context to render to 032 * @param parentTag the AccountingLinesTag that is requesting this rendering 033 */ 034 public abstract void renderEverything(PageContext pageContext, Tag parentTag) throws JspException; 035 036 /** 037 * Finds the maximum number of cells in the accounting line table row 038 * 039 * @param rows the rows which are being rendered 040 * @return the maximum number of cells to render 041 */ 042 public abstract int getWidthInCells(); 043 044 /** 045 * Sets the cellCount attribute value. 046 * 047 * @param cellCount The cellCount to set. 048 */ 049 public abstract void setCellCount(int cellCount); 050 051 /** 052 * Sets the importLineOverride attribute value. 053 * 054 * @param importLineOverride The importLineOverride to set. 055 */ 056 public abstract void setImportLineOverride(JspFragment importLineOverride); 057 058 /** 059 * Sets the form's arbitrarily high tab index 060 * 061 * @param arbitrarilyHighIndex the index to set 062 */ 063 public abstract void setArbitrarilyHighIndex(int arbitrarilyHighIndex); 064 065 /** 066 * Gets the errors attribute. 067 * 068 * @return Returns the errors. 069 */ 070 public abstract List getErrorKeys(); 071 072 /** 073 * Sets the errors attribute value. 074 * 075 * @param errors The errors to set. 076 */ 077 public abstract void setErrorKeys(List errors); 078 079 /** 080 * Determines if there is more than one editable line in this group; if so, then it allows deleting 081 */ 082 public abstract void updateDeletabilityOfAllLines(); 083 084 /** 085 * Gets the collectionItemPropertyName attribute. 086 * @return Returns the collectionItemPropertyName. 087 */ 088 public abstract String getCollectionItemPropertyName(); 089 090}