List of usage examples for com.liferay.portal.kernel.theme PortletDisplay isStateMin
public boolean isStateMin()
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); }