# 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 AdfDhtmlSelectBooleanRadioPeer

## 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.AdfDhtmlSelectBooleanCheckboxPeer
                                           |
                                           +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlSelectBooleanRadioPeer

    public class AdfDhtmlSelectBooleanRadioPeer
    extends AdfDhtmlSelectBooleanCheckboxPeer

Peer for the selectBooleanRadio component gecko gives both an onchange and a onclick when you click a radio gecko gives no event for the radio that was changed because you clicked on another radio. ie gives an onchange for the radio that is unchecked when you click on another radio and gives an onclick for the on you click on. As a result, we need to set the unchecked's radio component's submittedValue to false ourselves when one is checked.

## Field Summary

### 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` | `AdfDhtmlSelectBooleanRadioPeer()` Peer for the selectBooleanRadio component gecko gives both an onchange and a onclick when you click a radio gecko gives no event for the radio that was changed because you clicked on another radio.

## Method Summary
`protected Object` | `GetItemTextStyleClass()` This returns the item text style class.
`protected Object` | `GetLabelTextStyleClass()` This returns the label text style class.
`protected Object` | `GetReadOnlyComponentText(Object component)` Get the component item text when rendered as readOnly.
`protected Object` | `HandleComponentClick(Object componentEvent)` Handles component-level click events.
`protected Object` | `LazyInitialize(Object component, Object domElement)` Initialize all the radio button components in the same group as they have not been initialized yet
`private Object` | `_validateUncheckedComponents(Object domElement)` This function will go through all the components with the same 'name' attribute, and type = 'radio' and checked is false, and set component.validate(false) if the value or submittedValue is true.

### Methods inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlSelectBooleanCheckboxPeer
`ComponentTextChanged, GetBestMatchSubId, GetComponentText, __getInlineEditableTextElement, GetInlineEditor, __getLabelTextElement, getLastSubmittedValue, GetSubIdDomElement, GetSubmittedValue, HandleComponentMouseOver, InitDomElement, InitSubclass, isTristateDeterminateUnchecked, NeedsSpuriousDirtyValueTracking, SetDisplayValue`

### 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, getMarkDirtyFlag, GetNoteWindowAlignmentHint, GetNoteWindowAlignmentNode, GetValidatorHints, HandleComponentFocus, HandleComponentKeyUp, HideNoteWindow, IsInitialized, IsNoteWindowVisible, __isSpuriousDirtyValue, MessageNotify, MessageShow, __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, getConvertedObject, getConvertedValue, getFormatHint, GetFormattedDisplayValue, GetNullDefault, 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, 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, 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
`getDefaultDragRecognizer, getParentPeer, Init, initiateDrag, isVisible, needsResizeNotify`

### 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

## Constructor Detail

### AdfDhtmlSelectBooleanRadioPeer

`public AdfDhtmlSelectBooleanRadioPeer()`
  Peer for the selectBooleanRadio component gecko gives both an onchange and a onclick when you click a radio gecko gives no event for the radio that was changed because you clicked on another radio. ie gives an onchange for the radio that is unchecked when you click on another radio and gives an onclick for the on you click on. As a result, we need to set the unchecked's radio component's submittedValue to false ourselves when one is checked.

## Method Detail

### GetItemTextStyleClass

`protected Object GetItemTextStyleClass()`
  This returns the item text style class. This should be overridden by child classes so that they return their own item text style class.
  Return:
    `Object`
  Overrides:
    `AdfDhtmlSelectBooleanCheckboxPeer.GetItemTextStyleClass()`

### GetLabelTextStyleClass

`protected Object GetLabelTextStyleClass()`
  This returns the label text style class. This should be overridden by child classes so that they return their own label text style class.
  Return:
    `Object`
  Overrides:
    `AdfDhtmlSelectBooleanCheckboxPeer.GetLabelTextStyleClass()`

### GetReadOnlyComponentText

`protected Object GetReadOnlyComponentText(Object component)`
  Get the component item text when rendered as readOnly. For the radio button component, there is no &NBSP like there is for checkbox, so we just return the text content. This function returns just the text rendered without the leading NBSP;
  Parameters:

    `component` |  |

  Return:
    `Object`
  Overrides:
    `AdfDhtmlSelectBooleanCheckboxPeer.GetReadOnlyComponentText(Object)`

### HandleComponentClick

`protected Object HandleComponentClick(Object componentEvent)`
  Handles component-level click events. This gets called when a radio is clicked on, and it will validate the value of the checked radio.
  Parameters:

    `componentEvent` | - | The event on the component

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

### LazyInitialize

`protected Object LazyInitialize(Object component,
Object domElement)`
  Initialize all the radio button components in the same group as they have not been initialized yet
  Parameters:

    `component` |  |
    `domElement` |  |

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

### _validateUncheckedComponents

`private Object _validateUncheckedComponents(Object domElement)`
  This function will go through all the components with the same 'name' attribute, and type = 'radio' and checked is false, and set component.validate(false) if the value or submittedValue is true. Called from HandleComponentClicked where one selectBooleanRadio component was clicked (checked). We need to make sure the unchecked component's value is false. Otherwise, if we check it again, we won't get a ValueChangeEvent.
  Parameters:

    `domElement` | - | Root DOM element of this component

  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.