Class PortletWindowRules


  • public class PortletWindowRules
    extends Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int MAXIMIZE
      In this window state the portlet window is displayed maximized
      static int MINIMIZE
      In this window state only the portlet window titlebar is shown
      static int NORMAL
      In this window state the portlet window is displayed normal.
      static int NOT_DEFINED
      Window state not defined.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static List<com.sun.portal.container.ChannelMode> getAllowablePortletWindowModes​(com.sun.portal.container.ChannelMode mode, boolean authless)  
      static List<com.sun.portal.container.ChannelState> getDefaultAllowableWindowStates​(com.sun.portal.container.ChannelMode mode)  
      static com.sun.portal.container.ChannelState getDefaultWindowState​(com.sun.portal.container.ChannelMode portletWindowMode)  
      static int mapToPortletWindow​(com.sun.portal.container.ChannelState windowState)
      Convert the window state representation used by the container layer to the representation understood by the provider layer
      static com.sun.portal.container.ChannelState mapToStandards​(int portalWindowState)
      Convert the window state representation used by the provider layer to the representation understood by the container layer
      static List<com.sun.portal.container.ChannelState> mapToStandards​(int[] portalWindowStates)
      Convert the window state representation used by the provider layer to the representation understood by the container layer
      static boolean validateWindowStateChange​(com.sun.portal.container.ChannelMode portletWindowMode, com.sun.portal.container.ChannelState windowState)
      Validate window state for the portlet window Mode passed in.
    • Field Detail

      • MINIMIZE

        public static final int MINIMIZE
        In this window state only the portlet window titlebar is shown
        See Also:
        Constant Field Values
      • NORMAL

        public static final int NORMAL
        In this window state the portlet window is displayed normal.
        See Also:
        Constant Field Values
      • MAXIMIZE

        public static final int MAXIMIZE
        In this window state the portlet window is displayed maximized
        See Also:
        Constant Field Values
      • NOT_DEFINED

        public static final int NOT_DEFINED
        Window state not defined.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PortletWindowRules

        public PortletWindowRules()
    • Method Detail

      • getAllowablePortletWindowModes

        public static List<com.sun.portal.container.ChannelMode> getAllowablePortletWindowModes​(com.sun.portal.container.ChannelMode mode,
                                                                                                boolean authless)
      • getDefaultAllowableWindowStates

        public static List<com.sun.portal.container.ChannelState> getDefaultAllowableWindowStates​(com.sun.portal.container.ChannelMode mode)
      • validateWindowStateChange

        public static boolean validateWindowStateChange​(com.sun.portal.container.ChannelMode portletWindowMode,
                                                        com.sun.portal.container.ChannelState windowState)
        Validate window state for the portlet window Mode passed in. For Edit and Help mode, window state minimized is not allowed.
      • mapToStandards

        public static List<com.sun.portal.container.ChannelState> mapToStandards​(int[] portalWindowStates)
        Convert the window state representation used by the provider layer to the representation understood by the container layer
      • mapToStandards

        public static com.sun.portal.container.ChannelState mapToStandards​(int portalWindowState)
        Convert the window state representation used by the provider layer to the representation understood by the container layer
      • mapToPortletWindow

        public static int mapToPortletWindow​(com.sun.portal.container.ChannelState windowState)
        Convert the window state representation used by the container layer to the representation understood by the provider layer
      • getDefaultWindowState

        public static com.sun.portal.container.ChannelState getDefaultWindowState​(com.sun.portal.container.ChannelMode portletWindowMode)