Class NavigationEvent
java.lang.Object
java.util.EventObject
nl.siegmann.epublib.browsersupport.NavigationEvent
- All Implemented Interfaces:
Serializable
Used to tell NavigationEventListener just what kind of navigation action the user just did.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Navigatorprivate Bookprivate Stringprivate Resourceprivate intprivate intprivate static final longFields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionNavigationEvent(Object source) NavigationEvent(Object source, Navigator navigator) -
Method Summary
Modifier and TypeMethodDescriptionintintintThe previous position within the section.intbooleanbooleanbooleanbooleanbooleanvoidsetNavigator(Navigator navigator) voidsetOldBook(Book oldBook) (package private) voidsetOldFragmentId(String oldFragmentId) (package private) voidsetOldPagePos(int oldPagePos) voidsetOldResource(Resource oldResource) voidsetOldSpinePos(int oldSpinePos) toString()Methods inherited from class EventObject
getSource
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
oldResource
-
oldSpinePos
private int oldSpinePos -
oldBook
-
oldSectionPos
private int oldSectionPos -
oldFragmentId
-
-
Constructor Details
-
NavigationEvent
-
-
Method Details
-
getOldSectionPos
public int getOldSectionPos()The previous position within the section.- Returns:
- The previous position within the section.
-
getOldFragmentId
-
setOldFragmentId
-
getOldBook
-
setOldPagePos
void setOldPagePos(int oldPagePos) -
getCurrentSectionPos
public int getCurrentSectionPos() -
getOldSpinePos
public int getOldSpinePos() -
getCurrentSpinePos
public int getCurrentSpinePos() -
getCurrentFragmentId
-
isBookChanged
public boolean isBookChanged() -
isSpinePosChanged
public boolean isSpinePosChanged() -
isFragmentChanged
public boolean isFragmentChanged() -
getOldResource
-
getCurrentResource
-
setOldResource
-
setOldSpinePos
public void setOldSpinePos(int oldSpinePos) -
setOldBook
-
getCurrentBook
-
isResourceChanged
public boolean isResourceChanged() -
toString
- Overrides:
toStringin classEventObject
-
isSectionPosChanged
public boolean isSectionPosChanged()
-