1 51 package org.apache.fop.datatypes; 52 53 import org.apache.fop.fo.Property; 54 55 58 public class Space extends LengthRange { 59 60 private Property precedence; 61 private Property conditionality; 62 63 public void setComponent(String sCmpnName, Property cmpnValue, 65 boolean bIsDefault) { 66 if (sCmpnName.equals("precedence")) 67 setPrecedence(cmpnValue, bIsDefault); 68 else if (sCmpnName.equals("conditionality")) 69 setConditionality(cmpnValue, bIsDefault); 70 else 71 super.setComponent(sCmpnName, cmpnValue, bIsDefault); 72 } 73 74 public Property getComponent(String sCmpnName) { 76 if (sCmpnName.equals("precedence")) 77 return getPrecedence(); 78 else if (sCmpnName.equals("conditionality")) 79 return getConditionality(); 80 else 81 return super.getComponent(sCmpnName); 82 } 83 84 protected void setPrecedence(Property precedence, boolean bIsDefault) { 85 this.precedence = precedence; 86 } 87 88 protected void setConditionality(Property conditionality, 89 boolean bIsDefault) { 90 this.conditionality = conditionality; 91 } 92 93 public Property getPrecedence() { 94 return this.precedence; 95 } 96 97 102 103 public Property getConditionality() { 104 return this.conditionality; 105 } 106 107 } 108 | Popular Tags |