1 /* 2 * Copyright 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 package org.kuali.ole.sys.document.datadictionary; 17 18 import org.kuali.ole.sys.businessobject.AccountingLine; 19 import org.kuali.ole.sys.document.web.AccountingLineViewActionsField; 20 import org.kuali.ole.sys.document.web.TableJoining; 21 import org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase; 22 23 public class AccountingLineViewActionDefinition extends DataDictionaryDefinitionBase implements AccountingLineViewRenderableElementDefinition { 24 private String actionMethod; 25 private String actionLabel; 26 private String imageName; 27 28 /** 29 * Gets the actionLabel attribute. 30 * @return Returns the actionLabel. 31 */ 32 public String getActionLabel() { 33 return actionLabel; 34 } 35 /** 36 * Sets the actionLabel attribute value. 37 * @param actionLabel The actionLabel to set. 38 */ 39 public void setActionLabel(String actionLabel) { 40 this.actionLabel = actionLabel; 41 } 42 /** 43 * Gets the actionMethod attribute. 44 * @return Returns the actionMethod. 45 */ 46 public String getActionMethod() { 47 return actionMethod; 48 } 49 /** 50 * Sets the actionMethod attribute value. 51 * @param actionMethod The actionMethod to set. 52 */ 53 public void setActionMethod(String actionMethod) { 54 this.actionMethod = actionMethod; 55 } 56 /** 57 * Gets the imageName attribute. 58 * @return Returns the imageName. 59 */ 60 public String getImageName() { 61 return imageName; 62 } 63 /** 64 * Sets the imageName attribute value. 65 * @param imageName The imageName to set. 66 */ 67 public void setImageName(String imageName) { 68 this.imageName = imageName; 69 } 70 71 /** 72 * Since this metadata definition has no children, there's nothing to validate and this method checks nothing. 73 * @see org.kuali.rice.krad.datadictionary.DataDictionaryDefinition#completeValidation(java.lang.Class, java.lang.Class) 74 */ 75 public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass) { 76 // not checkin' nothing 77 } 78 79 /** 80 * @see org.kuali.ole.sys.document.datadictionary.AccountingLineViewRenderableElementDefinition#createLayoutElement(java.lang.Class) 81 */ 82 public TableJoining createLayoutElement(Class<? extends AccountingLine> accountingLineClass) { 83 return new AccountingLineViewActionsField(); 84 } 85 }