Subversion Repositories bacoAlunos

Rev

Blame | Compare with Previous | Last modification | View Log | RSS feed

package jomm.web.utils;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.ArrayList;

/**
 * @author Jorge Machado
* @date 6/Mar/2008
* @time 17:53:36
* @see jomm.web.utils
*/

public class TopNav
{

    List<NavPlace> navPlaces = new ArrayList<NavPlace>();

    protected TopNav(HttpServletRequest request)
    {
        request.setAttribute(NavPlaceServer.NAV_PLACES_KEY,this);
    }
   
    public List<NavPlace> getNavPlaces()
    {
        return navPlaces;
    }

    public void addNavPlace(1.5.0/docs/api/java/lang/String.html">String url, 1.5.0/docs/api/java/lang/String.html">String messageKey)
    {
        NavPlace n = new NavPlace(url,messageKey);
        navPlaces.add(n);
    }
}