Class WPopup

    • Constructor Detail

      • WPopup

        public WPopup()
        Creates a new Window with no URL.
      • WPopup

        public WPopup​(String url)
        Creates a new popup containing the specified content.
        Parameters:
        url - the popup url.
    • Method Detail

      • getHeight

        public int getHeight()
        Returns:
        The height of the popup window. Default is 600px.
      • setHeight

        public void setHeight​(int height)
        Sets the window height.
        Parameters:
        height - The height of the popup window.
      • getWidth

        public int getWidth()
        Returns:
        The width of the popup window. Default is 800px.
      • setWidth

        public void setWidth​(int width)
        Sets the popup window width.
        Parameters:
        width - The width of the popup window.
      • isResizable

        public boolean isResizable()
        Returns:
        true if the popup window is resizable.
      • setResizable

        public void setResizable​(boolean resizable)
        Sets whether the popup window is resizable.
        Parameters:
        resizable - true if the popup window should be resizable, false if not.
      • isScrollable

        public boolean isScrollable()
        Returns:
        true if the popup window is scrollable.
      • setScrollable

        public void setScrollable​(boolean scrollable)
        Sets whether the popup window should have a scroll bar.
        Parameters:
        scrollable - true if the popup window should have a scroll bar, false if not.
      • getUrl

        public String getUrl()
        Returns:
        the URL.
      • setUrl

        public void setUrl​(String url)
        Sets the URL.
        Parameters:
        url - the URL to set.
      • getTargetWindow

        public String getTargetWindow()
        Retrieves the target window name.
        Returns:
        the target window name.
      • setTargetWindow

        public void setTargetWindow​(String targetWindow)
        Sets the target window name.
        Parameters:
        targetWindow - the target window name.
      • afterPaint

        protected void afterPaint​(RenderContext renderContext)
        Make the popup not visible after painting.
        Overrides:
        afterPaint in class AbstractWComponent
        Parameters:
        renderContext - the renderContext to send output to.
      • toString

        public String toString()
        Description copied from class: AbstractWComponent
        Creates a String representation of this component; usually for debugging purposes.
        Overrides:
        toString in class AbstractWComponent
        Returns:
        a String representation of this component, for debugging purposes.
      • getComponentModel

        protected WPopup.PopupModel getComponentModel()
        Returns the effective component model for this component. Subclass may override this method to narrow the return type to their specific model type.
        Overrides:
        getComponentModel in class AbstractWComponent
        Returns:
        the effective component model
      • getOrCreateComponentModel

        protected WPopup.PopupModel getOrCreateComponentModel()
        Retrieves the model for this component so that it can be modified. If this method is called during request processing, and a session specific model does not yet exist, then a new model is created. Subclasses may override this method to narrow the return type to their specific model type.
        Overrides:
        getOrCreateComponentModel in class AbstractWComponent
        Returns:
        the model for this component