[API Review] RT-17666: Webview and HTMLEditor should support printing their content

Richard Bair richard.bair at oracle.com
Mon May 20 08:38:45 PDT 2013


Hi Peter,

I'd like to get Phil's review of this first, but I don't see any problems myself.

Richard

On May 20, 2013, at 3:46 AM, Peter Zhelezniakov <Peter.Zhelezniakov at oracle.com> wrote:

> Hi all,
> 
> I propose adding two printing methods to WebEngine and HTMLEditor. This work is covered by RT-17666.
> 
> Currently both components can only be printed in "screenshot mode" just like any other Node. Obviously this is not what people want most of the time. The proposed methods print components' content as a document.
> 
> For WebEngine, the new methods is:
> 
>    /**
>     * Prints the current Web page using the given printer job.
>     * <p>This method does not modify the state of the job, nor does it call
>     * {@link PrinterJob#endJob}, so the job may be safely reused afterwards.
>     *
>     * @param job printer job used for printing
>     */
>    public void print(PrinterJob job);
> 
> and a similar one for HTMLEditor:
> 
>    /**
>     * Prints the content of the editor using the given printer job.
>     * <p>This method does not modify the state of the job, nor does it call
>     * {@link PrinterJob#endJob}, so the job may be safely reused afterwards.
>     *
>     * @param job printer job used for printing
>     */
>    public void print(PrinterJob job);
> 
> Thanks!
> -- 
> Peter



More information about the openjfx-dev mailing list