001/** 002 * Copyright 2005-2016 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 */ 016package org.kuali.rice.kns.datadictionary.control; 017 018 019/** 020 * The button element is used to render an HTML button control. 021 * 022 * @deprecated Only used by KNS classes, use KRAD. 023 */ 024@Deprecated 025public class ButtonControlDefinition extends ControlDefinitionBase { 026 private static final long serialVersionUID = -4014804850405243606L; 027 028 protected String imageSrc; 029 protected String styleClass; 030 031 public ButtonControlDefinition() { 032 } 033 034 /** 035 * @see org.kuali.rice.krad.datadictionary.control.ControlDefinition#isButton() 036 */ 037 public boolean isButton() { 038 return true; 039 } 040 041 /** 042 * @see java.lang.Object#toString() 043 */ 044 public String toString() { 045 return this.getClass().getName(); 046 } 047 048 /** 049 * @return the mageSrc 050 */ 051 public String getImageSrc() { 052 return this.imageSrc; 053 } 054 055 /** 056 * @param mageSrc the mageSrc to set 057 */ 058 public void setImageSrc(String imageSrc) { 059 this.imageSrc = imageSrc; 060 } 061 062 /** 063 * @return the styleClass 064 */ 065 public String getStyleClass() { 066 return this.styleClass; 067 } 068 069 /** 070 * @param styleClass the styleClass to set 071 */ 072 public void setStyleClass(String styleClass) { 073 this.styleClass = styleClass; 074 } 075 076 077 078}