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