Class NavigationWidget
- java.lang.Object
-
- org.faceless.pdf2.viewer2.ViewerFeature
-
- org.faceless.pdf2.viewer2.ViewerWidget
-
- org.faceless.pdf2.viewer2.feature.NavigationWidget
-
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,DocumentPanelListener
- Direct Known Subclasses:
PageFirst
,PageLast
,PageNext
,PageNumber
,PagePrevious
,TotalPages
public abstract class NavigationWidget extends ViewerWidget implements DocumentPanelListener, PropertyChangeListener
Abstract superclass of navigation widgets that track the currently displayed page.- Since:
- 2.13.1
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentPanel
docpanel
The currently selected document panel.protected PDF
pdf
The current document.-
Fields inherited from class org.faceless.pdf2.viewer2.ViewerWidget
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description NavigationWidget(String s)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
documentUpdated(DocumentPanelEvent event)
Called when anDocumentPanelEvent
is raisedvoid
initialize(PDFViewer viewer)
Called when the feature is first added to a viewerprotected abstract void
pageChanged()
void
propertyChange(PropertyChangeEvent event)
-
Methods inherited from class org.faceless.pdf2.viewer2.ViewerWidget
action, addPropertyChangeListener, createActionListener, firePropertyChange, getComponent, getIcon, getViewer, isButtonEnabledByDefault, isDocumentRequired, isMenuEnabledByDefault, removePropertyChangeListener, setButton, setComponent, setDocumentRequired, setMenu, setMenu, setToolBarEnabled, setToolBarEnabledAlways, setToolBarFloatable, setToolBarFloating, toString
-
Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown
-
-
-
-
Field Detail
-
docpanel
protected DocumentPanel docpanel
The currently selected document panel.
-
pdf
protected PDF pdf
The current document.
-
-
Constructor Detail
-
NavigationWidget
public NavigationWidget(String s)
-
-
Method Detail
-
initialize
public void initialize(PDFViewer viewer)
Description copied from class:ViewerFeature
Called when the feature is first added to a viewer- Overrides:
initialize
in classViewerWidget
-
documentUpdated
public void documentUpdated(DocumentPanelEvent event)
Description copied from interface:DocumentPanelListener
Called when anDocumentPanelEvent
is raised- Specified by:
documentUpdated
in interfaceDocumentPanelListener
-
propertyChange
public void propertyChange(PropertyChangeEvent event)
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
pageChanged
protected abstract void pageChanged()
-
-