|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.commons.client.RadioButtonGroup
public class RadioButtonGroup
The class RadioButtonGroup is the GWT wrapper
for the Phoenix control: sap.ui.commons.RadioButtonGroup.
a group of RadioButtons to hande as one UI element.
| Constructor Summary | |
|---|---|
protected |
RadioButtonGroup()
constructs the class RadioButtonGrouphidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
RadioButtonGroup |
addItem(com.sap.ui.core.client.Item item)
Appends a item to the aggregation items. |
RadioButtonGroup |
attachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when selection is changed by user interaction. |
RadioButtonGroup |
bindItems(String path,
com.sap.ui.core.client.Element template)
Binder for aggregation items. |
static RadioButtonGroup |
create()
creates a new instance of the class RadioButtonGroup |
static RadioButtonGroup |
create(String idOrConfig)
creates a new instance of the class RadioButtonGroup |
static RadioButtonGroup |
create(String id,
String config)
creates a new instance of the class RadioButtonGroup |
RadioButtonGroup |
destroyItems()
Destroys all the items in the Items-aggregation. |
RadioButtonGroup |
detachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when selection is changed by user interaction. |
int |
getColumns()
Getter for property columns
Number of RadioButtons displayed in one Line. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Item> |
getItems()
Getter for aggregation items RadioButtons of this RadioButtonGroup |
int |
getSelectedIndex()
Getter for property selectedIndex
Index of the selected/checked RadioButton. |
com.sap.ui.core.client.Item |
getSelectedItem()
Returns selected item. |
com.sap.ui.core.client.ValueState |
getValueState()
Getter for property valueState
The value state to be displayed. |
String |
getWidth()
Getter for property width
Width of the RadioButtonGroup. |
int |
indexOfItem(com.sap.ui.core.client.Item item)
Checks for the provided com.sap.ui.core.client.Item in the items-aggregation and
returns its index if found or -1 otherwise. |
RadioButtonGroup |
insertItem(com.sap.ui.core.client.Item item,
int index)
Inserts some item into the aggregation named items. |
boolean |
isEditable()
Getter for property editable
Specifies whether the user can choose a radio button. |
boolean |
isVisible()
Getter for property visible
Visibility of Group |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Item>> |
removeAllItems()
Removes all the items in the items-aggregation. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Item> |
removeItem(int index)
Removes a item from the aggregation named items. |
RadioButtonGroup |
setColumns(int value)
Setter for property columnsDefault value is: 1 |
RadioButtonGroup |
setEditable(boolean value)
Setter for property editableDefault value is: true |
RadioButtonGroup |
setSelectedIndex(int value)
Setter for property selectedIndexDefault value is: 0 |
void |
setSelectedItem(com.sap.ui.core.client.Item item)
Sets the item as seleced and removs the selection from the old one. |
RadioButtonGroup |
setValueState(com.sap.ui.core.client.ValueState value)
Setter for property valueStateDefault value is: None |
RadioButtonGroup |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
RadioButtonGroup |
setWidth(String value)
Setter for property width |
RadioButtonGroup |
unbindItems()
Unbinder for aggregation items. |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected RadioButtonGroup()
RadioButtonGroupJavaScriptObject restriction
| Method Detail |
|---|
public static RadioButtonGroup create()
RadioButtonGroup
public static RadioButtonGroup create(String idOrConfig)
RadioButtonGroup
id - id of the RadioButtonGroup or configuration JSON string
public static RadioButtonGroup create(String id,
String config)
RadioButtonGroup
id - id of the RadioButtonGroupconfig - configuration JSON stringpublic final String getWidth()
width
Width of the RadioButtonGroup.
public final RadioButtonGroup setWidth(String value)
width
value - String
this to allow method chainingpublic final int getColumns()
columns
Number of RadioButtons displayed in one Line.
public final RadioButtonGroup setColumns(int value)
columns1
value - int
this to allow method chainingpublic final boolean isVisible()
visible
Visibility of Group
public final RadioButtonGroup setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final boolean isEditable()
editable
Specifies whether the user can choose a radio button.
public final RadioButtonGroup setEditable(boolean value)
editabletrue
value - boolean
this to allow method chainingpublic final com.sap.ui.core.client.ValueState getValueState()
valueState
The value state to be displayed.
public final RadioButtonGroup setValueState(com.sap.ui.core.client.ValueState value)
valueStateNone
value - com.sap.ui.core.client.ValueState
this to allow method chainingpublic final int getSelectedIndex()
selectedIndex
Index of the selected/checked RadioButton.
public final RadioButtonGroup setSelectedIndex(int value)
selectedIndex0
value - int
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Item> getItems()
public final RadioButtonGroup insertItem(com.sap.ui.core.client.Item item,
int index)
items.
item - the item to insertindex - int the 0-based index the item should be inserted at.
this to allow method chainingpublic final RadioButtonGroup addItem(com.sap.ui.core.client.Item item)
items.
item - com.sap.ui.core.client.Item the item to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Item> removeItem(int index)
items.
index - int the position of the item to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Item>> removeAllItems()
public final int indexOfItem(com.sap.ui.core.client.Item item)
com.sap.ui.core.client.Item in the items-aggregation and
returns its index if found or -1 otherwise.
item - the item whose index is looked for.
public final RadioButtonGroup destroyItems()
this to allow method chaining
public final RadioButtonGroup bindItems(String path,
com.sap.ui.core.client.Element template)
items.
path - path to a list in the modeltemplate - the template Element for this aggregation
this to allow method chainingpublic final RadioButtonGroup unbindItems()
items.
this to allow method chainingpublic final RadioButtonGroup attachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when selection is changed by user interaction.
listener - reference to the EventListener
this to allow method chainingpublic final RadioButtonGroup detachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when selection is changed by user interaction.
listener - reference to the EventListener
this to allow method chainingpublic final com.sap.ui.core.client.Item getSelectedItem()
public final void setSelectedItem(com.sap.ui.core.client.Item item)
item - Selected item.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||