Class PreviewDialog

    • Constructor Detail

      • PreviewDialog

        public PreviewDialog()
        Creates a non-modal dialog without a title and without a specified Frame owner. A shared, hidden frame will be set as the owner of the dialog.

        This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

        Throws:
        HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
        See Also:
        GraphicsEnvironment.isHeadless(), JComponent.getDefaultLocale()
      • PreviewDialog

        public PreviewDialog​(Frame owner)
        Creates a non-modal dialog without a title with the specified Frame as its owner. If owner is null, a shared, hidden frame will be set as the owner of the dialog.

        This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

        Parameters:
        owner - the Frame from which the dialog is displayed
        Throws:
        HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
        See Also:
        GraphicsEnvironment.isHeadless(), JComponent.getDefaultLocale()
      • PreviewDialog

        public PreviewDialog​(Frame owner,
                             boolean modal)
        Creates a modal or non-modal dialog without a title and with the specified owner Frame. If owner is null, a shared, hidden frame will be set as the owner of the dialog.

        This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

        Parameters:
        owner - the Frame from which the dialog is displayed
        modal - true for a modal dialog, false for one that allows others windows to be active at the same time
        Throws:
        HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
        See Also:
        GraphicsEnvironment.isHeadless(), JComponent.getDefaultLocale()
      • PreviewDialog

        public PreviewDialog​(Dialog owner)
        Creates a non-modal dialog without a title with the specified Dialog as its owner.

        This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

        Parameters:
        owner - the non-null Dialog from which the dialog is displayed
        Throws:
        HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
        See Also:
        GraphicsEnvironment.isHeadless(), JComponent.getDefaultLocale()
      • PreviewDialog

        public PreviewDialog​(Dialog owner,
                             boolean modal)
        Creates a modal or non-modal dialog without a title and with the specified owner dialog.

        This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

        Parameters:
        owner - the non-null Dialog from which the dialog is displayed
        modal - true for a modal dialog, false for one that allows other windows to be active at the same time
        Throws:
        HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
        See Also:
        GraphicsEnvironment.isHeadless(), JComponent.getDefaultLocale()
      • PreviewDialog

        public PreviewDialog​(MasterReport report)
        Creates a non-modal dialog without a title and without a specified Frame owner. A shared, hidden frame will be set as the owner of the dialog.

        This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

        Throws:
        HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
        See Also:
        GraphicsEnvironment.isHeadless(), JComponent.getDefaultLocale()
      • PreviewDialog

        public PreviewDialog​(MasterReport report,
                             Frame owner)
        Creates a non-modal dialog without a title with the specified Frame as its owner. If owner is null, a shared, hidden frame will be set as the owner of the dialog.

        This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

        Parameters:
        owner - the Frame from which the dialog is displayed
        Throws:
        HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
        See Also:
        GraphicsEnvironment.isHeadless(), JComponent.getDefaultLocale()
      • PreviewDialog

        public PreviewDialog​(MasterReport report,
                             Frame owner,
                             boolean modal)
        Creates a modal or non-modal dialog without a title and with the specified owner Frame. If owner is null, a shared, hidden frame will be set as the owner of the dialog.

        This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

        Parameters:
        owner - the Frame from which the dialog is displayed
        modal - true for a modal dialog, false for one that allows others windows to be active at the same time
        Throws:
        HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
        See Also:
        GraphicsEnvironment.isHeadless(), JComponent.getDefaultLocale()
      • PreviewDialog

        public PreviewDialog​(MasterReport report,
                             Dialog owner)
        Creates a non-modal dialog without a title with the specified Dialog as its owner.

        This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

        Parameters:
        owner - the non-null Dialog from which the dialog is displayed
        Throws:
        HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
        See Also:
        GraphicsEnvironment.isHeadless(), JComponent.getDefaultLocale()
      • PreviewDialog

        public PreviewDialog​(MasterReport report,
                             Dialog owner,
                             boolean modal)
        Creates a modal or non-modal dialog without a title and with the specified owner dialog.

        This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

        Parameters:
        owner - the non-null Dialog from which the dialog is displayed
        modal - true for a modal dialog, false for one that allows other windows to be active at the same time
        Throws:
        HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
        See Also:
        GraphicsEnvironment.isHeadless(), JComponent.getDefaultLocale()
    • Method Detail

      • init

        protected void init()
      • setReportController

        public void setReportController​(ReportController reportController)
      • getIconTheme

        public IconTheme getIconTheme()
      • setIconTheme

        public void setIconTheme​(IconTheme theme)
      • setReportJob

        public void setReportJob​(MasterReport reportJob)
      • dispose

        public void dispose()
        Overrides:
        dispose in class Window
      • isToolbarFloatable

        public boolean isToolbarFloatable()
      • setToolbarFloatable

        public void setToolbarFloatable​(boolean toolbarFloatable)
      • getZoom

        public double getZoom()
      • setZoom

        public void setZoom​(double zoom)