1 17 18 19 20 package org.apache.fop.fo.properties; 21 22 import java.util.List ; 23 24 import org.apache.fop.fo.FObj; 25 import org.apache.fop.fo.PropertyList; 26 27 30 public class ListProperty extends Property { 31 32 35 public static class Maker extends PropertyMaker { 36 37 40 public Maker(int propId) { 41 super(propId); 42 } 43 44 47 public Property convertProperty(Property p, 48 PropertyList propertyList, FObj fo) { 49 if (p instanceof ListProperty) { 50 return p; 51 } else { 52 return new ListProperty(p); 53 } 54 } 55 56 } 57 58 59 protected List list = new java.util.Vector (); 60 61 64 protected ListProperty() { 65 } 67 68 71 public ListProperty(Property prop) { 72 this(); 73 addProperty(prop); 74 } 75 76 80 public void addProperty(Property prop) { 81 list.add(prop); 82 } 83 84 87 public List getList() { 88 return list; 89 } 90 91 94 public Object getObject() { 95 return list; 96 } 97 98 } 99 | Popular Tags |