View Javadoc
1   /**
2    * Copyright 2005-2016 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.datadictionary.control;
17  
18  /**
19   * The link element is used to render an HTML link control.
20   *
21   * @deprecated Only used by KNS classes, use KRAD.
22   */
23  @Deprecated
24  public class LinkControlDefinition extends ControlDefinitionBase {
25  	 private static final long serialVersionUID = -7568912421829207545L;
26  	 
27  	 protected String styleClass;
28  	 protected String target;
29  	 protected String hrefText;
30  	 
31  	public LinkControlDefinition() {
32      }
33  
34      /**
35       * @see org.kuali.rice.krad.datadictionary.control.ControlDefinition#isLink()
36       */
37      public boolean isLink() {
38          return true;
39      }
40  
41      /**
42       * @see java.lang.Object#toString()
43       */
44      public String toString() {
45          return this.getClass().getName();
46      }
47       
48  	 /**
49  	 * @return the styleClass
50  	 */
51  	public String getStyleClass() {
52  		return this.styleClass;
53  	}
54  
55  	/**
56  	 * @param styleClass the styleClass to set
57  	 */
58  	public void setStyleClass(String styleClass) {
59  		this.styleClass = styleClass;
60  	}
61  
62  	/**
63  	 * @return the target
64  	 */
65  	public String getTarget() {
66  		return this.target;
67  	}
68  
69  	/**
70  	 * @param target the target to set
71  	 */
72  	public void setTarget(String target) {
73  		this.target = target;
74  	}
75  	
76  	   /**
77  	 * @return the hrefText
78  	 */
79  	public String getHrefText() {
80  		return this.hrefText;
81  	}
82  
83  	/**
84  	 * @param hrefText the hrefText to set
85  	 */
86  	public void setHrefText(String hrefText) {
87  		this.hrefText = hrefText;
88  	}
89      
90  }