Coverage Report - ar.com.fdvs.dj.domain.DJCrosstabColumn
 
Classes in this File Line Coverage Branch Coverage Complexity
DJCrosstabColumn
100%
34/34
N/A
1
 
 1  
 /*
 2  
  * DynamicJasper: A library for creating reports dynamically by specifying
 3  
  * columns, groups, styles, etc. at runtime. It also saves a lot of development
 4  
  * time in many cases! (http://sourceforge.net/projects/dynamicjasper)
 5  
  *
 6  
  * Copyright (C) 2008  FDV Solutions (http://www.fdvsolutions.com)
 7  
  *
 8  
  * This library is free software; you can redistribute it and/or
 9  
  * modify it under the terms of the GNU Lesser General Public
 10  
  *
 11  
  * License as published by the Free Software Foundation; either
 12  
  *
 13  
  * version 2.1 of the License, or (at your option) any later version.
 14  
  *
 15  
  * This library is distributed in the hope that it will be useful,
 16  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 17  
  *
 18  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 19  
  *
 20  
  * Lesser General Public License for more details.
 21  
  *
 22  
  * You should have received a copy of the GNU Lesser General Public
 23  
  * License along with this library; if not, write to the Free Software
 24  
  *
 25  
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 26  
  *
 27  
  *
 28  
  */
 29  
 
 30  
 package ar.com.fdvs.dj.domain;
 31  
 
 32  
 import ar.com.fdvs.dj.domain.entities.Entity;
 33  
 
 34  23
 public class DJCrosstabColumn extends DJBaseElement {
 35  
 
 36  
         private static final long serialVersionUID = Entity.SERIAL_VERSION_UID;
 37  
 
 38  
         private ColumnProperty property;
 39  23
         private int width = -1;
 40  23
         private int headerHeight = -1;
 41  
 
 42  
         private String title;
 43  
 
 44  23
         private boolean showTotals = false;
 45  
 
 46  
         private Style totalStyle;
 47  
         private Style totalHeaderStyle;
 48  
         private Style headerStyle;
 49  
         
 50  
         private DJHyperLink link;
 51  
 
 52  
         private String totalLegend;
 53  
 
 54  
         public Style getHeaderStyle() {
 55  24
                 return headerStyle;
 56  
         }
 57  
         public void setHeaderStyle(Style headerStyle) {
 58  11
                 this.headerStyle = headerStyle;
 59  11
         }
 60  
         public Style getTotalStyle() {
 61  30
                 return totalStyle;
 62  
         }
 63  
         public void setTotalStyle(Style totalStyle) {
 64  11
                 this.totalStyle = totalStyle;
 65  11
         }
 66  
         public boolean isShowTotals() {
 67  29
                 return showTotals;
 68  
         }
 69  
         public void setShowTotals(boolean showTotals) {
 70  23
                 this.showTotals = showTotals;
 71  23
         }
 72  
         public ColumnProperty getProperty() {
 73  282
                 return property;
 74  
         }
 75  
         public void setProperty(ColumnProperty property) {
 76  31
                 this.property = property;
 77  31
         }
 78  
         public int getWidth() {
 79  223
                 return width;
 80  
         }
 81  
         public void setWidth(int width) {
 82  23
                 this.width = width;
 83  23
         }
 84  
         public int getHeaderHeight() {
 85  94
                 return headerHeight;
 86  
         }
 87  
         public void setHeaderHeight(int headerHeight) {
 88  23
                 this.headerHeight = headerHeight;
 89  23
         }
 90  
         public String getTitle() {
 91  32
                 return title;
 92  
         }
 93  
         public void setTitle(String title) {
 94  23
                 this.title = title;
 95  23
         }
 96  
         public Style getTotalHeaderStyle() {
 97  21
                 return totalHeaderStyle;
 98  
         }
 99  
         public void setTotalHeaderStyle(Style titleStyle) {
 100  11
                 this.totalHeaderStyle = titleStyle;
 101  11
         }
 102  
         public DJHyperLink getLink() {
 103  8
                 return link;
 104  
         }
 105  
         public void setLink(DJHyperLink link) {
 106  8
                 this.link = link;
 107  8
         }
 108  
         public void setTotalLegend(String legend) {
 109  9
                 this.totalLegend = legend;
 110  9
         }
 111  
         public String getTotalLegend() {
 112  20
                 return totalLegend;
 113  
         }
 114  
 
 115  
 }