1 /** 2 * Copyright 2005-2012 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.krad.uif.view; 17 18 import org.kuali.rice.krad.datadictionary.parse.BeanTag; 19 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute; 20 import org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase; 21 22 import java.io.Serializable; 23 import java.util.List; 24 25 /** 26 * Theme for the current view, currently just a list of stylesheets and js files, but has the potential 27 * for expansion in the future 28 * 29 * @author Kuali Rice Team (rice.collab@kuali.org) 30 */ 31 @BeanTag(name="viewTheme") 32 public class ViewTheme extends UifDictionaryBeanBase implements Serializable{ 33 private static final long serialVersionUID = 7063256242857896580L; 34 35 private List<String> cssFiles; 36 private List<String> scriptFiles; 37 38 /** 39 * Get the css stylesheets to be imported for this view, this must be a list of .css files 40 * with their relative paths 41 * 42 * @return List<String> 43 */ 44 @BeanTagAttribute(name="cssFiles",type= BeanTagAttribute.AttributeType.LISTVALUE) 45 public List<String> getCssFiles() { 46 return cssFiles; 47 } 48 49 /** 50 * Set the css stylesheets 51 * 52 * @param cssFiles 53 */ 54 public void setCssFiles(List<String> cssFiles) { 55 this.cssFiles = cssFiles; 56 } 57 58 /** 59 * Get the javascript files to be imported for this view, these must be a list of .js files 60 * with their relative paths 61 * 62 * @return List<String> 63 */ 64 @BeanTagAttribute(name="scriptFiles",type= BeanTagAttribute.AttributeType.LISTVALUE) 65 public List<String> getScriptFiles() { 66 return scriptFiles; 67 } 68 69 /** 70 * Set the js files 71 * 72 * @param scriptFiles 73 */ 74 public void setScriptFiles(List<String> scriptFiles) { 75 this.scriptFiles = scriptFiles; 76 } 77 }