Package com.liferay.portal.theme

Examples of com.liferay.portal.theme.PortletDisplay


      ExternalContext externalContext = facesContext.getExternalContext();
      String portletNamespace = StringPool.BLANK;
      ThemeDisplay themeDisplay = (ThemeDisplay) externalContext.getRequestMap().get(WebKeys.THEME_DISPLAY);

      if (themeDisplay != null) {
        PortletDisplay portletDisplay = themeDisplay.getPortletDisplay();
        portletNamespace = portletDisplay.getNamespace();
      }

      char separatorChar = UINamingContainer.getSeparatorChar(facesContext);
      String clientWindowCounterKey = CLIENT_WINDOW_COUNTER_KEY + separatorChar + portletNamespace;
      Object session = externalContext.getSession(true);
View Full Code Here


    String responseNamespace, PortletContext portletContext) {

    try {

      // Get the PortletDisplay from the ThemeDisplay.
      PortletDisplay portletDisplay = themeDisplay.getPortletDisplay();

      // Get the p_p_col_id and save it.
      portletContext.setAttribute(NAMESPACED_P_P_COL_ID, portletDisplay.getColumnId());

      // Get the p_p_col_pos and save it.
      portletContext.setAttribute(NAMESPACED_P_P_COL_POS, Integer.toString(portletDisplay.getColumnPos()));

      // Get the p_p_col_count and save it.
      portletContext.setAttribute(NAMESPACED_P_P_COL_COUNT, Integer.toString(portletDisplay.getColumnCount()));

      // Get the p_p_mode and save it.
      if (portletMode != null) {
        portletContext.setAttribute(NAMESPACED_P_P_MODE, portletMode.toString());
      }
View Full Code Here

TOP

Related Classes of com.liferay.portal.theme.PortletDisplay

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.