Class NavigationEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class NavigationEvent
    extends java.util.EventObject
    Used to tell NavigationEventListener just what kind of navigation action the user just did.
    See Also:
    Serialized Form
    • Field Detail

      • oldResource

        private Resource oldResource
      • oldSpinePos

        private int oldSpinePos
      • oldBook

        private Book oldBook
      • oldSectionPos

        private int oldSectionPos
      • oldFragmentId

        private java.lang.String oldFragmentId
    • Constructor Detail

      • NavigationEvent

        public NavigationEvent​(java.lang.Object source)
      • NavigationEvent

        public NavigationEvent​(java.lang.Object source,
                               Navigator navigator)
    • Method Detail

      • getOldSectionPos

        public int getOldSectionPos()
        The previous position within the section.
        Returns:
        The previous position within the section.
      • getNavigator

        public Navigator getNavigator()
      • getOldFragmentId

        public java.lang.String getOldFragmentId()
      • setOldFragmentId

        void setOldFragmentId​(java.lang.String oldFragmentId)
      • getOldBook

        public Book getOldBook()
      • setOldPagePos

        void setOldPagePos​(int oldPagePos)
      • getCurrentSectionPos

        public int getCurrentSectionPos()
      • getOldSpinePos

        public int getOldSpinePos()
      • getCurrentSpinePos

        public int getCurrentSpinePos()
      • getCurrentFragmentId

        public java.lang.String getCurrentFragmentId()
      • isBookChanged

        public boolean isBookChanged()
      • isSpinePosChanged

        public boolean isSpinePosChanged()
      • isFragmentChanged

        public boolean isFragmentChanged()
      • getOldResource

        public Resource getOldResource()
      • getCurrentResource

        public Resource getCurrentResource()
      • setOldResource

        public void setOldResource​(Resource oldResource)
      • setOldSpinePos

        public void setOldSpinePos​(int oldSpinePos)
      • setNavigator

        public void setNavigator​(Navigator navigator)
      • setOldBook

        public void setOldBook​(Book oldBook)
      • getCurrentBook

        public Book getCurrentBook()
      • isResourceChanged

        public boolean isResourceChanged()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.EventObject
      • isSectionPosChanged

        public boolean isSectionPosChanged()