View Javadoc
1   /**
2    * Copyright 2005-2015 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  /**
20   * The button element is used to render an HTML button control.
21   *
22   * @deprecated Only used by KNS classes, use KRAD.
23   */
24  @Deprecated
25  public class ButtonControlDefinition extends ControlDefinitionBase {
26  	 private static final long serialVersionUID = -4014804850405243606L;
27  	 
28  	 protected String imageSrc;
29  	 protected String styleClass;
30  	 
31      public ButtonControlDefinition() {
32      }
33  
34      /**
35       * @see org.kuali.rice.krad.datadictionary.control.ControlDefinition#isButton()
36       */
37      public boolean isButton() {
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 mageSrc
50  	 */
51  	public String getImageSrc() {
52  		return this.imageSrc;
53  	}
54  
55  	/**
56  	 * @param mageSrc the mageSrc to set
57  	 */
58  	public void setImageSrc(String imageSrc) {
59  		this.imageSrc = imageSrc;
60  	}
61  
62  	/**
63  	 * @return the styleClass
64  	 */
65  	public String getStyleClass() {
66  		return this.styleClass;
67  	}
68  
69  	/**
70  	 * @param styleClass the styleClass to set
71  	 */
72  	public void setStyleClass(String styleClass) {
73  		this.styleClass = styleClass;
74  	}
75  
76  
77      
78  }