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

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

Introduction

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

Prototype

public boolean isStateMin() 

Source Link

Usage

From source file:com.liferay.portlet.configuration.icon.minimize.internal.MinimizePortletConfigurationIcon.java

License:Open Source License

@Override
public String getMessage(PortletRequest portletRequest) {
    String key = "minimize";

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

    PortletDisplay portletDisplay = themeDisplay.getPortletDisplay();

    if (portletDisplay.isStateMin()) {
        key = "restore";
    }/* w ww .j  a v  a2 s  .co  m*/

    return LanguageUtil.get(getResourceBundle(getLocale(portletRequest)), key);
}