Example usage for com.liferay.portal.kernel.theme PortletDisplay getDescription

List of usage examples for com.liferay.portal.kernel.theme PortletDisplay getDescription

Introduction

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

Prototype

public String getDescription() 

Source Link

Usage

From source file:com.liferay.product.navigation.control.menu.web.internal.PortletHeaderProductNavigationControlMenuEntry.java

License:Open Source License

@Override
public boolean includeIcon(HttpServletRequest request, HttpServletResponse response) throws IOException {

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

    PortletDisplay portletDisplay = themeDisplay.getPortletDisplay();

    request.setAttribute(ProductNavigationControlMenuWebKeys.PORTLET_DESCRIPTION,
            portletDisplay.getDescription());
    request.setAttribute(ProductNavigationControlMenuWebKeys.PORTLET_TITLE, portletDisplay.getTitle());

    return super.includeIcon(request, response);
}