Clover Coverage Report - krad-web-framework 2.0.0-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
../../../../../../img/srcFileCovDistChart0.png 0% of files have more coverage
20   175   17   1.18
0   70   0.85   17
17     1  
1    
 
  ResultRow       Line # 28 20 0% 17 37 0% 0.0
 
No Tests
 
1    /*
2    * Copyright 2007 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10    * Unless required by applicable law or agreed to in writing, software
11    * distributed under the License is distributed on an "AS IS" BASIS,
12    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13    * See the License for the specific language governing permissions and
14    * limitations under the License.
15    */
16    package org.kuali.rice.kns.web.ui;
17   
18    import java.io.Serializable;
19    import java.util.List;
20   
21    import org.kuali.rice.kns.bo.BusinessObject;
22    import org.kuali.rice.kns.lookup.HtmlData;
23   
24   
25    /**
26    *
27    */
 
28    public class ResultRow implements Serializable {
29    private static final long serialVersionUID = 2880508981008533913L;
30    private List<Column> columns;
31    private String returnUrl;
32    private String actionUrls;
33    private String objectId;
34    private String rowId;
35    private BusinessObject businessObject;
36    private HtmlData returnUrlHtmlData;
37    /**
38    * Whether to show the return URL (for single value lookups invoked from a document or nested lookup) or the return checkbox (for
39    * multiple value lookups)
40    */
41    private boolean rowReturnable;
42   
 
43  0 toggle public ResultRow(List<Column> columns, String returnUrl, String actionUrls) {
44  0 this.columns = columns;
45  0 this.returnUrl = returnUrl;
46  0 this.actionUrls = actionUrls;
47  0 this.rowReturnable = true;
48    }
49   
50    /**
51    * @return Returns the returnUrl.
52    */
 
53  0 toggle public String getReturnUrl() {
54  0 return returnUrl;
55    }
56   
57    /**
58    * @param returnUrl The returnUrl to set.
59    */
 
60  0 toggle public void setReturnUrl(String returnUrl) {
61  0 this.returnUrl = returnUrl;
62    }
63   
64    /**
65    * @return Returns the columns.
66    */
 
67  0 toggle public List<Column> getColumns() {
68  0 return columns;
69    }
70   
71    /**
72    * @param columns The columns to set.
73    */
 
74  0 toggle public void setColumns(List<Column> columns) {
75  0 this.columns = columns;
76    }
77   
78    /**
79    * @return Returns the actions url
80    */
 
81  0 toggle public String getActionUrls() {
82  0 return actionUrls;
83    }
84   
85    /**
86    * @param actionsUrl the actions url
87    */
 
88  0 toggle public void setActionUrls(String actionUrls) {
89  0 this.actionUrls = actionUrls;
90    }
91   
92    /**
93    * Gets the Object ID of the BO that this row represents
94    * @return
95    */
 
96  0 toggle public String getObjectId() {
97  0 return objectId;
98    }
99   
100    /**
101    * Sets the Object ID of the BO that this row represents
102    * @param objectId
103    */
 
104  0 toggle public void setObjectId(String objectId) {
105  0 this.objectId = objectId;
106    }
107   
108    /**
109    * Gets whether to show the return URL (for single value lookups invoked from a document or nested lookup) or the return checkbox (for
110    * multiple value lookups)
111    *
112    * @return
113    */
 
114  0 toggle public boolean isRowReturnable() {
115  0 return this.rowReturnable;
116    }
117   
118    /**
119    * Sets whether to show the return URL (for single value lookups invoked from a document or nested lookup) or the return checkbox (for
120    * multiple value lookups)
121    *
122    * @param rowReturnable
123    */
 
124  0 toggle public void setRowReturnable(boolean rowReturnable) {
125  0 this.rowReturnable = rowReturnable;
126    }
127   
128    /**
129    * Returns the BusinessObject associated with this row. This may be null
130    *
131    * @return the businessObject, or null if the businessObject was not set
132    */
 
133  0 toggle public BusinessObject getBusinessObject() {
134  0 return this.businessObject;
135    }
136   
137    /**
138    * @param businessObject the businessObject to set
139    */
 
140  0 toggle public void setBusinessObject(BusinessObject businessObject) {
141  0 this.businessObject = businessObject;
142    }
143   
144    /**
145    * @return the rowId
146    */
 
147  0 toggle public String getRowId() {
148  0 return this.rowId;
149    }
150   
151    /**
152    * @param rowId the rowId to set
153    */
 
154  0 toggle public void setRowId(String rowId) {
155  0 this.rowId = rowId;
156    }
157   
158    /**
159    * @return the returnUrlHtmlData
160    */
 
161  0 toggle public HtmlData getReturnUrlHtmlData() {
162  0 return this.returnUrlHtmlData;
163    }
164   
165    /**
166    * @param returnUrlHtmlData the returnUrlHtmlData to set
167    */
 
168  0 toggle public void setReturnUrlHtmlData(HtmlData returnUrlHtmlData) {
169  0 this.returnUrlHtmlData = returnUrlHtmlData;
170    }
171   
172   
173   
174   
175    }