1 /* 2 Copyright (c) 2003 eInnovation Inc. All rights reserved 3 4 This library is free software; you can redistribute it and/or modify it under the terms 5 of the GNU Lesser General Public License as published by the Free Software Foundation; 6 either version 2.1 of the License, or (at your option) any later version. 7 8 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 9 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10 See the GNU Lesser General Public License for more details. 11 */ 12 13 package com.openedit.webui.list; 14 15 import org.dom4j.DocumentFactory; 16 import org.dom4j.Element; 17 18 19 /** 20 * This interface is responsible for rendering each item in a <code>{@link WebList}</code> as an 21 * XML element. 22 * 23 * @author Eric and Matt 24 */ 25 public interface WebListCellRenderer 26 { 27 /** 28 * Construct and return the XML form of the given tree node. 29 * 30 * @param inList The list of which the tree node is a part 31 * @param inValue The list item 32 * @param inDocumentFactory The document factory with which to create the returned element 33 * 34 * @return 35 */ 36 public Element getListCellElement( 37 WebList inList, Object inValue, DocumentFactory inDocumentFactory); 38 } 39