Class PageState

  • All Implemented Interfaces:
    Serializable

    public class PageState
    extends Object
    implements Serializable
    A page state hold a process state along with its current page counter. This is used to save the report state to allow faster pagination later on.
    Author:
    Thomas Morgner
    See Also:
    Serialized Form
    • Constructor Detail

      • PageState

        public PageState​(ProcessState reportState,
                         int pageCursor)
    • Method Detail

      • getPageCursor

        public int getPageCursor()
      • prepareStorage

        public void prepareStorage()
      • isSafeToStoreEarly

        public boolean isSafeToStoreEarly()
        Tests whether this state can be saved during the pagination stage. This only returns true if there are no inline-subreports processed in the current state.
        Returns:
        true, if this is a valid safe-state, false otherwise.