1 51 package org.apache.fop.fo; 52 53 import java.util.ArrayList ; 54 55 public class ListProperty extends Property { 56 57 public static class Maker extends Property.Maker { 58 59 public Maker(String name) { 60 super(name); 61 } 62 63 public Property convertProperty(Property p, 64 PropertyList propertyList, FObj fo) { 65 if (p instanceof ListProperty) 66 return p; 67 else 68 return new ListProperty(p); 69 } 70 71 } 72 73 protected ArrayList list; 74 75 public ListProperty(Property prop) { 76 list = new ArrayList (); 77 list.add(prop); 78 } 79 80 public void addProperty(Property prop) { 81 list.add(prop); 82 } 83 84 public ArrayList getList() { 85 return list; 86 } 87 88 public Object getObject() { 89 return list; 90 } 91 92 } 93 | Popular Tags |