001 /** 002 * Copyright 2005-2013 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.rice.kns.web.ui; 017 018 import java.io.Serializable; 019 020 /** 021 * 022 */ 023 @Deprecated 024 public class HeaderField implements Serializable { 025 private static final long serialVersionUID = 1L; 026 027 public static final HeaderField EMPTY_FIELD = new HeaderField(); 028 029 private String id; // to be used as a unique identifier if needed 030 private String ddAttributeEntryName; 031 private String displayValue; 032 private String nonLookupValue; 033 private boolean lookupAware; 034 035 public HeaderField() { 036 } 037 038 public HeaderField(String id, String ddAttributeEntryName, String displayValue, String nonLookupValue) { 039 this(ddAttributeEntryName, displayValue, nonLookupValue); 040 this.id = id; 041 } 042 043 public HeaderField(String ddAttributeEntryName, String displayValue, String nonLookupValue) { 044 this.ddAttributeEntryName = ddAttributeEntryName; 045 this.displayValue = displayValue; 046 this.nonLookupValue = nonLookupValue; 047 this.lookupAware = true; 048 } 049 050 public HeaderField(String ddAttributeEntryName, String displayValue) { 051 this.ddAttributeEntryName = ddAttributeEntryName; 052 this.displayValue = displayValue; 053 this.lookupAware = false; 054 } 055 056 public String getId() { 057 return this.id; 058 } 059 060 public void setId(String id) { 061 this.id = id; 062 } 063 064 public String getDdAttributeEntryName() { 065 return this.ddAttributeEntryName; 066 } 067 068 public void setDdAttributeEntryName(String ddAttributeEntryName) { 069 this.ddAttributeEntryName = ddAttributeEntryName; 070 } 071 072 public String getDisplayValue() { 073 return this.displayValue; 074 } 075 076 public void setDisplayValue(String displayValue) { 077 this.displayValue = displayValue; 078 } 079 080 public String getNonLookupValue() { 081 return this.nonLookupValue; 082 } 083 084 public void setNonLookupValue(String nonLookupValue) { 085 this.nonLookupValue = nonLookupValue; 086 } 087 088 public boolean isLookupAware() { 089 return this.lookupAware; 090 } 091 092 public void setLookupAware(boolean lookupAware) { 093 this.lookupAware = lookupAware; 094 } 095 }