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

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

Introduction

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

Prototype

public boolean isShowCloseIcon() 

Source Link

Usage

From source file:com.liferay.portlet.configuration.icon.close.internal.ClosePortletConfigurationIcon.java

License:Open Source License

@Override
public boolean isShow(PortletRequest portletRequest) {
    ThemeDisplay themeDisplay = (ThemeDisplay) portletRequest.getAttribute(WebKeys.THEME_DISPLAY);

    PortletDisplay portletDisplay = themeDisplay.getPortletDisplay();

    return portletDisplay.isShowCloseIcon();
}