public class SlideLock
extends javafx.scene.control.Control
This class represents a slide to unlock control. This control’s metaphor is to prevent a user from accidental input via keyboard, touch, or mouse. The user would need to actively slide the button to the far right to unlock, thus allowing the user to proceed. When using a mouse the control would detect a mouse press, dragged, and release. When using a touch enabled devices the control can detect a touch press, touch dragged, and touch release events.
Type | Property and Description |
---|---|
javafx.beans.property.BooleanProperty |
backgroundVisible |
javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> |
buttonArrowBackgroundColor |
javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> |
buttonColor |
javafx.beans.property.BooleanProperty |
buttonGlareVisible |
javafx.beans.property.DoubleProperty |
endX |
javafx.beans.property.BooleanProperty |
locked |
javafx.beans.property.DoubleProperty |
startX |
javafx.beans.property.DoubleProperty |
textOpacity |
javafx.beans.property.StringProperty |
text |
contextMenuProperty, skinClassNameProperty, skinProperty, tooltipProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
impl_traversalEngineProperty, needsLayoutProperty
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
Modifier and Type | Field and Description |
---|---|
static double |
BUTTON_YCOORD |
static double |
END_XCOORD |
static double |
PREFERRED_HEIGHT |
static double |
PREFERRED_WIDTH |
static double |
START_XCOORD |
Constructor and Description |
---|
SlideLock() |
SlideLock(java.lang.String displayText) |
Modifier and Type | Method and Description |
---|---|
void |
autoUnlock() |
javafx.beans.property.BooleanProperty |
backgroundVisibleProperty() |
javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> |
buttonArrowBackgroundColorProperty() |
javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> |
buttonColorProperty() |
javafx.beans.property.BooleanProperty |
buttonGlareVisibleProperty() |
javafx.beans.property.DoubleProperty |
endXProperty() |
javafx.scene.paint.Paint |
getButtonArrowBackgroundColor() |
javafx.scene.paint.Paint |
getButtonColor() |
double |
getEndX() |
javafx.animation.Timeline |
getSnapButtonBackAnim() |
double |
getStartX() |
java.lang.String |
getText() |
double |
getTextOpacity() |
java.lang.String |
getUserAgentStylesheet() |
boolean |
isBackgroundVisible() |
boolean |
isButtonGlareVisible() |
boolean |
isLocked() |
javafx.beans.property.BooleanProperty |
lockedProperty() |
void |
setBackgroundVisible(boolean backgroundVisible) |
void |
setButtonArrowBackgroundColor(javafx.scene.paint.Paint color) |
void |
setButtonColor(javafx.scene.paint.Paint color) |
void |
setButtonGlareVisible(boolean backgroundVisible) |
void |
setEndX(double endX) |
void |
setLocked(boolean locked) |
void |
setStartX(double startX) |
void |
setText(java.lang.String text) |
void |
setTextOpacity(double opacity) |
javafx.beans.property.DoubleProperty |
startXProperty() |
javafx.beans.property.DoubleProperty |
textOpacityProperty() |
javafx.beans.property.StringProperty |
textProperty() |
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, createDefaultSkin, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getSkin, getTooltip, impl_cssGetFocusTraversableInitialValue, impl_processCSS, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinClassNameProperty, skinProperty, tooltipProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace, snapToPixelProperty, widthProperty
getChildren, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBounds
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
public final javafx.beans.property.BooleanProperty backgroundVisibleProperty
public final javafx.beans.property.BooleanProperty buttonGlareVisibleProperty
public final javafx.beans.property.BooleanProperty lockedProperty
isLocked()
,
setLocked(boolean)
public final javafx.beans.property.StringProperty textProperty
getText()
,
setText(String)
public final javafx.beans.property.DoubleProperty startXProperty
getStartX()
,
setStartX(double)
public final javafx.beans.property.DoubleProperty endXProperty
getEndX()
,
setEndX(double)
public final javafx.beans.property.DoubleProperty textOpacityProperty
getTextOpacity()
,
setTextOpacity(double)
public final javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> buttonArrowBackgroundColorProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> buttonColorProperty
getButtonColor()
,
setButtonColor(Paint)
public static final double START_XCOORD
public static final double END_XCOORD
public static final double BUTTON_YCOORD
public static final double PREFERRED_WIDTH
public static final double PREFERRED_HEIGHT
public SlideLock()
public SlideLock(java.lang.String displayText)
public java.lang.String getUserAgentStylesheet()
getUserAgentStylesheet
in class javafx.scene.layout.Region
public final boolean isBackgroundVisible()
public final void setBackgroundVisible(boolean backgroundVisible)
public final javafx.beans.property.BooleanProperty backgroundVisibleProperty()
public final boolean isButtonGlareVisible()
public final void setButtonGlareVisible(boolean backgroundVisible)
public final javafx.beans.property.BooleanProperty buttonGlareVisibleProperty()
public final boolean isLocked()
public final void setLocked(boolean locked)
public final javafx.beans.property.BooleanProperty lockedProperty()
isLocked()
,
setLocked(boolean)
public final void autoUnlock()
public final java.lang.String getText()
public final void setText(java.lang.String text)
public final javafx.beans.property.StringProperty textProperty()
getText()
,
setText(String)
public final double getStartX()
public final void setStartX(double startX)
public final javafx.beans.property.DoubleProperty startXProperty()
getStartX()
,
setStartX(double)
public final double getEndX()
public final void setEndX(double endX)
public final javafx.beans.property.DoubleProperty endXProperty()
getEndX()
,
setEndX(double)
public final double getTextOpacity()
public final void setTextOpacity(double opacity)
public final javafx.beans.property.DoubleProperty textOpacityProperty()
getTextOpacity()
,
setTextOpacity(double)
public final javafx.scene.paint.Paint getButtonArrowBackgroundColor()
public final void setButtonArrowBackgroundColor(javafx.scene.paint.Paint color)
public final javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> buttonArrowBackgroundColorProperty()
public final javafx.scene.paint.Paint getButtonColor()
public final void setButtonColor(javafx.scene.paint.Paint color)
public final javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> buttonColorProperty()
getButtonColor()
,
setButtonColor(Paint)
public javafx.animation.Timeline getSnapButtonBackAnim()