Class RedirectPage

    • Constructor Detail

      • RedirectPage

        public RedirectPage​(CharSequence url)
        Constructor. The page will immediately redirect to the given url.
        Parameters:
        url - The url to redirect to
      • RedirectPage

        public RedirectPage​(CharSequence url,
                            int waitBeforeRedirectInSeconds)
        Constructor. The page will redirect to the given url after waiting for the given number of seconds.
        Parameters:
        url - The url to redirect to
        waitBeforeRedirectInSeconds - The number of seconds the browser should wait before redirecting
      • RedirectPage

        public RedirectPage​(Page page)
        Construct. The page will redirect to the given Page.
        Parameters:
        page - The page to redirect to.
      • RedirectPage

        public RedirectPage​(Page page,
                            int waitBeforeRedirectInSeconds)
        Construct. The page will redirect to the given Page after waiting for the given number of seconds.
        Parameters:
        page - The page to redirect to.
        waitBeforeRedirectInSeconds - The number of seconds the browser should wait before redirecting
    • Method Detail

      • isVersioned

        public boolean isVersioned()
        Overrides:
        isVersioned in class Component
        Returns:
        true if this component should notify its holding page about changes in its state. If a Page is not versioned then it wont track changes in its components and will use the same Page.getPageId() during its lifetime
        See Also:
        Component.isVersioned()