public class PageNumber extends NavigationWidget
usePageLabels | If true (the default), display the page label for
the selected page if specified. If false, display the physical page number (the default behaviour
prior to 2.11.19). |
---|---|
alignment | Can be set to "right", "center" or "left" (the default) to position the page number in the box |
This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.
docpanel, pdf
Constructor and Description |
---|
PageNumber() |
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 void |
pageChanged() |
void |
propertyChange(PropertyChangeEvent event) |
void |
setUsePageLabels(boolean uselabels)
Set whether to display the "page labels" if defined on this PDF, or
whether to always display the physical page number.
|
action, createActionListener, getComponent, getIcon, getViewer, isButtonEnabledByDefault, isDocumentRequired, isMenuEnabledByDefault, setButton, setComponent, setDocumentRequired, setMenu, setMenu, setToolBarEnabled, setToolBarEnabledAlways, setToolBarFloatable, setToolBarFloating, toString
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown
public void initialize(PDFViewer viewer)
ViewerFeature
initialize
in class NavigationWidget
public void setUsePageLabels(boolean uselabels)
uselabels
- if true, use the page labels if defined, otherwise use the physical page numberPDF.getPageLabel(int)
,
ThumbnailPanel.setUsePageLabels(boolean)
public void documentUpdated(DocumentPanelEvent event)
DocumentPanelListener
DocumentPanelEvent
is raiseddocumentUpdated
in interface DocumentPanelListener
documentUpdated
in class NavigationWidget
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
propertyChange
in class NavigationWidget
protected void pageChanged()
pageChanged
in class NavigationWidget
Copyright © 2001-2017 Big Faceless Organization