JavaScript API Reference for Oracle ADF Faces
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.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.
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.
|
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.
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
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
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:
-
- Return:
Object
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
protected Object InitDomElement(Object component,
Object domElement)
- Parameters:
-
- Return:
Object
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:
-
- Return:
Object
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
Generated on 2015.07.15 10:12 UTC
Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.