|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.RadioButtonGroupWidget
public class RadioButtonGroupWidget
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
RadioButtonGroupWidget()
constructs the class RadioButtonGroupWidget |
protected |
RadioButtonGroupWidget(RadioButtonGroup control)
constructs the class RadioButtonGroupWidget |
|
RadioButtonGroupWidget(String id)
constructs the class RadioButtonGroupWidget |
| Method Summary | |
|---|---|
void |
addItem(com.sap.ui.core.client.Item item)
Appends some item to the items-aggregation. |
void |
attachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when selection is changed by user interaction. |
void |
bindItems(String path,
com.sap.ui.core.client.Element template)
Binder for aggregation items. |
void |
destroyItems()
Destroys all the items in the Items-aggregation. |
void |
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. |
RadioButtonGroup |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
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 |
void |
removeAllItems()
Removes all the items in the items-aggregation. |
void |
removeItem(int index)
Removes the item at position index in the items-aggregation named. |
void |
setColumns(int value)
Setter for property columnsDefault value is: 1 |
void |
setEditable(boolean value)
Setter for property editableDefault value is: true |
void |
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. |
void |
setValueState(com.sap.ui.core.client.ValueState value)
Setter for property valueStateDefault value is: None |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
setWidth(String value)
Setter for property width |
void |
unbindItems()
Unbinder for aggregation items. |
| Methods inherited from class com.sap.ui.core.client.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RadioButtonGroupWidget()
RadioButtonGroupWidget
public RadioButtonGroupWidget(String id)
RadioButtonGroupWidget
id - id of the RadioButtonGroupWidgetprotected RadioButtonGroupWidget(RadioButtonGroup control)
RadioButtonGroupWidget
control - reference to an existing RadioButtonGroup| Method Detail |
|---|
public RadioButtonGroup getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getWidth()
width
Width of the RadioButtonGroup.
public void setWidth(String value)
width
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic int getColumns()
columns
Number of RadioButtons displayed in one Line.
public void setColumns(int value)
columns1
value - intpublic boolean isVisible()
visible
Visibility of Group
isVisible in class com.google.gwt.user.client.ui.UIObjectpublic void setVisible(boolean value)
visibletrue
setVisible in class com.google.gwt.user.client.ui.UIObjectvalue - booleanpublic boolean isEditable()
editable
Specifies whether the user can choose a radio button.
public void setEditable(boolean value)
editabletrue
value - booleanpublic com.sap.ui.core.client.ValueState getValueState()
valueState
The value state to be displayed.
public void setValueState(com.sap.ui.core.client.ValueState value)
valueStateNone
value - com.sap.ui.core.client.ValueStatepublic int getSelectedIndex()
selectedIndex
Index of the selected/checked RadioButton.
public void setSelectedIndex(int value)
selectedIndex0
value - intpublic com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Item> getItems()
public void insertItem(com.sap.ui.core.client.Item item,
int index)
item - the item to insertindex - int the 0-based index the item should be inserted at.public void addItem(com.sap.ui.core.client.Item item)
item - com.sap.ui.core.client.Item the item to addpublic void removeItem(int index)
index in the items-aggregation named.
index - int the position of the item to remove.public void removeAllItems()
public 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 void destroyItems()
public final void bindItems(String path,
com.sap.ui.core.client.Element template)
items.
path - path to a list in the modeltemplate - the template Element for this aggregationpublic final void unbindItems()
items.
public void attachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when selection is changed by user interaction.
listener - reference to the EventListenerpublic void detachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when selection is changed by user interaction.
listener - reference to the EventListenerpublic com.sap.ui.core.client.Item getSelectedItem()
public 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 | |||||||||