View Javadoc

1   /**
2    * Copyright 2005-2012 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 org.kuali.rice.kns.lookup.HtmlData;
19  import org.kuali.rice.krad.bo.BusinessObject;
20  
21  import java.io.Serializable;
22  import java.util.List;
23  
24  /**
25   * 
26   */
27  @Deprecated
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      public ResultRow(List<Column> columns, String returnUrl, String actionUrls) {
44          this.columns = columns;
45          this.returnUrl = returnUrl;
46          this.actionUrls = actionUrls;
47          this.rowReturnable = true;
48      }
49  
50      /**
51       * @return Returns the returnUrl.
52       */
53      public String getReturnUrl() {
54          return returnUrl;
55      }
56  
57      /**
58       * @param returnUrl The returnUrl to set.
59       */
60      public void setReturnUrl(String returnUrl) {
61          this.returnUrl = returnUrl;
62      }
63  
64      /**
65       * @return Returns the columns.
66       */
67      public List<Column> getColumns() {
68          return columns;
69      }
70  
71      /**
72       * @param columns The columns to set.
73       */
74      public void setColumns(List<Column> columns) {
75          this.columns = columns;
76      }
77  
78      /**
79       * @return Returns the actions url
80       */
81      public String getActionUrls() {
82          return actionUrls;
83      }
84  
85      /**
86       * @param actionsUrl the actions url
87       */
88      public void setActionUrls(String actionUrls) {
89          this.actionUrls = actionUrls;
90      }
91  
92      /**
93       * Gets the Object ID of the BO that this row represents
94       * @return
95       */
96      public String getObjectId() {
97          return objectId;
98      }
99  
100     /**
101      * Sets the Object ID of the BO that this row represents
102      * @param objectId
103      */
104     public void setObjectId(String objectId) {
105         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     public boolean isRowReturnable() {
115         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     public void setRowReturnable(boolean rowReturnable) {
125         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 	public BusinessObject getBusinessObject() {
134 		return this.businessObject;
135 	}
136 
137 	/**
138 	 * @param businessObject the businessObject to set
139 	 */
140 	public void setBusinessObject(BusinessObject businessObject) {
141 		this.businessObject = businessObject;
142 	}
143 
144 	/**
145 	 * @return the rowId
146 	 */
147 	public String getRowId() {
148 		return this.rowId;
149 	}
150 
151 	/**
152 	 * @param rowId the rowId to set
153 	 */
154 	public void setRowId(String rowId) {
155 		this.rowId = rowId;
156 	}
157 
158 	/**
159 	 * @return the returnUrlHtmlData
160 	 */
161 	public HtmlData getReturnUrlHtmlData() {
162 		return this.returnUrlHtmlData;
163 	}
164 
165 	/**
166 	 * @param returnUrlHtmlData the returnUrlHtmlData to set
167 	 */
168 	public void setReturnUrlHtmlData(HtmlData returnUrlHtmlData) {
169 		this.returnUrlHtmlData = returnUrlHtmlData;
170 	}
171 
172 
173 	
174 
175 }