org.got5.tapestry5.jquery.services.javascript.ConfirmStack Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tapestry5-jquery Show documentation
Show all versions of tapestry5-jquery Show documentation
Tapestry Components Library
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;
}
}