| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ButtonControlDefinition |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2005-2008 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 | ||
| 17 | package org.kuali.rice.kns.datadictionary.control; | |
| 18 | ||
| 19 | ||
| 20 | /** | |
| 21 | The button element is used to render an HTML button | |
| 22 | control. | |
| 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 | 0 | public ButtonControlDefinition() { |
| 32 | 0 | } |
| 33 | ||
| 34 | /** | |
| 35 | * @see org.kuali.rice.krad.datadictionary.control.ControlDefinition#isButton() | |
| 36 | */ | |
| 37 | public boolean isButton() { | |
| 38 | 0 | return true; |
| 39 | } | |
| 40 | ||
| 41 | /** | |
| 42 | * @see java.lang.Object#toString() | |
| 43 | */ | |
| 44 | public String toString() { | |
| 45 | 0 | return this.getClass().getName(); |
| 46 | } | |
| 47 | ||
| 48 | /** | |
| 49 | * @return the mageSrc | |
| 50 | */ | |
| 51 | public String getImageSrc() { | |
| 52 | 0 | return this.imageSrc; |
| 53 | } | |
| 54 | ||
| 55 | /** | |
| 56 | * @param mageSrc the mageSrc to set | |
| 57 | */ | |
| 58 | public void setImageSrc(String imageSrc) { | |
| 59 | 0 | this.imageSrc = imageSrc; |
| 60 | 0 | } |
| 61 | ||
| 62 | /** | |
| 63 | * @return the styleClass | |
| 64 | */ | |
| 65 | public String getStyleClass() { | |
| 66 | 0 | return this.styleClass; |
| 67 | } | |
| 68 | ||
| 69 | /** | |
| 70 | * @param styleClass the styleClass to set | |
| 71 | */ | |
| 72 | public void setStyleClass(String styleClass) { | |
| 73 | 0 | this.styleClass = styleClass; |
| 74 | 0 | } |
| 75 | ||
| 76 | ||
| 77 | ||
| 78 | } |