Class MouseWheelScrollTool
java.lang.Object
com.levigo.jadice.web.client.tool.Tool
com.levigo.jadice.web.client.tools.MouseWheelScrollTool
- All Implemented Interfaces:
MenuContributor
-
Nested Class Summary
Nested classes/interfaces inherited from class com.levigo.jadice.web.client.tool.Tool
Tool.ActivationRequest
-
Field Summary
Fields inherited from class com.levigo.jadice.web.client.tool.Tool
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
handleMouseWheelMoved
(MouseWheelEditEvent e, boolean isActive) Invoked when the mouse wheel is rotated.boolean
Return whether to skip to the previous/next page if scrolling occurs while already scrolled to the top/bottom and using a single-page layout.void
setBrowsePages
(boolean browsePages) Set whether to skip to the previous/next page if scrolling occurs while already scrolled to the top/bottom and using a single-page layout.Methods inherited from class com.levigo.jadice.web.client.tool.Tool
contribute, ensureDebugId, getActivationFeedback, getActivationFeedback, getActivationRequest, getActivationRequestForKeyPressed, getActivationRequestForMouseDragged, getActivationRequestForMousePressed, getActivationRequestForTouchMove, getActivationRequestForTouchStart, getDispatchPriority, getManager, getRenderPriority, handleEditEvent, handleGestureChange, handleGestureEnd, handleGestureStart, handleKeyPressed, handleKeyReleased, handleKeyTyped, handleMouseClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseMoved, handleMousePressed, handleMouseReleased, handlePointerDown, handlePointerMove, handlePointerUp, handleTouchEnd, handleTouchMove, handleTouchStart, propagatePropertyChange, render, setActive, setCursor, setCursor, setEnabled, setManager, setStatusFeedback
-
Constructor Details
-
MouseWheelScrollTool
public MouseWheelScrollTool()
-
-
Method Details
-
handleMouseWheelMoved
Description copied from class:Tool
Invoked when the mouse wheel is rotated.- Overrides:
handleMouseWheelMoved
in classTool
- Parameters:
e
- theMouseEditEvent
isActive
- whether this tool is currently active
-
isBrowsePages
public boolean isBrowsePages()Return whether to skip to the previous/next page if scrolling occurs while already scrolled to the top/bottom and using a single-page layout.- Returns:
true
, if skipping will be performed,false
otherwise
-
setBrowsePages
public void setBrowsePages(boolean browsePages) Set whether to skip to the previous/next page if scrolling occurs while already scrolled to the top/bottom and using a single-page layout.- Parameters:
browsePages
-true
, if skipping should be performed,false
otherwise
-