Interface IPdfviewer

    • Field Detail

      • DEFAULT

        static final IPdfviewer DEFAULT
        Constant for default attributes of this immutable component.
    • Method Detail

      • getWidgetClass

        default java.lang.String getWidgetClass()
        Returns the client widget class.

        Default: "zkex.pdfviewer.Pdfviewer"

        Specified by:
        getWidgetClass in interface IComponent<IPdfviewer>
      • getSrc

        @Nullable
        java.lang.String getSrc()
        Returns the source URI of the PDF file.

        Default: null.

      • withSrc

        IPdfviewer withSrc​(@Nullable
                           java.lang.String src)
        Returns a copy of this immutable component with the specified src.

        Sets the source URI of the PDF file.

        Parameters:
        src - The source URI of the PDF file.

        Default: null

        Returns:
        A modified copy of the this object
      • getZoom

        default double getZoom()
        Returns the zoom level.

        Default: 1.0.

      • withZoom

        IPdfviewer withZoom​(double zoom)
        Returns a copy of this immutable component with the specified zoom.

        Sets the zoom level.

        Parameters:
        zoom - The zoom level.

        Default: 1.0

        Returns:
        A modified copy of the this object
      • getRotation

        default int getRotation()
        Returns the rotation angle.

        Default: 0.

      • withRotation

        IPdfviewer withRotation​(int rotation)
        Returns a copy of this immutable component with the specified rotation.

        Sets the rotation angle.

        Parameters:
        rotation - The rotation angle

        Default: 0

        Returns:
        A modified copy of the this object
      • of

        static IPdfviewer of​(java.lang.String src)
        Returns the instance with the given src.
        Parameters:
        src - The source URI of the component
      • of

        static IPdfviewer of​(IToolbar child)
        Returns the instance with the given child.
      • ofId

        static IPdfviewer ofId​(java.lang.String id)
        Returns the instance with the given id.
        Parameters:
        id - The id to identify this component