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

org.got5.tapestry5.jquery.services.javascript.ConfirmStack Maven / Gradle / Ivy

There is a newer version: 4.1.1
Show newest version
package org.got5.tapestry5.jquery.services.javascript;

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

import org.apache.tapestry5.Asset;
import org.apache.tapestry5.services.AssetSource;
import org.apache.tapestry5.services.javascript.JavaScriptAggregationStrategy;
import org.apache.tapestry5.services.javascript.JavaScriptStack;
import org.apache.tapestry5.services.javascript.StylesheetLink;

public class ConfirmStack implements JavaScriptStack
{
	public static final String STACK_ID = "ConfirmStack";

	private final AssetSource assetSource;

	public String getInitialization()
    {
        return null;
    }

    public List getJavaScriptLibraries()
    {
    	final List javaScriptStack = new ArrayList();

        javaScriptStack.add(assetSource.getExpandedAsset("${assets.path}/mixins/confirm/confirm.js"));

        return javaScriptStack;
    }

    public List getStylesheets()
    {
        return Collections.emptyList();
    }

    public List getModules() {
        return Collections.emptyList();
    }

    public List getStacks()
    {
        return Collections.emptyList();
    }

    public ConfirmStack(final AssetSource assetSource)
    {
        this.assetSource = assetSource;
    }

	public JavaScriptAggregationStrategy getJavaScriptAggregationStrategy() {
		return org.apache.tapestry5.services.javascript.JavaScriptAggregationStrategy.COMBINE_AND_MINIMIZE;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy