Package net.lalotech.struts2.map.views

Source Code of net.lalotech.struts2.map.views.LalotechTagLibrary

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.lalotech.struts2.map.views;

import com.opensymphony.xwork2.util.ValueStack;
import java.util.Arrays;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.lalotech.struts2.map.views.freemarker.tags.LalotechModels;
import net.lalotech.struts2.map.views.velocity.components.FieldsetDirective;
import net.lalotech.struts2.map.views.velocity.components.HeadDirective;
import net.lalotech.struts2.map.views.velocity.components.MapDirective;
import net.lalotech.struts2.map.views.velocity.components.MarkerItemDirective;
import net.lalotech.struts2.map.views.velocity.components.PaneDirective;
import net.lalotech.struts2.map.views.velocity.components.PollDirective;
import net.lalotech.struts2.map.views.velocity.components.PolylineItemDirective;
import net.lalotech.struts2.map.views.velocity.components.PortletDirective;
import org.apache.struts2.views.TagLibrary;

/**
*
* @author Windows7x64
*/
public class LalotechTagLibrary implements TagLibrary {

    @Override
    public Object getFreemarkerModels(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new LalotechModels(stack, req, res);
    }

    @Override
    public List<Class> getVelocityDirectiveClasses() {
        Class[] directivas = new Class[]{
            MapDirective.class,
            FieldsetDirective.class,
            HeadDirective.class,
            PaneDirective.class,
            PolylineItemDirective.class,
            MarkerItemDirective.class,
            PollDirective.class,
            PortletDirective.class
        };
        return Arrays.asList(directivas);
    }
}
TOP

Related Classes of net.lalotech.struts2.map.views.LalotechTagLibrary

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.