001/* 002 * (C) Copyright 2007 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 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 * 016 * Contributors: 017 * Nuxeo - initial API and implementation 018 * 019 * $Id: Functions.java 19475 2007-05-27 10:33:53Z sfermigier $ 020 */ 021package org.nuxeo.ecm.platform.ui.web.directory; 022 023/** 024 * Chainselect Listbox data. A structure used as var in a jsf 'repeat' iteration. 025 * 026 * @author <a href="mailto:dm@nuxeo.com">Dragos Mihalache</a> 027 */ 028public class CSLData { 029 030 private final int index; 031 032 private final String dirName; 033 034 public CSLData(Integer index, String dirName) { 035 this.index = index; 036 this.dirName = dirName; 037 } 038 039 public int getIndex() { 040 return index; 041 } 042 043 public String getDirName() { 044 return dirName; 045 } 046}