1 51 package org.apache.fop.fo.flow; 52 53 import org.apache.fop.fo.*; 55 import org.apache.fop.apps.FOPException; 56 57 public class Flow extends AbstractFlow { 58 59 public static class Maker extends FObj.Maker { 60 public FObj make(FObj parent, PropertyList propertyList, 61 String systemId, int line, int column) 62 throws FOPException { 63 return new Flow(parent, propertyList, systemId, line, column); 64 } 65 } 66 67 public static FObj.Maker maker() { 68 return new Flow.Maker(); 69 } 70 71 protected Flow(FObj parent, PropertyList propertyList, 72 String systemId, int line, int column) throws FOPException { 73 super(parent, propertyList, systemId, line, column); 74 setFlowName(getProperty("flow-name").getString()); 75 pageSequence.addFlow(this); 76 } 77 78 public String getName() { 79 return "fo:flow"; 80 } 81 82 protected void setFlowName(String name) throws FOPException { 83 if (name == null || name.equals("")) { 84 log.warn("A 'flow-name' is required for " 85 + getName() 86 + ". This constraint will be enforced in future versions of FOP"); 87 _flowName = "xsl-region-body"; 88 } else { 89 _flowName = name; 90 } 91 92 } 93 94 } 95 | Popular Tags |