All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.cornell.mannlib.vitro.webapp.web.templatemodels.menu.Menu Maven / Gradle / Ivy

/* $This file is distributed under the terms of the license in LICENSE$ */

package edu.cornell.mannlib.vitro.webapp.web.templatemodels.menu;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import edu.cornell.mannlib.vitro.webapp.web.templatemodels.BaseTemplateModel;

public class Menu extends BaseTemplateModel {

    private static final long serialVersionUID = 1L;
    private static final Log log = LogFactory.getLog(Menu.class.getName());

    protected List items;

    public Menu() {
        items = new ArrayList();
    }

    public void addItem(String text, String path) {
        items.add(new MenuItem(text, path));
    }

    /* Template properties */

    public List getItems() {
        return items;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy