Class GalleryNavigationTool
java.lang.Object
com.levigo.jadice.web.client.tool.Tool
com.levigo.jadice.web.client.tools.GalleryNavigationTool
- All Implemented Interfaces:
MenuContributor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Configure when to hide the arrowsNested 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
handleMouseExited
(MouseEditEvent e, boolean isActive) Invoked when the mouse cursor exits the unobscured part of component's geometry.protected void
handleMouseMoved
(MouseEditEvent e, boolean isActive) Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.void
setArrowHidingStrategy
(GalleryNavigationTool.ArrowHidingStrategy arrowHidingStrategy) protected void
setEnabled
(boolean enabled) Receive notification from the tool manager about the tool's enabled state.void
setPxDistanceToShow
(int pxDistanceToShow) void
showNextArrow
(boolean isShown) Show or hide the Arrow with which you can browse forward.void
showPreviousArrow
(boolean isShown) Show or hide the Arrow with which you can browse backward.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, handleMousePressed, handleMouseReleased, handleMouseWheelMoved, handlePointerDown, handlePointerMove, handlePointerUp, handleTouchEnd, handleTouchMove, handleTouchStart, propagatePropertyChange, render, setActive, setCursor, setCursor, setManager, setStatusFeedback
-
Constructor Details
-
GalleryNavigationTool
public GalleryNavigationTool()
-
-
Method Details
-
getArrowHidingStrategy
-
setPxDistanceToShow
public void setPxDistanceToShow(int pxDistanceToShow) -
setEnabled
protected void setEnabled(boolean enabled) Description copied from class:Tool
Receive notification from the tool manager about the tool's enabled state. In general, tools need not and should not try to implement different behaviour depending on the enabled state, as this is already covered by the ToolManager calling theTool.handleEditEvent(boolean, EditEvent)
andTool.render(RenderParameters, boolean)
in the appropriate state only. However, some tools may need to perform extended actions (for example, for resource management purposes) upon a change of the enabled state.- Overrides:
setEnabled
in classTool
- Parameters:
enabled
- controls whether to enable or disable thisTool
-
showPreviousArrow
public void showPreviousArrow(boolean isShown) Show or hide the Arrow with which you can browse backward.- Parameters:
isShown
- whether to show the arrow
-
showNextArrow
public void showNextArrow(boolean isShown) Show or hide the Arrow with which you can browse forward.- Parameters:
isShown
- whether to show the arrow
-
handleMouseMoved
Description copied from class:Tool
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.- Overrides:
handleMouseMoved
in classTool
- Parameters:
e
- the eventisActive
- whether this tool is currently active
-
handleMouseExited
Description copied from class:Tool
Invoked when the mouse cursor exits the unobscured part of component's geometry.- Overrides:
handleMouseExited
in classTool
- Parameters:
e
- theMouseEditEvent
isActive
- whether this tool is currently active
-