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

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

Introduction

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

Prototype

public String getURLMax() 

Source Link

Usage

From source file:com.liferay.portlet.configuration.icon.maximize.internal.MaximizePortletConfigurationIcon.java

License:Open Source License

@Override
public String getOnClick(PortletRequest portletRequest, PortletResponse portletResponse) {

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

    PortletDisplay portletDisplay = themeDisplay.getPortletDisplay();

    return "submitForm(document.hrefFm, '".concat(HtmlUtil.escapeJS(portletDisplay.getURLMax()))
            .concat("'); return false;");
}

From source file:com.liferay.portlet.configuration.icon.maximize.internal.MaximizePortletConfigurationIcon.java

License:Open Source License

@Override
public String getURL(PortletRequest portletRequest, PortletResponse portletResponse) {

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

    PortletDisplay portletDisplay = themeDisplay.getPortletDisplay();

    return portletDisplay.getURLMax();
}