001/* 002 * (C) Copyright 2006-2009 Nuxeo SAS <http://nuxeo.com> and others 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 * 009 * Contributors: 010 * Jean-Marc Orliaguet, Chalmers 011 * 012 * $Id$ 013 */ 014 015package org.nuxeo.theme.fragments; 016 017import java.util.ArrayList; 018import java.util.List; 019 020import org.nuxeo.theme.views.ViewType; 021 022public class FragmentInfo { 023 024 private final FragmentType fragmentType; 025 026 public List<ViewType> viewTypes = new ArrayList<ViewType>(); 027 028 FragmentInfo(FragmentType fragmentType) { 029 this.fragmentType = fragmentType; 030 } 031 032 public List<ViewType> getViewTypes() { 033 return viewTypes; 034 } 035 036 public FragmentType getFragmentType() { 037 return fragmentType; 038 } 039 040 public void addView(final ViewType viewType) { 041 viewTypes.add(viewType); 042 } 043 044 public List<ViewType> getViews() { 045 return viewTypes; 046 } 047 048 public int size() { 049 return viewTypes.size(); 050 } 051 052}