|
||||||||||
| 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.
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 |
void |
setSelected(boolean selected)
Set whether this Widget is selected. |
| Methods inherited from class org.faceless.pdf2.viewer2.ToggleViewerWidget |
|---|
getGroupName, getGroupOwner, getGroupSelection, getWidgets, isSelected, setGroupOwner |
| Methods inherited from class org.faceless.pdf2.viewer2.ViewerWidget |
|---|
getComponent, getViewer, setButton, setComponent, setDocumentRequired, setMenu, setMenu, setToolBarEnabled, setToolBarEnabledAlways, setToolBarFloatable, setToolBarFloating, toString |
| Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature |
|---|
getAllFeatures, getName |
| 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 ToggleViewerWidgetpublic void setSelected(boolean selected)
ToggleViewerWidgetsetSelected(false) on all the other
widgets in this group. Subclasses should override this method to do
whatever they need to do when their active status is changed.
setSelected in class ToggleViewerWidgetselected - whether this Widget is active or notpublic 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 | |||||||||