|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.ui.DeprecatedUINode | +--oracle.cabo.ui.BaseUINode | +--oracle.cabo.ui.BaseMutableUINode | +--oracle.cabo.ui.beans.BaseWebBean | +--oracle.cabo.ui.beans.MarlinBean | +--oracle.cabo.ui.beans.form.FormElementBean | +--oracle.cabo.ui.beans.form.OptionContainerBean | +--oracle.cabo.ui.beans.form.RadioGroupBean
The radioGroup control creates a set of radio buttons, layed out vertically and controlled from a single list of data.
This basic example binds names and values to three radio buttons. The default selection will be the button labled "Name2".
<provider> <data name="RGData"> <inline> <btn txt="Longer name" val="Val0"/> <btn txt="Name2" val="Val1"/> <btn txt="Name3" val="Val2"/> </inline> </data> </provider> <contents> <form name="RGForm1"> <contents> <radioGroup name="RG1" text="${uix.current.txt}" value="${uix.current.val}" selectedValue="Val1" type="radio" childData="${RGData.btn}"/> <submitButton formName="RGForm1" text="Enter Group 1" value="enter"/> </contents> </form> </contents>
This example, using the same data, does the same thing, but using an index. It also raises an alert if the button selection is changed.
<form name="RGForm2"> <contents> <radioGroup name="RG2" text="${uix.current.txt}" value="${uix.current.val}" selectedIndex="1" required="yes" type="radio" onChange="alert('Choice Changed')" childData="${RGData.btn}"/> <submitButton formName="RGForm2" text="Enter Group 2" value="enter"/> </contents> </form>
Finally a choice list using the same data. This list requires that a value be chosen.
<form name="RGForm3"> <contents> <radioGroup name="RG3" text="${uix.current.txt}" value="${uix.current.val}" required="yes" type="choice" childData="${RGData.btn}"/> <submitButton formName="RGForm3" text="Enter Group 3" value="enter"/> </contents> </form>
Constructor Summary | |
|
RadioGroupBean()
Deprecated. Construct an instance of the RadioGroupBean. |
protected |
RadioGroupBean(boolean ignored,
java.lang.String localName)
Deprecated. Construct an instance of the RadioGroupBean. |
|
RadioGroupBean(java.lang.String name)
Deprecated. Construct an instance of the RadioGroupBean. |
Method Summary | |
DataObjectList |
getChildData()
Deprecated. Gets the data source for all the contents of the radio group. |
static DataObjectList |
getChildData(MutableUINode bean)
Deprecated. Gets the data source for all the contents of the radio group. |
ClientAction |
getPrimaryClientAction()
Deprecated. Gets ClientAction to fire on the client when an item is chosen. |
static ClientAction |
getPrimaryClientAction(MutableUINode bean)
Deprecated. Gets ClientAction to fire on the client when an item is chosen. |
java.lang.String |
getRequired()
Deprecated. Gets whether the radio group requires a non-empty value. |
static java.lang.String |
getRequired(MutableUINode bean)
Deprecated. Gets whether the radio group requires a non-empty value. |
java.lang.String |
getType()
Deprecated. Gets whether the group should be displayed as a series of radio buttons or a choice. |
static java.lang.String |
getType(MutableUINode bean)
Deprecated. Gets whether the group should be displayed as a series of radio buttons or a choice. |
void |
setChildData(DataObjectList childData)
Deprecated. Sets the data source for all the contents of the radio group. |
void |
setChildData(DataObjectList childData)
Deprecated. since 2.0; please use the non-deprecated version of this function. |
static void |
setChildData(MutableUINode bean,
DataObjectList childData)
Deprecated. Sets the data source for all the contents of the radio group. |
static void |
setChildData(MutableUINode bean,
DataObjectList childData)
Deprecated. since 2.0; please use the non-deprecated version of this function. |
void |
setChildDataBinding(BoundValue boundValue)
Deprecated. Binds the the data source for all the contents of the radio group. |
static void |
setChildDataBinding(MutableUINode bean,
BoundValue boundValue)
Deprecated. Binds the the data source for all the contents of the radio group. |
static void |
setChildDataBinding(MutableUINode bean,
java.lang.Object selectKey)
Deprecated. Binds the the data source for all the contents of the radio group. |
static void |
setChildDataBinding(MutableUINode bean,
java.lang.String dataNamespace,
java.lang.String dataName,
java.lang.Object selectKey)
Deprecated. Binds the the data source for all the contents of the radio group. |
void |
setChildDataBinding(java.lang.Object selectKey)
Deprecated. Binds the the data source for all the contents of the radio group. |
void |
setChildDataBinding(java.lang.String dataNamespace,
java.lang.String dataName,
java.lang.Object selectKey)
Deprecated. Binds the the data source for all the contents of the radio group. |
void |
setPrimaryClientAction(ClientAction primaryClientAction)
Deprecated. Sets ClientAction to fire on the client when an item is chosen. |
static void |
setPrimaryClientAction(MutableUINode bean,
ClientAction primaryClientAction)
Deprecated. Sets ClientAction to fire on the client when an item is chosen. |
static void |
setRequired(MutableUINode bean,
java.lang.String required)
Deprecated. Sets whether the radio group requires a non-empty value. |
void |
setRequired(java.lang.String required)
Deprecated. Sets whether the radio group requires a non-empty value. |
void |
setTextBinding(BoundValue boundValue)
Deprecated. Binds the the text of each item. |
static void |
setTextBinding(MutableUINode bean,
BoundValue boundValue)
Deprecated. Binds the the text of each item. |
static void |
setTextBinding(MutableUINode bean,
java.lang.Object selectKey)
Deprecated. Binds the the text of each item. |
void |
setTextBinding(java.lang.Object selectKey)
Deprecated. Binds the the text of each item. |
static void |
setType(MutableUINode bean,
java.lang.String type)
Deprecated. Sets whether the group should be displayed as a series of radio buttons or a choice. |
void |
setType(java.lang.String type)
Deprecated. Sets whether the group should be displayed as a series of radio buttons or a choice. |
void |
setValueBinding(BoundValue boundValue)
Deprecated. Binds the the value of each item. |
static void |
setValueBinding(MutableUINode bean,
BoundValue boundValue)
Deprecated. Binds the the value of each item. |
static void |
setValueBinding(MutableUINode bean,
java.lang.Object selectKey)
Deprecated. Binds the the value of each item. |
void |
setValueBinding(java.lang.Object selectKey)
Deprecated. Binds the the value of each item. |
Methods inherited from class oracle.cabo.ui.beans.form.FormElementBean |
getName, getName, getOnBlur, getOnBlur, getOnFocus, getOnFocus, isDisabled, isDisabled, isReadOnly, isReadOnly, setDisabled, setDisabled, setName, setName, setNameBinding, setNameBinding, setNameBinding, setNameBinding, setNameBinding, setNameBinding, setOnBlur, setOnBlur, setOnFocus, setOnFocus, setReadOnly, setReadOnly |
Methods inherited from class oracle.cabo.ui.beans.MarlinBean |
isEqualMarlinName |
Methods inherited from class oracle.cabo.ui.BaseUINode |
getAttributeNames, getAttributeValue, getAttributeValueImpl, getChildArray, getChildNames, getIndexedChild, getIndexedChild, getIndexedChildCount, getLocalName, getNamedChild, getNamespaceURI, getNodeID, getNodeRole, getPreorderDescendentAttributeValue, getRawAttributeValue, getRenderedUINode, getRenderer, getRenderer, render, render, toString |
Methods inherited from class oracle.cabo.ui.DeprecatedUINode |
getAttributeValue, getChildNames, getNamedChild |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.cabo.ui.UINode |
getAttributeNames, getAttributeValue, getAttributeValue, getChildNames, getChildNames, getIndexedChild, getIndexedChild, getIndexedChildCount, getLocalName, getNamedChild, getNamedChild, getNamespaceURI, getNodeID, getNodeRole, getRawAttributeValue, render, render |
Constructor Detail |
public RadioGroupBean()
public RadioGroupBean(java.lang.String name)
name
- the name used to identify the element in client-to-client or
client-to-server events.protected RadioGroupBean(boolean ignored, java.lang.String localName)
Method Detail |
public final ClientAction getPrimaryClientAction()
public final void setPrimaryClientAction(ClientAction primaryClientAction)
public final DataObjectList getChildData()
public final void setChildData(DataObjectList childData)
public final void setChildData(DataObjectList childData)
public final void setChildDataBinding(BoundValue boundValue)
boundValue
- a BoundValue implementation to be used
to retrieve the value.public final void setChildDataBinding(java.lang.Object selectKey)
selectKey
- the key to be passed to selectValue()
on the
current DataObject
, e.g., the DataObject for the current
table row.public final void setChildDataBinding(java.lang.String dataNamespace, java.lang.String dataName, java.lang.Object selectKey)
dataNamespace
- the namespace to be passed to
RenderingContext.getDataObject()
dataName
- the name to be passed to
RenderingContext.getDataObject()
selectKey
- the key to be passed to selectValue()
on the
DataObject
.public final void setTextBinding(BoundValue boundValue)
boundValue
- a BoundValue implementation to be used
to retrieve the value.public final void setTextBinding(java.lang.Object selectKey)
selectKey
- the key to be passed to selectValue()
on the
current DataObject
, e.g., the DataObject for the current
table row.public final void setValueBinding(BoundValue boundValue)
boundValue
- a BoundValue implementation to be used
to retrieve the value.public final void setValueBinding(java.lang.Object selectKey)
selectKey
- the key to be passed to selectValue()
on the
current DataObject
, e.g., the DataObject for the current
table row.public final java.lang.String getType()
public final void setType(java.lang.String type)
public final java.lang.String getRequired()
UIConstants.REQUIRED_YES
User input in this choice is required.
UIConstants.REQUIRED_NO
User input in this choice is not required.
The default if this attribute is not set is "no"
.
public final void setRequired(java.lang.String required)
UIConstants.REQUIRED_YES
User input in this choice is required.
UIConstants.REQUIRED_NO
User input in this choice is not required.
The default if this attribute is not set is "no"
.
public static ClientAction getPrimaryClientAction(MutableUINode bean)
public static void setPrimaryClientAction(MutableUINode bean, ClientAction primaryClientAction)
public static DataObjectList getChildData(MutableUINode bean)
public static void setChildData(MutableUINode bean, DataObjectList childData)
public static void setChildData(MutableUINode bean, DataObjectList childData)
public static void setChildDataBinding(MutableUINode bean, BoundValue boundValue)
boundValue
- a BoundValue implementation to be used
to retrieve the value.public static void setChildDataBinding(MutableUINode bean, java.lang.Object selectKey)
selectKey
- the key to be passed to selectValue()
on the
current DataObject
, e.g., the DataObject for the current
table row.public static void setChildDataBinding(MutableUINode bean, java.lang.String dataNamespace, java.lang.String dataName, java.lang.Object selectKey)
dataNamespace
- the namespace to be passed to
RenderingContext.getDataObject()
dataName
- the name to be passed to
RenderingContext.getDataObject()
selectKey
- the key to be passed to selectValue()
on the
DataObject
.public static void setTextBinding(MutableUINode bean, BoundValue boundValue)
boundValue
- a BoundValue implementation to be used
to retrieve the value.public static void setTextBinding(MutableUINode bean, java.lang.Object selectKey)
selectKey
- the key to be passed to selectValue()
on the
current DataObject
, e.g., the DataObject for the current
table row.public static void setValueBinding(MutableUINode bean, BoundValue boundValue)
boundValue
- a BoundValue implementation to be used
to retrieve the value.public static void setValueBinding(MutableUINode bean, java.lang.Object selectKey)
selectKey
- the key to be passed to selectValue()
on the
current DataObject
, e.g., the DataObject for the current
table row.public static java.lang.String getType(MutableUINode bean)
public static void setType(MutableUINode bean, java.lang.String type)
public static java.lang.String getRequired(MutableUINode bean)
UIConstants.REQUIRED_YES
User input in this choice is required.
UIConstants.REQUIRED_NO
User input in this choice is not required.
The default if this attribute is not set is "no"
.
public static void setRequired(MutableUINode bean, java.lang.String required)
UIConstants.REQUIRED_YES
User input in this choice is required.
UIConstants.REQUIRED_NO
User input in this choice is not required.
The default if this attribute is not set is "no"
.
|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |