org.faceless.pdf2.viewer2.feature

## 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 and Description
    --- | ---
    `protected DocumentPanel` | `docpanel` The currently selected document panel.
    `protected PDF` | `pdf` The current document.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NavigationWidget(String s)`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `documentUpdated(DocumentPanelEvent event)` Called when an `DocumentPanelEvent` is raised
    `void` | `initialize(PDFViewer viewer)` Called when the feature is first added to a viewer
    `protected abstract void` | `pageChanged()`
    `void` | `propertyChange(PropertyChangeEvent event)`

    - ### Methods inherited from class org.faceless.pdf2.viewer2.ViewerWidget

      `action, createActionListener, getComponent, getIcon, getViewer, isButtonEnabledByDefault, isDocumentRequired, isMenuEnabledByDefault, 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`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 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 class `ViewerWidget`

    - #### documentUpdated

          public void documentUpdated(DocumentPanelEvent event)

      Description copied from interface: `DocumentPanelListener`
      Called when an `DocumentPanelEvent` is raised
      Specified by:
        `documentUpdated` in interface `DocumentPanelListener`

    - #### propertyChange

          public void propertyChange(PropertyChangeEvent event)

      Specified by:
        `propertyChange` in interface `PropertyChangeListener`

    - #### pageChanged

          protected abstract void pageChanged()

Copyright © 2001-2015 Big Faceless Organization