ICEpdf
  1. ICEpdf
  2. PDF-490

Page loading progress events

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.4
    • Fix Version/s: 5.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description


      Introduce parsing and paint event broadcast for monitoring progress of the page load. On a high level it would be simply a start and finished event but a more granular event structure would be created.

      More detail to follow.

        Activity

        Hide
        Patrick Corless added a comment -

        A new interface has been created PageLoadingListener which allows a user to programatically listen for events fired during the parsing and painting a of a page. The JavaDoc for org.icepdf.core.events.PageLoadingListener has been updated to explain the ordering of when each event type is expected.

        The Viewer RI has been updated so that the PageViewComponentImpl will now show a wait cursor while the page is being loaded. A new example ./examples/loadingEvents/PageLoadingEvents.java has also been added which uses the new reference class org.icepdf.ri.common.views.listeners.MetricsPageLoadingListener which will write to the console metrics information of each page that is loaded in a document specified at the command line.

        As a side note it's really nice to see the wait cursor back in Viewer RI during a page load.

        Show
        Patrick Corless added a comment - A new interface has been created PageLoadingListener which allows a user to programatically listen for events fired during the parsing and painting a of a page. The JavaDoc for org.icepdf.core.events.PageLoadingListener has been updated to explain the ordering of when each event type is expected. The Viewer RI has been updated so that the PageViewComponentImpl will now show a wait cursor while the page is being loaded. A new example ./examples/loadingEvents/PageLoadingEvents.java has also been added which uses the new reference class org.icepdf.ri.common.views.listeners.MetricsPageLoadingListener which will write to the console metrics information of each page that is loaded in a document specified at the command line. As a side note it's really nice to see the wait cursor back in Viewer RI during a page load.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: