|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faceless.pdf2.viewer2.ViewerFeature
org.faceless.pdf2.viewer2.ViewerWidget
org.faceless.pdf2.viewer2.ToggleViewerWidget
org.faceless.pdf2.viewer2.feature.DragScroll
public class DragScroll
This widget allows the document to be dragged and scrolled. This widget is selected by default if no other items in its group are selected. The name of this feature is DragScroll
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.
| Field Summary | |
|---|---|
static String |
GROUP
The name of the ToggleViewerWidget Group that this widget is a part of. |
| Constructor Summary | |
|---|---|
DragScroll()
|
|
| Method Summary | |
|---|---|
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 |
void |
pageAction(PagePanelInteractionEvent event)
Called when a PagePanelInteractionEvent is raised |
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. |
| Methods inherited from class org.faceless.pdf2.viewer2.ToggleViewerWidget |
|---|
getGroupName, getGroupOwner, getGroupSelection, getWidgets, isSelected, setGroupOwner, setSelected |
| Methods inherited from class org.faceless.pdf2.viewer2.ViewerWidget |
|---|
createActionListener, getComponent, 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, getName, isEnabledByDefault |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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.
| Constructor Detail |
|---|
public DragScroll()
| Method Detail |
|---|
public void initialize(PDFViewer viewer)
ViewerFeature
initialize in class ToggleViewerWidgetpublic void action(ViewerEvent event)
ToggleViewerWidgetToggleViewerWidget.setSelected(boolean)
action in class ToggleViewerWidget
protected void updateViewport(DocumentViewport vp,
boolean selected)
ToggleViewerWidgetToggleViewerWidget.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 ToggleViewerWidgetpublic void documentUpdated(DocumentPanelEvent event)
DocumentPanelListenerDocumentPanelEvent is raised
documentUpdated in interface DocumentPanelListenerpublic void pageAction(PagePanelInteractionEvent event)
PagePanelInteractionListenerPagePanelInteractionEvent is raised
pageAction in interface PagePanelInteractionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||