public class DragScroll extends ToggleViewerWidget implements DocumentPanelListener
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.
Modifier and Type | Field and Description |
---|---|
static String |
GROUP
The name of the
ToggleViewerWidget Group that this widget is a part of. |
Constructor and Description |
---|
DragScroll() |
Modifier and Type | Method and Description |
---|---|
void |
action(ViewerEvent event)
Toggle the active state of this widget by calling
ToggleViewerWidget.setSelected(boolean) |
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 |
updateViewport(DocumentViewport vp,
boolean selected)
Called from
ToggleViewerWidget.setSelected(boolean) , this method is called in each
viewport in use by the PDFViewer or DocumentPanel so
it can update its status. |
getGroupName, getGroupOwner, getGroupSelection, getWidgets, isSelected, setGroupOwner, setSelected
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 static final String GROUP
ToggleViewerWidget
Group that this widget is a part of.
All other widgets that want to control actions on the DocumentViewport itself
should be a part of this group.public void initialize(PDFViewer viewer)
ViewerFeature
initialize
in class ToggleViewerWidget
public void action(ViewerEvent event)
ToggleViewerWidget
ToggleViewerWidget.setSelected(boolean)
action
in class ToggleViewerWidget
protected void updateViewport(DocumentViewport vp, boolean selected)
ToggleViewerWidget
ToggleViewerWidget.setSelected(boolean)
, this method is called in each
viewport in use by the PDFViewer
or DocumentPanel
so
it can update its status. By default it is a no-op.updateViewport
in class ToggleViewerWidget
public void documentUpdated(DocumentPanelEvent event)
DocumentPanelListener
DocumentPanelEvent
is raiseddocumentUpdated
in interface DocumentPanelListener
Copyright © 2001-2017 Big Faceless Organization