OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adfinternal.view.js.laf.dhtml.rich
Class AdfDhtmlSelectOneRadioPeer

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adfinternal.view.js.laf.dhtml.rich.subids.AdfDhtmlValuePeer
         |
         +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlEditableValuePeer
               |
               +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlSelectOnePeer
                     |
                     +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlSelectOneRadioPeer

public class AdfDhtmlSelectOneRadioPeer
extends AdfDhtmlSelectOnePeer
Peer for the selectOneRadio component



Field Summary

private static Object
_ITEM_VALUE_EXPANDO


Fields inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlSelectOnePeer

NO_SELECTION_OPTION_EXPANDO


Fields inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlEditableValuePeer

ComponentLabelChanged, ComponentShowRequiredChanged


Fields inherited from org.ecmascript.object.Object

constructor, prototype


Constructor Summary

public
AdfDhtmlSelectOneRadioPeer()
Peer for the selectOneRadio component


Method Summary

protected Object
GetBestMatchSubId(Object domElement)
Returns the best match subId for the given domElement.
protected Object
GetComponentSelectItems(Object component, Object domElement)
protected Object
GetInlineEditor(Event event)
Override to return an inline editor that edits the component's label property
protected Object
GetNoteWindowAlignmentNode(Object component, Object rootNode)
Returns the node for which to align the note help window
protected Object
GetSubIdDomElement(Object subElementId)
selectOneRadio component publishes the following sub ids [External Subid --> Internal Client SubId]:- 1.
protected Object
GetSubmittedValue(Object component, Object domElement)
Returns the submittedValue by getting the value of the checked radio button of the selectOneRadio.
protected Object
HandleComponentClick(Object componentEvent)
Handles component-level click events.
protected static Object
InitSubclass()
protected Object
SetDisplayValue(Object component, Object domElement, Object newValue)
Set the display value.


Methods inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlSelectOnePeer

GetSelectItemsFromOptions, GetSelectItemsParentDomElement, HandleComponentMouseOver


Methods inherited from oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlEditableValuePeer

autoSubmit, BindToComponent, ComponentChanged, __componentLabelChanged, ComponentSubmittedValueChanged, disableBrowserAutoComplete, Focus, GetComponentLabel, GetComponentSubmittedValue, GetComponentValue, getContentNode, GetContentNode, GetContentNodeId, GetDisplayValue, GetLabelText, getLastSubmittedValue, getMarkDirtyFlag, GetNoteWindowAlignmentHint, GetValidatorHints, HandleComponentFocus, HandleComponentKeyUp, HideNoteWindow, InitDomElement, IsInitialized, IsNoteWindowVisible, __isSpuriousDirtyValue, LazyInitialize, MessageNotify, MessageShow, NeedsSpuriousDirtyValueTracking, __resetSpuriousDirtyValue, __restoreDisplayValue, setLastSubmittedValue, setMarkDirtyFlag, ShouldShowHint, ShowNoteWindow, ShowNoteWindowMouseOver, StashOldValue, StopArrowKeyBubbling, Validate, ValidateAndStashNewValue, ValidateIfStashedOldValue, VetoShowNoteWindow, WasSubmitted


Field Detail


_ITEM_VALUE_EXPANDO

private static Object _ITEM_VALUE_EXPANDO

Constructor Detail


AdfDhtmlSelectOneRadioPeer

public AdfDhtmlSelectOneRadioPeer()

Peer for the selectOneRadio component

Method Detail


GetBestMatchSubId

protected Object GetBestMatchSubId(Object domElement)

Returns the best match subId for the given domElement. This can be enhanced further to return programmatically determined subIds. WARNING - You must make sure to bind the component to the peer before calling this function.

Parameters:
domElement    
Return:
Object
Overrides:
AdfDhtmlValuePeer.GetBestMatchSubId(Object)

GetComponentSelectItems

protected Object GetComponentSelectItems(Object component,
                                         Object domElement)

Parameters:
component  -  Component that this peer will be associated with
domElement  -  Root DOM element of this peer
Return:
Object - selectItem array

GetInlineEditor

protected Object GetInlineEditor(Event event)

Override to return an inline editor that edits the component's label property

Parameters:
event  -  DOM Event that triggered the inline edit
Return:
Object

GetNoteWindowAlignmentNode

protected Object GetNoteWindowAlignmentNode(Object component,
                                            Object rootNode)

Returns the node for which to align the note help window

Parameters:
component    
rootNode    
Return:
Object
Overrides:
AdfDhtmlEditableValuePeer.GetNoteWindowAlignmentNode(Object, Object)

GetSubIdDomElement

protected Object GetSubIdDomElement(Object subElementId)

selectOneRadio component publishes the following sub ids [External Subid --> Internal Client SubId]:- 1. [content --> content] - selectOneRadio content 2. [label --> label] - selectOneRadio label 3. [item[(value)] --> item] - selectOneRadio item (selectItem, by rendered value)

Parameters:
subElementId    
Return:
Object
Overrides:
AdfDhtmlValuePeer.GetSubIdDomElement(Object)

GetSubmittedValue

protected Object GetSubmittedValue(Object component,
                                   Object domElement)

Returns the submittedValue by getting the value of the checked radio button of the selectOneRadio. Returns null if nothing is checked.

Parameters:
component  -  Component that this peer will be associated with
domElement  -  Root DOM element of this peer
Return:
Object - submittedValue , or null if nothing is checked
Overrides:
AdfDhtmlEditableValuePeer.GetSubmittedValue(Object, 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)

InitSubclass

protected static Object InitSubclass()

Return:
Object
Overrides:
AdfDhtmlEditableValuePeer.InitSubclass()

SetDisplayValue

protected Object SetDisplayValue(Object component,
                                 Object domElement,
                                 Object newValue)

Set the display value. For selectOneRadio this means checking the radioButton with a value equal to newValue.. In readOnly mode, this means setting the text content to the newValue.

Parameters:
component  -  Component that this peer will be associated with
domElement  -  Root DOM element of this peer
newValue  -  The new value of the component.
Return:
Object

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

 

Generated on 2017.04.19 06:37 UTC
Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.