Class BookmarkablePageLink<T>

    • Constructor Detail

      • BookmarkablePageLink

        public BookmarkablePageLink​(String id,
                                    Class<C> pageClass)
        Constructor.
        Type Parameters:
        C - type of page
        Parameters:
        id - The name of this component
        pageClass - The class of page to link to
      • BookmarkablePageLink

        public BookmarkablePageLink​(String id,
                                    Class<C> pageClass,
                                    PageParameters parameters)
        Constructor.
        Type Parameters:
        C -
        Parameters:
        id - See Component
        pageClass - The class of page to link to
        parameters - The parameters to pass to the new page when the link is clicked
    • Method Detail

      • getPageClass

        public final Class<? extends PagegetPageClass()
        Get the page class registered with the link
        Returns:
        Page class
      • getStatelessHint

        protected boolean getStatelessHint()
        Description copied from class: Component
        Returns whether the component can be stateless. Also the component behaviors must be stateless, otherwise the component will be treat as stateful. In order for page to be stateless (and not to be stored in session), all components (and component behaviors) must be stateless.
        Overrides:
        getStatelessHint in class Link<T>
        Returns:
        whether the component can be stateless
        See Also:
        Component.getStatelessHint()
      • onClick

        public final void onClick()
        THIS METHOD IS NOT USED! Bookmarkable links do not have a click handler. It is here to satisfy the interface only, as bookmarkable links will be dispatched by the handling servlet.
        Specified by:
        onClick in class Link<T>
        See Also:
        Link.onClick()