# JavaScript API Reference for Oracle ADF Faces

Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.4.0) E81451-01
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |

SUMMARY: FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

# oracle.adfinternal.view.js.laf.dhtml.rich
Class AdfDhtmlInputNumberSliderBasePeer

## Warning:

- This is an unsupported, internal implementation class.
- Use an API class that might provide equivalent functionality instead.
- This class will change without notice.
- It is not recommended that you use anything in this class.

    org.ecmascript.object.Object
       |
       +--oracle.adf.view.js.base.AdfObject
             |
             +--oracle.adf.view.js.base.AdfUIPeer
                   |
                   +--oracle.adf.view.js.laf.rich.AdfRichUIPeer
                         |
                         +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlValuePeer
                               |
                               +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlEditableValuePeer
                                     |
                                     +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlInputNumberSliderBasePeer

Direct Known Subclasses:
  AdfDhtmlInputNumberSliderPeer, AdfDhtmlInputNumberSliderPeer

    public class AdfDhtmlInputNumberSliderBasePeer
    extends AdfDhtmlEditableValuePeer

Peer Implementation for input number slider.

## Field Summary
`private static Object` | `_BAR_ELEMENT_ID_ATTR_NAME`
`private static Object` | `_CURRENT_POSITION`
`private static Object` | `_DECREASE_BUTCON_ID_ATTR_NAME`
`private static Object` | `_DEPRESSED_STYLE_CLASS`
`private static Object` | `_DRAG_ELEMENT_ID_ATTR_NAME`
`private static Object` | `_DRAG_RECOGNIZER`
`private static Object` | `_INCREASE_BUTCON_ID_ATTR_NAME`
`private static Object` | `_OLD_VALUE`
`private static Object` | `_PLAYING_STYLE_CLASS`
`private static Object` | `_RANGE_ID_ATTR_NAME`
`private static Object` | `_SLIDER_TICKS_CONTAINER_ID_ATTR_NAME`
`private static Object` | `_THUMB_ELEMENT2_ID_ATTR_NAME`
`private static Object` | `_THUMB_ELEMENT_ID_ATTR_NAME`
`private static Object` | `_THUMB_VALUE2_ID_ATTR_NAME`
`private static Object` | `_THUMB_VALUE2_LINE_ID_ATTR_NAME`
`private static Object` | `_THUMB_VALUE_ID_ATTR_NAME`
`private static Object` | `_THUMB_VALUE_LINE_ID_ATTR_NAME`

### Fields inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlEditableValuePeer
`ComponentLabelChanged, ComponentShowRequiredChanged`

### Fields inherited from oracle.adf.view.js.laf.rich.AdfRichUIPeer
`addComponentPropertyChanges, addComponentPropertyGetters, BUSY_STYLECLASS, CreateSubId, DISABLED_STYLECLASS, DRAG_READY_STYLECLASS, DRAG_SOURCE_STYLECLASS, DROP_TARGET_STYLECLASS, FOCUS_TARGET_STYLECLASS, HOVER_TARGET_STYLECLASS, READONLY_STYLECLASS, SELECTED_STYLECLASS`

### Fields inherited from oracle.adf.view.js.base.AdfObject
`constructor, superclass`

### Fields inherited from org.ecmascript.object.Object
`prototype`

## Constructor Summary
`public` | `AdfDhtmlInputNumberSliderBasePeer()` Peer Implementation for input number slider.

## Method Summary
`private Object` | `_addDepressed(Object event)`
`private Object` | `_animationHandler(Object increment)`
`protected Object` | `ComponentRemoved(Object component)` We need to remove the bubble event listeners.
`private Object` | `_constrainValue(Object value, Object component)`
`private Object` | `_createClientSideValidator(Object component, Object domElement)` Helper function, to create the client side validator, that's used for the attribute driven validation.
`private Object` | `_deltaComponentValue(Object delta)`
`private Object` | `_finishDrag(Object domEvent, Object deltaX, Object deltaY)`
`private Object` | `_fixPrecision(Object value)`
`public Object` | `getDefaultDragRecognizer(Object component)` Override to use our special DragRecognizer
`private Object` | `_getElementByRootAttribute(Object attributeName, Object domElement)` Generic function get an element from the dom, based on its ID, which is stored as the value of an attribute on the Root DOM element of this peer
`protected Object` | `GetInlineEditor(Event event)` Override to return an inline editor that edits the InputNumberSlider's label property
`protected Object` | `GetInputNumberSliderLabelStyleClass()` This returns the label text style class for inputNumberSlider.
`protected Object` | `GetInputRangeSliderLabelStyleClass()` This returns the label text style class for InputRangeSlider.
`private static Object` | `_getLabelTextElement(Object domElement, Object cssClass)`
`protected Object` | `GetSubmittedValue(Object component, Object domElement)` overwritten GetSubmittedValue fuction
`public Object` | `getValue()`
`private Object` | `_getValueFromMousePos(Object component, Object domEvent)`
`protected Object` | `HandleComponentClick(Object componentEvent)` Override to handle single clicks on the body.
`protected Object` | `HandleComponentKeyDown(Object componentEvent)`
`private Object` | `_handleComponentMouseDownOrTouchStart(Object componentEvent, Object isTouchStart)`
`private Object` | `_handleDragPositioning(Object domEvent, Object deltaX, Object deltaY)`
`private Object` | `_handleDragRangePosition(Object domEvent, Object deltaX, Object deltaY)`
`private Object` | `_handleSingleClickPositioning(Object componentEvent)`
`public Object` | `init()` Initializes the instance.
`private Object` | `_initBarElement(Object component, Object domElement)`
`protected Object` | `InitDomElement(Object component, Object domElement)` Initialize the associated domElement when the peer is created.
`protected static Object` | `InitSubclass()`
`public Object` | `isRanged()`
`protected Object` | `LazyInitialize(Object component, Object domElement)` LazyInitialize implementation that calls its super funcation and creates the client side validator lazily.
`public Object` | `needsResizeNotify(Object component)` Tests whether the peer requires resize notification.
`private Object` | `_offset2value(Object component, Object thumbOffset)`
`private Object` | `_redrawThumbOutlines(Object thumbElements)`
`private Object` | `_removeDepressed(Object event)`
`protected Object` | `ResizeNotify(Object oldWidth, Object oldHeight, Object newWidth, Object newHeight)` Called to notify the peer of resize activity.
`private Object` | `_setComponentValue(Object newValue, Object component)`
`protected Object` | `SetDisplayValue(Object component, Object domElement, Object newValue)` - SetDisplayValue - this method is defined on AdfDhtmlValuePeer.
`private Object` | `_skipDomEventForUpAndDown(Object key, Object componentEvent)` Using the Up and Down arrow keys to change the slider value causes unwanted scrolling in a large page, so we cancel the event in this case.
`private Object` | `_startAnimation(Object component, Object domElement, Object increment)`
`private Object` | `_stopAnimation(Object component, Object domElement)`
`protected Object` | `UpdateDisabledButtonStyles(Object minVal, Object maxVal, Object component, Object domElement)`
`private Object` | `_value2offset(Object component, Object domElement, Object value)`

### Methods inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlEditableValuePeer
`autoSubmit, BindToComponent, ComponentChanged, __componentLabelChanged, ComponentSubmittedValueChanged, disableBrowserAutoComplete, Focus, GetComponentLabel, GetComponentSubmittedValue, GetComponentValue, getContentNode, GetContentNode, GetContentNodeId, getContentNodeText, GetDisplayValue, GetLabelElement, GetLabelText, getLastSubmittedValue, getMarkDirtyFlag, GetNoteWindowAlignmentHint, GetNoteWindowAlignmentNode, GetValidatorHints, HandleComponentFocus, HandleComponentKeyUp, HideNoteWindow, IsInitialized, IsNoteWindowVisible, __isSpuriousDirtyValue, MessageNotify, MessageShow, NeedsSpuriousDirtyValueTracking, __resetSpuriousDirtyValue, __restoreDirtyDisplayValue, setLastSubmittedValue, setMarkDirtyFlag, ShouldShowHint, ShowNoteWindow, ShowNoteWindowMouseOver, StashOldValue, StopArrowKeyBubbling, Validate, ValidateAndStashNewValue, ValidateIfStashedOldValue, VetoShowNoteWindow, WasSubmitted`

### Methods inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlValuePeer
`ComponentValueChanged, GetBestMatchSubId, getConvertedObject, getConvertedValue, getFormatHint, GetFormattedDisplayValue, GetNullDefault, GetSubIdDomElement, isEmpty, setDisplayValue`

### Methods inherited from oracle.adf.view.js.laf.rich.AdfRichUIPeer
`addComponentEventHandlers, addComponentPropertyChanges, addComponentPropertyGetters, addDomEventHandlers, addEventHandlerToDomInstance, addSuppressedPPRAttributes, applyDragReadyState, ApplyDragReadyState, applyDragSourceState, ApplyDragSourceState, bind, cancelAllPopups, cancelPopup, ChildVisibilityChanged, clearDragReadyState, ClearDragReadyState, clearDragSourceState, ClearDragSourceState, ComponentInlineStyleChanged, ComponentPropertyChanged, componentRemoved, ComponentStyleClassChanged, ComponentVisibleChanged, ConvertClientIdToLocator, convertLocatorToClientId, createComponentEvent, CreateComponentEvent, CreateDraggableNode, createInnerPeerClassWithSubId, createPeerClass, createSubId, DefaultInitClass, descendantMessageChanged, DescendantMessageChanged, DispatchComponentEvent, DispatchUncanceledComponentEvent, domReplaceNotify, DomReplaceNotify, focus, getAbsoluteId, getAbsoluteLocator, getAccessibleName, GetAccessibleName, getAllPopups, getComponent, GetComponent, GetComponentId, getComponentParent, getComponentProperty, GetComponentVisible, getDescendantComponents, getDomContentElement, getDomContentElementForComponent, GetDomContentElementForNode, getDomDocument, getDomElement, getDomElementForComponent, getDomNode, GetDomNodeForCommentComponent, getDomNodeForComponent, getDomRootNodes, GetDomRootNodes, getDragOverFeedback, GetDragOverFeedback, getDragTransferable, GetDragTransferable, GetElementToReplaceWithSVG, getFallbackDomElement, GetFallbackDomElement, getFirstAncestorComponent, getInlineEditor, getInlineStyleProperty, getLocatorByDomElement, getPagePosition, getPopupWindow, getReadyState, GetReadyState, GetRichResourceURL, getSubIdDomElement, hideAllPopups, hidePopup, InitClass, initialize, isAbsoluteLocatorCacheable, isActive, isBusy, isComponentContainedByElement, isInActiveHeirarchy, isInlineSVGIcon, isPopupVisible, messageNotify, messageShow, needsChildVisibilityChanges, needsFocusTargetStyleClass, PopupClosed, processPushData, ProcessPushData, registerADSAccessibility, RegisterADSAccessibility, registerKeyStroke, replaceDomElement, ReplaceDomElement, resizeNotify, scrollIntoView, ScrollIntoView, setBusy, SetBusy, setInlineStyleProperty, showContextMenu, showPopup, simulateMouse, SimulateMouseOnDescendant, TruncateClientId, TruncateClientIdOnceImpl, UnbindFromComponent, unregisterKeyStroke, UpdateMessageType, visitChildren`

### Methods inherited from oracle.adf.view.js.base.AdfUIPeer
`getParentPeer, Init, initiateDrag, isVisible`

### Methods inherited from oracle.adf.view.js.base.AdfObject
`adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString`

## Field Detail

### _BAR_ELEMENT_ID_ATTR_NAME

`private static Object _BAR_ELEMENT_ID_ATTR_NAME`

### _CURRENT_POSITION

`private static Object _CURRENT_POSITION`

### _DECREASE_BUTCON_ID_ATTR_NAME

`private static Object _DECREASE_BUTCON_ID_ATTR_NAME`

### _DEPRESSED_STYLE_CLASS

`private static Object _DEPRESSED_STYLE_CLASS`

### _DRAG_ELEMENT_ID_ATTR_NAME

`private static Object _DRAG_ELEMENT_ID_ATTR_NAME`

### _DRAG_RECOGNIZER

`private static Object _DRAG_RECOGNIZER`
  Overrides:
    `AdfUIPeer._DRAG_RECOGNIZER`

### _INCREASE_BUTCON_ID_ATTR_NAME

`private static Object _INCREASE_BUTCON_ID_ATTR_NAME`

### _OLD_VALUE

`private static Object _OLD_VALUE`

### _PLAYING_STYLE_CLASS

`private static Object _PLAYING_STYLE_CLASS`

### _RANGE_ID_ATTR_NAME

`private static Object _RANGE_ID_ATTR_NAME`

### _SLIDER_TICKS_CONTAINER_ID_ATTR_NAME

`private static Object _SLIDER_TICKS_CONTAINER_ID_ATTR_NAME`

### _THUMB_ELEMENT2_ID_ATTR_NAME

`private static Object _THUMB_ELEMENT2_ID_ATTR_NAME`

### _THUMB_ELEMENT_ID_ATTR_NAME

`private static Object _THUMB_ELEMENT_ID_ATTR_NAME`

### _THUMB_VALUE2_ID_ATTR_NAME

`private static Object _THUMB_VALUE2_ID_ATTR_NAME`

### _THUMB_VALUE2_LINE_ID_ATTR_NAME

`private static Object _THUMB_VALUE2_LINE_ID_ATTR_NAME`

### _THUMB_VALUE_ID_ATTR_NAME

`private static Object _THUMB_VALUE_ID_ATTR_NAME`

### _THUMB_VALUE_LINE_ID_ATTR_NAME

`private static Object _THUMB_VALUE_LINE_ID_ATTR_NAME`

## Constructor Detail

### AdfDhtmlInputNumberSliderBasePeer

`public AdfDhtmlInputNumberSliderBasePeer()`
  Peer Implementation for input number slider.

## Method Detail

### _addDepressed

`private Object _addDepressed(Object event)`
  Parameters:

    `event` |  |

  Return:
    `Object`

### _animationHandler

`private Object _animationHandler(Object increment)`
  Parameters:

    `increment` |  |

  Return:
    `Object`

### ComponentRemoved

`protected Object ComponentRemoved(Object component)`
  We need to remove the bubble event listeners.
  Parameters:

    `component` |  |

  Return:
    `Object`
  Overrides:
    `AdfUIPeer.componentRemoved(AdfUIComponent)`

### _constrainValue

`private Object _constrainValue(Object value,
Object component)`
  Parameters:

    `value` |  |
    `component` |  |

  Return:
    `Object`

### _createClientSideValidator

`private Object _createClientSideValidator(Object component,
Object domElement)`
  Helper function, to create the client side validator, that's used for the attribute driven validation.
  Parameters:

    `component` |  |
    `domElement` |  |

  Return:
    `Object`

### _deltaComponentValue

`private Object _deltaComponentValue(Object delta)`
  Parameters:

    `delta` |  |

  Return:
    `Object`

### _finishDrag

`private Object _finishDrag(Object domEvent,
Object deltaX,
Object deltaY)`
  Parameters:

    `domEvent` |  |
    `deltaX` |  |
    `deltaY` |  |

  Return:
    `Object`

### _fixPrecision

`private Object _fixPrecision(Object value)`
  Parameters:

    `value` |  |

  Return:
    `Object`

### getDefaultDragRecognizer

`public Object getDefaultDragRecognizer(Object component)`
  Override to use our special DragRecognizer
  Parameters:

    `component` |  |

  Return:
    `Object`
  Overrides:
    `AdfUIPeer.getDefaultDragRecognizer(AdfUIComponent)`

### _getElementByRootAttribute

`private Object _getElementByRootAttribute(Object attributeName,
Object domElement)`
  Generic function get an element from the dom, based on its ID, which is stored as the value of an attribute on the Root DOM element of this peer
  Parameters:

    `attributeName` | - | the name of the Root DOM element
    `domElement` | - | Root DOM element of this peer

  Return:
    `Object`

### GetInlineEditor

`protected Object GetInlineEditor(Event event)`
  Override to return an inline editor that edits the InputNumberSlider's label property
  Parameters:

    `event` | - | DOM Event that triggered the inline edit

  Return:
    `Object`
  Overrides:
    `AdfRichUIPeer.getInlineEditor(AdfUIComponent, Object)`

### GetInputNumberSliderLabelStyleClass

`protected Object GetInputNumberSliderLabelStyleClass()`
  This returns the label text style class for inputNumberSlider.
  Return:
    `Object`

### GetInputRangeSliderLabelStyleClass

`protected Object GetInputRangeSliderLabelStyleClass()`
  This returns the label text style class for InputRangeSlider.
  Return:
    `Object`

### _getLabelTextElement

`private static Object _getLabelTextElement(Object domElement,
Object cssClass)`
  Parameters:

    `domElement` |  |
    `cssClass` |  |

  Return:
    `Object`

### GetSubmittedValue

`protected Object GetSubmittedValue(Object component,
Object domElement)`
  overwritten GetSubmittedValue fuction
  Parameters:

    `component` |  |
    `domElement` |  |

  Return:
    `Object`
  See also:
    `AdfDhtmlEditableValuePeer`
  Overrides:
    `AdfDhtmlEditableValuePeer.GetSubmittedValue(Object, Object)`

### getValue

`public Object getValue()`
  Return:
    `Object`

### _getValueFromMousePos

`private Object _getValueFromMousePos(Object component,
Object domEvent)`
  Parameters:

    `component` |  |
    `domEvent` |  |

  Return:
    `Object`

### HandleComponentClick

`protected Object HandleComponentClick(Object componentEvent)`
  Override to handle single clicks on the body. We use click instead of mouse down or mouse up to ensure that positioning doesn't interfere with drag and drop and vice versa
  Parameters:

    `componentEvent` |  |

  Return:
    `Object`
  Overrides:
    `AdfDhtmlEditableValuePeer.HandleComponentClick(Object)`

### HandleComponentKeyDown

`protected Object HandleComponentKeyDown(Object componentEvent)`
  Parameters:

    `componentEvent` |  |

  Return:
    `Object`

### _handleComponentMouseDownOrTouchStart

`private Object _handleComponentMouseDownOrTouchStart(Object componentEvent,
Object isTouchStart)`
  Parameters:

    `componentEvent` |  |
    `isTouchStart` |  |

  Return:
    `Object`

### _handleDragPositioning

`private Object _handleDragPositioning(Object domEvent,
Object deltaX,
Object deltaY)`
  Parameters:

    `domEvent` |  |
    `deltaX` |  |
    `deltaY` |  |

  Return:
    `Object`

### _handleDragRangePosition

`private Object _handleDragRangePosition(Object domEvent,
Object deltaX,
Object deltaY)`
  Parameters:

    `domEvent` |  |
    `deltaX` |  |
    `deltaY` |  |

  Return:
    `Object`

### _handleSingleClickPositioning

`private Object _handleSingleClickPositioning(Object componentEvent)`
  Parameters:

    `componentEvent` |  |

  Return:
    `Object`

### init

`public Object init()`
  Initializes the instance. Subclasses of AdfObject must call their superclass' Init
  Return:
    `Object`
  Overrides:
    `AdfObject.Init()`

### _initBarElement

`private Object _initBarElement(Object component,
Object domElement)`
  Parameters:

    `component` |  |
    `domElement` |  |

  Return:
    `Object`

### InitDomElement

`protected Object InitDomElement(Object component,
Object domElement)`
  Initialize the associated domElement when the peer is created. Stateless peers are not bound at the time that this method is called.
  Parameters:

    `component` | - | Component that this peer will be associated with
    `domElement` | - | Root DOM element of this peer

  Return:
    `Object`
  Overrides:
    `AdfRichUIPeer.InitDomElement(AdfUIComponent, Object)`

### InitSubclass

`protected static Object InitSubclass()`
  Return:
    `Object`
  Overrides:
    `AdfDhtmlValuePeer.InitSubclass()`

### isRanged

`public Object isRanged()`
  Return:
    `Object`

### LazyInitialize

`protected Object LazyInitialize(Object component,
Object domElement)`
  LazyInitialize implementation that calls its super funcation and creates the client side validator lazily.
  Parameters:

    `component` |  |
    `domElement` |  |

  Return:
    `Object`
  Overrides:
    `AdfDhtmlEditableValuePeer.LazyInitialize(Object, Object)`

### needsResizeNotify

`public Object needsResizeNotify(Object component)`
  Tests whether the peer requires resize notification. Peers which perform geometry management should override this to return true. When true, resizeNotify() will be called when browser window is resized.
  Parameters:

    `component` |  |

  Return:
    `Object`
  Overrides:
    `AdfUIPeer.needsResizeNotify(Object)`

### _offset2value

`private Object _offset2value(Object component,
Object thumbOffset)`
  Parameters:

    `component` |  |
    `thumbOffset` |  |

  Return:
    `Object`

### _redrawThumbOutlines

`private Object _redrawThumbOutlines(Object thumbElements)`
  Parameters:

    `thumbElements` |  |

  Return:
    `Object`

### _removeDepressed

`private Object _removeDepressed(Object event)`
  Parameters:

    `event` |  |

  Return:
    `Object`

### ResizeNotify

`protected Object ResizeNotify(Object oldWidth,
Object oldHeight,
Object newWidth,
Object newHeight)`
  Called to notify the peer of resize activity. Only called if peer overrides needsResizeNotify() to return true.
  Parameters:

    `oldWidth` |  |
    `oldHeight` |  |
    `newWidth` |  |
    `newHeight` |  |

  Return:
    `Object`
  Overrides:
    `AdfUIPeer.resizeNotify(Object, Object, Object, Object, Object)`

### _setComponentValue

`private Object _setComponentValue(Object newValue,
Object component)`
  Parameters:

    `newValue` |  |
    `component` |  |

  Return:
    `Object`

### SetDisplayValue

`protected Object SetDisplayValue(Object component,
Object domElement,
Object newValue)`
  - SetDisplayValue - this method is defined on AdfDhtmlValuePeer. This method takes a value that has already been converted. For example on inputText it would be passed a string, and on a selectMany an array of strings.
  Parameters:

    `component` |  |
    `domElement` |  |
    `newValue` |  |

  Return:
    `Object`
  Overrides:
    `AdfDhtmlValuePeer.setDisplayValue(Object, Object)`

### _skipDomEventForUpAndDown

`private Object _skipDomEventForUpAndDown(Object key,
Object componentEvent)`
  Using the Up and Down arrow keys to change the slider value causes unwanted scrolling in a large page, so we cancel the event in this case.
  Parameters:

    `key` |  |
    `componentEvent` |  |

  Return:
    `Object`

### _startAnimation

`private Object _startAnimation(Object component,
Object domElement,
Object increment)`
  Parameters:

    `component` |  |
    `domElement` |  |
    `increment` |  |

  Return:
    `Object`

### _stopAnimation

`private Object _stopAnimation(Object component,
Object domElement)`
  Parameters:

    `component` |  |
    `domElement` |  |

  Return:
    `Object`

### UpdateDisabledButtonStyles

`protected Object UpdateDisabledButtonStyles(Object minVal,
Object maxVal,
Object component,
Object domElement)`
  Parameters:

    `minVal` |  |
    `maxVal` |  |
    `component` |  |
    `domElement` |  |

  Return:
    `Object`

### _value2offset

`private Object _value2offset(Object component,
Object domElement,
Object value)`
  Parameters:

    `component` |  |
    `domElement` |  |
    `value` |  |

  Return:
    `Object`

SUMMARY: FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.4.0) E81451-01
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |

Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.