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 java.io.Serializable;
19  
20  /**
21   * 
22   */
23  @Deprecated
24  public class HeaderField implements Serializable {
25      private static final long serialVersionUID = 1L;
26      
27      public static final HeaderField EMPTY_FIELD = new HeaderField();
28      
29      private String id;  // to be used as a unique identifier if needed
30      private String ddAttributeEntryName;
31      private String displayValue;
32      private String nonLookupValue;
33      private boolean lookupAware;
34      
35      public HeaderField() {
36      }
37      
38      public HeaderField(String id, String ddAttributeEntryName, String displayValue, String nonLookupValue) {
39      	this(ddAttributeEntryName, displayValue, nonLookupValue);
40      	this.id = id;
41      }
42      
43      public HeaderField(String ddAttributeEntryName, String displayValue, String nonLookupValue) {
44          this.ddAttributeEntryName = ddAttributeEntryName;
45          this.displayValue = displayValue;
46          this.nonLookupValue = nonLookupValue;
47          this.lookupAware = true;
48      }
49      
50      public HeaderField(String ddAttributeEntryName, String displayValue) {
51          this.ddAttributeEntryName = ddAttributeEntryName;
52          this.displayValue = displayValue;
53          this.lookupAware = false;
54      }
55      
56      public String getId() {
57  		return this.id;
58  	}
59  
60  	public void setId(String id) {
61  		this.id = id;
62  	}
63  
64  	public String getDdAttributeEntryName() {
65          return this.ddAttributeEntryName;
66      }
67      
68      public void setDdAttributeEntryName(String ddAttributeEntryName) {
69          this.ddAttributeEntryName = ddAttributeEntryName;
70      }
71      
72      public String getDisplayValue() {
73          return this.displayValue;
74      }
75      
76      public void setDisplayValue(String displayValue) {
77          this.displayValue = displayValue;
78      }
79      
80      public String getNonLookupValue() {
81          return this.nonLookupValue;
82      }
83      
84      public void setNonLookupValue(String nonLookupValue) {
85          this.nonLookupValue = nonLookupValue;
86      }
87      
88      public boolean isLookupAware() {
89          return this.lookupAware;
90      }
91      
92      public void setLookupAware(boolean lookupAware) {
93          this.lookupAware = lookupAware;
94      }
95  }