1 /** 2 * Copyright 2005-2013 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.layout; 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.parse.BeanTags; 21 22 /** 23 * List layout manager is a layout manager for group types to output their items as either ordered or 24 * unordered lists 25 */ 26 @BeanTags({@BeanTag(name = "listLayout-bean", parent = "Uif-ListLayout"), 27 @BeanTag(name = "orderedListLayout-bean", parent = "Uif-OrderedListLayout")}) 28 public class ListLayoutManager extends LayoutManagerBase { 29 30 private static final long serialVersionUID = -8611267646944565117L; 31 private boolean orderedList = false; 32 33 /** 34 * If true, this list layout is an ordered list (ol). Otherwise, the the layout is an unordered list (ul) 35 * 36 * @return true if orderedList, false if unordered 37 */ 38 @BeanTagAttribute(name = "orderedList") 39 public boolean isOrderedList() { 40 return orderedList; 41 } 42 43 /** 44 * Set whether or not this is an orderedList 45 * 46 * @param orderedList 47 */ 48 public void setOrderedList(boolean orderedList) { 49 this.orderedList = orderedList; 50 } 51 }