1 17 18 19 20 package org.apache.fop.layoutengine; 21 22 import java.util.List ; 23 24 import org.apache.fop.layoutmgr.ElementListObserver.Observer; 25 26 30 public class ElementListCollector implements Observer { 31 32 private List elementLists = new java.util.ArrayList (); 33 34 37 public void reset() { 38 elementLists.clear(); 39 } 40 41 44 public List getElementLists() { 45 return this.elementLists; 46 } 47 48 49 public void observe(List elementList, String category, String id) { 50 elementLists.add(new ElementList(elementList, category, id)); 51 } 52 53 56 public static class ElementList { 57 58 private List elementList; 59 private String category; 60 private String id; 61 62 68 public ElementList(List elementList, String category, String id) { 69 this.elementList = elementList; 70 this.category = category; 71 this.id = id; 72 } 73 74 75 public List getElementList() { 76 return elementList; 77 } 78 79 80 public String getCategory() { 81 return category; 82 } 83 84 85 public String getID() { 86 return id; 87 } 88 } 89 90 } | Popular Tags |