Coverage Report - org.kuali.rice.kns.web.ui.ExtraButton
 
Classes in this File Line Coverage Branch Coverage Complexity
ExtraButton
0%
0/22
0%
0/2
1.1
 
 1  
 /*
 2  
  * Copyright 2007 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.web.ui;
 17  
 
 18  
 import org.apache.commons.lang.StringUtils;
 19  
 import org.kuali.rice.krad.service.KRADServiceLocator;
 20  
 import org.kuali.rice.krad.util.KRADConstants;
 21  
 
 22  
 import java.io.Serializable;
 23  
 
 24  
 /**
 25  
  * Represents an extra button that may appear on the lookups or bottom of a
 26  
  * document page.
 27  
  */
 28  
 @Deprecated
 29  0
 public class ExtraButton implements Serializable {
 30  0
         private String extraButtonSource = "";
 31  
 
 32  0
         private String extraButtonAltText = "";
 33  
 
 34  0
         private String extraButtonParams = "";
 35  
 
 36  0
         private String extraButtonProperty = "";
 37  
 
 38  0
         private String extraButtonOnclick = "";
 39  
          
 40  
         public String getExtraButtonAltText() {
 41  0
                 return extraButtonAltText;
 42  
         }
 43  
 
 44  
         public void setExtraButtonAltText(String extraButtonAltText) {
 45  0
                 this.extraButtonAltText = extraButtonAltText;
 46  0
         }
 47  
 
 48  
         public String getExtraButtonParams() {
 49  0
                 return extraButtonParams;
 50  
         }
 51  
 
 52  
         public void setExtraButtonParams(String extraButtonParams) {
 53  0
                 this.extraButtonParams = extraButtonParams;
 54  0
         }
 55  
 
 56  
         public String getExtraButtonProperty() {
 57  0
                 return extraButtonProperty;
 58  
         }
 59  
 
 60  
         public void setExtraButtonProperty(String extraButtonProperty) {
 61  0
                 this.extraButtonProperty = extraButtonProperty;
 62  0
         }
 63  
 
 64  
         public String getExtraButtonSource() {
 65  0
                 return extraButtonSource;
 66  
         }
 67  
             
 68  
         public String getExtraButtonOnclick() {
 69  0
             return this.extraButtonOnclick;
 70  
         }
 71  
          
 72  
         public void setExtraButtonOnclick(String extraButtonOnclick) {
 73  0
             this.extraButtonOnclick = extraButtonOnclick;
 74  0
         }
 75  
 
 76  
         public void setExtraButtonSource(String extraButtonSource) {
 77  0
                 if (StringUtils.isNotBlank(extraButtonSource)) {
 78  0
                         this.extraButtonSource = extraButtonSource
 79  
                                         .replace(
 80  
                                                         "${kr.externalizable.images.url}",
 81  
                                                         KRADServiceLocator
 82  
                                                                         .getKualiConfigurationService()
 83  
                                                                         .getPropertyString(
 84  
                                                                                         KRADConstants.EXTERNALIZABLE_IMAGES_URL_KEY))
 85  
                                         .replace(
 86  
                                                         "${externalizable.images.url}",
 87  
                                                         KRADServiceLocator
 88  
                                                                         .getKualiConfigurationService()
 89  
                                                                         .getPropertyString(
 90  
                                                                                         KRADConstants.APPLICATION_EXTERNALIZABLE_IMAGES_URL_KEY));
 91  
                 }
 92  0
         }
 93  
 
 94  
 }