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 enumConfigure 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 voidhandleMouseExited(MouseEditEvent e, boolean isActive) Invoked when the mouse cursor exits the unobscured part of component's geometry.protected voidhandleMouseMoved(MouseEditEvent e, boolean isActive) Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.voidsetArrowHidingStrategy(GalleryNavigationTool.ArrowHidingStrategy arrowHidingStrategy) protected voidsetEnabled(boolean enabled) Receive notification from the tool manager about the tool's enabled state.voidsetPxDistanceToShow(int pxDistanceToShow) voidshowNextArrow(boolean isShown) Show or hide the Arrow with which you can browse forward.voidshowPreviousArrow(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:ToolReceive 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:
setEnabledin 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:ToolInvoked when the mouse cursor has been moved onto a component but no buttons have been pushed.- Overrides:
handleMouseMovedin classTool- Parameters:
e- the eventisActive- whether this tool is currently active
-
handleMouseExited
Description copied from class:ToolInvoked when the mouse cursor exits the unobscured part of component's geometry.- Overrides:
handleMouseExitedin classTool- Parameters:
e- theMouseEditEventisActive- whether this tool is currently active
-