Interface Presentable

    • Method Detail

      • render

        void render​(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res,
                    Presentation presentation,
                    boolean ignoreServerSideIncludeLocation)
             throws IOException,
                    javax.servlet.ServletException
        Render the object taking into account if it is a serverside include or not.
        Parameters:
        req -
        res -
        Throws:
        IOException
        javax.servlet.ServletException
      • render

        void render​(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res,
                    Presentation presentation,
                    boolean ignoreServerSideIncludeLocation,
                    Presentable baseObject)
             throws IOException,
                    javax.servlet.ServletException
        Render the object taking into account if it is a serverside include or not and add the baseObject to the presentationContext.
        Parameters:
        req -
        res -
        Throws:
        IOException
        javax.servlet.ServletException
      • getPresentation

        Presentation getPresentation()
        Return this object's Presentation object.
        Returns:
        this object's Presentation object.
      • setPresentation

        void setPresentation​(Presentation presentation)
        Set this object's Presentation object.
        Parameters:
        presentation - this object's Presentation object to set.
      • getPresentationVariant

        PresentationVariant getPresentationVariant()
        Returns the presentation variant assigned to this object.
        Returns:
        the presentation variant assigned to this object, null if no variant is assigned
      • setPresentationVariant

        void setPresentationVariant​(PresentationVariant variant)
        Sets the presentation variant assigned to this object. If null is passed and a variant is assigned, this variant is unassigned. Setting a presentation variant implicitly also sets the presentation of this object to the presentation associated with the passed variant. No warning is displayed when a variant is set that does not match the currently assigned presentation, the presentation is just overwritten.
        Parameters:
        variant - the presentation variant to assign to this object