OracleJavaScript API Reference for Oracle ADF Faces

 

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

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

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adfinternal.view.js.laf.dhtml.rich.subids.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 org.ecmascript.object.Object

constructor, 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
InitDomElement(Object component, Object domElement)
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.subids.AdfDhtmlSelectBooleanCheckboxPeer

GetBestMatchSubId, GetSubIdDomElement


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

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

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

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

InitDomElement

protected Object InitDomElement(Object component,
                                Object domElement)

Parameters:
component    
domElement    
Return:
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

_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

 

Generated on 2015.07.15 10:12 UTC
Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.