1 28 package net.sf.jasperreports.crosstabs.xml; 29 30 import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabGroup; 31 import net.sf.jasperreports.engine.xml.JRBaseFactory; 32 import net.sf.jasperreports.engine.xml.JRXmlConstants; 33 34 import org.xml.sax.Attributes ; 35 36 40 public abstract class JRCrosstabGroupFactory extends JRBaseFactory 41 { 42 public static final String ATTRIBUTE_name = "name"; 43 public static final String ATTRIBUTE_totalPosition = "totalPosition"; 44 45 protected final void setGroupAtts(Attributes atts, JRDesignCrosstabGroup group) 46 { 47 group.setName(atts.getValue(ATTRIBUTE_name)); 48 49 String totalPosAttr = atts.getValue(ATTRIBUTE_totalPosition); 50 if (totalPosAttr != null) 51 { 52 Byte totalPos = (Byte ) JRXmlConstants.getCrosstabTotalPositionMap().get(totalPosAttr); 53 group.setTotalPosition(totalPos.byteValue()); 54 } 55 } 56 } 57 | Popular Tags |