001/** 002 * Copyright 2005-2018 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.krad.uif.widget; 017 018import org.kuali.rice.krad.datadictionary.parse.BeanTag; 019import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute; 020 021/** 022 * Accordion widget class used to create an accordion based layout. 023 * 024 * @author Kuali Rice Team (rice.collab@kuali.org) 025 */ 026@BeanTag(name = "accordion", parent = "Uif-Accordion") 027public class Accordion extends WidgetBase { 028 private static final long serialVersionUID = 8156445677141475527L; 029 030 private String active; 031 032 /** 033 * The active option determines which accordion item is open by default. Set "false" as the string for 034 * no item open, use zero-based index to select an item to be open by default. 035 * 036 * @return the accordion item that is open by default, "false" if no items open 037 */ 038 @BeanTagAttribute 039 public String getActive() { 040 return active; 041 } 042 043 /** 044 * Set the accordion item open by default (zero-based index), "false" if no item should be open. 045 * 046 * @param active true if the accoridion item should be open by default 047 */ 048 public void setActive(String active) { 049 this.active = active; 050 } 051}