Example usage for com.liferay.portal.kernel.theme ThemeDisplay getPathThemeImages

List of usage examples for com.liferay.portal.kernel.theme ThemeDisplay getPathThemeImages

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.theme ThemeDisplay getPathThemeImages.

Prototype

public String getPathThemeImages() 

Source Link

Document

Returns the URL for the theme's images.

Usage

From source file:com.liferay.pokedex.web.action.ListPokemonMVCRenderCommand.java

License:Open Source License

@Override
public String render(RenderRequest renderRequest, RenderResponse renderResponse) {

    Template template = (Template) renderRequest.getAttribute(WebKeys.TEMPLATE);

    template.put("addPokemonURL", getAddPokemonURL(renderResponse));

    ThemeDisplay themeDisplay = (ThemeDisplay) renderRequest.getAttribute(WebKeys.THEME_DISPLAY);

    template.put("pathThemeImages", themeDisplay.getPathThemeImages());

    User user = themeDisplay.getUser();//  w w w  .  ja v a2s  . c  om

    List<Pokemon> pokemons = _pokemonLocalService.getPokemons(user.getGroupId());

    template.put("pokemons", toSoyData(pokemons, renderResponse));

    template.put("originalPokemonList", toSoyData(pokemons, renderResponse));

    return PATH;
}