1 28 package net.sf.jasperreports.engine.base; 29 30 import java.io.Serializable ; 31 32 import net.sf.jasperreports.engine.JRConstants; 33 import net.sf.jasperreports.engine.JRSortField; 34 35 36 40 public class JRBaseSortField implements JRSortField, Serializable 41 { 42 43 44 47 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 48 49 52 protected String name = null; 53 protected byte order = SORT_ORDER_ASCENDING; 54 55 56 59 protected JRBaseSortField() 60 { 61 } 62 63 64 67 protected JRBaseSortField(JRSortField sortField, JRBaseObjectFactory factory) 68 { 69 factory.put(sortField, this); 70 71 name = sortField.getName(); 72 order = sortField.getOrder(); 73 } 74 75 76 79 public String getName() 80 { 81 return name; 82 } 83 84 87 public byte getOrder() 88 { 89 return order; 90 } 91 92 95 public void setOrder(byte order) 96 { 97 this.order = order; 98 } 99 100 } 101 | Popular Tags |