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

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

Introduction

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

Prototype

public boolean isShowBackIcon() 

Source Link

Usage

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

License:Open Source License

@Override
public boolean isShow(HttpServletRequest request) throws PortalException {
    ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);

    Layout layout = themeDisplay.getLayout();

    if (!layout.isTypeControlPanel()) {
        return false;
    }/*from w  w  w .ja v  a 2 s . c  om*/

    PortletDisplay portletDisplay = themeDisplay.getPortletDisplay();

    if (!portletDisplay.isShowBackIcon()) {
        return false;
    }

    return super.isShow(request);
}