|
||||||||||
| 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.RadioButton
public class RadioButton
The class RadioButton is the GWT wrapper
for the Phoenix control: sap.ui.commons.RadioButton.
Consists of a round element and a descriptive text. Generally, you would create at least two radio button controls; by this, you provide a limited choice for the user. Radio buttons can trigger events. Available value states are "Error", "None", "Success", "Warning".
| Constructor Summary | |
|---|---|
protected |
RadioButton()
constructs the class RadioButtonhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
RadioButton |
attachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is triggered when user interaction causes a radio button switch from state "unselected" to "selected". |
static RadioButton |
create()
creates a new instance of the class RadioButton |
static RadioButton |
create(String idOrConfig)
creates a new instance of the class RadioButton |
static RadioButton |
create(String id,
String config)
creates a new instance of the class RadioButton |
RadioButton |
detachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is triggered when user interaction causes a radio button switch from state "unselected" to "selected". |
String |
getGroupName()
Getter for property groupName
Name of the radio button group the current one belongs to where you can define a new group name. |
String |
getKey()
Getter for property key
Can be used as input for subsequent actions. |
String |
getText()
Getter for property text
Defines the text displayed next to the radio button. |
com.sap.ui.core.client.TextDirection |
getTextDirection()
Getter for property textDirection
Available options here are LTR and RTL. |
com.sap.ui.core.client.ValueState |
getValueState()
Getter for property valueState
The value state to be displayed. |
String |
getWidth()
Getter for property width
The control width depends on the text length. |
boolean |
isEditable()
Getter for property editable
Specifies whether the user can choose a radio button. |
boolean |
isEnabled()
Getter for property enabled
Disabled controls are displayed in another color, depending on the customer settings. |
boolean |
isSelected()
Getter for property selected
Specifies the select state of the radio button. |
boolean |
isVisible()
Getter for property visible
Invisible radio buttons are not rendered. |
RadioButton |
setEditable(boolean value)
Setter for property editableDefault value is: true |
RadioButton |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
RadioButton |
setGroupName(String value)
Setter for property groupNameDefault value is: 'sapUiRbDefaultGroup' |
RadioButton |
setKey(String value)
Setter for property key |
RadioButton |
setSelected(boolean value)
Setter for property selectedDefault value is: false |
RadioButton |
setText(String value)
Setter for property text |
RadioButton |
setTextDirection(com.sap.ui.core.client.TextDirection value)
Setter for property textDirectionDefault value is: Inherit |
RadioButton |
setValueState(com.sap.ui.core.client.ValueState value)
Setter for property valueStateDefault value is: None |
RadioButton |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
RadioButton |
setWidth(String value)
Setter for property width |
| 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 RadioButton()
RadioButtonJavaScriptObject restriction
| Method Detail |
|---|
public static RadioButton create()
RadioButton
public static RadioButton create(String idOrConfig)
RadioButton
id - id of the RadioButton or configuration JSON string
public static RadioButton create(String id,
String config)
RadioButton
id - id of the RadioButtonconfig - configuration JSON stringpublic final String getText()
text
Defines the text displayed next to the radio button.
public final RadioButton setText(String value)
text
value - String
this to allow method chainingpublic final boolean isVisible()
visible
Invisible radio buttons are not rendered.
public final RadioButton setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final boolean isEnabled()
enabled
Disabled controls are displayed in another color, depending on the customer settings.
public final RadioButton setEnabled(boolean value)
enabledtrue
value - boolean
this to allow method chainingpublic final boolean isEditable()
editable
Specifies whether the user can choose a radio button.
public final RadioButton setEditable(boolean value)
editabletrue
value - boolean
this to allow method chainingpublic final boolean isSelected()
selected
Specifies the select state of the radio button.
public final RadioButton setSelected(boolean value)
selectedfalse
value - boolean
this to allow method chainingpublic final com.sap.ui.core.client.ValueState getValueState()
valueState
The value state to be displayed.
public final RadioButton setValueState(com.sap.ui.core.client.ValueState value)
valueStateNone
value - com.sap.ui.core.client.ValueState
this to allow method chainingpublic final String getWidth()
width
The control width depends on the text length. Alternatively, CSS-sizes in % or px can be set.
public final RadioButton setWidth(String value)
width
value - String
this to allow method chainingpublic final com.sap.ui.core.client.TextDirection getTextDirection()
textDirection
Available options here are LTR and RTL. Alternatively, the control can inherit the text direction from its parent container.
public final RadioButton setTextDirection(com.sap.ui.core.client.TextDirection value)
textDirectionInherit
value - com.sap.ui.core.client.TextDirection
this to allow method chainingpublic final String getGroupName()
groupName
Name of the radio button group the current one belongs to where you can define a new group name. All radio buttons in a page belong to the default group.
When any of the radio buttons in this group is selected, all others are deselected.
public final RadioButton setGroupName(String value)
groupName'sapUiRbDefaultGroup'
value - String
this to allow method chainingpublic final String getKey()
key
Can be used as input for subsequent actions.
public final RadioButton setKey(String value)
key
value - String
this to allow method chainingpublic final RadioButton attachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is triggered when user interaction causes a radio button switch from state "unselected" to "selected".
listener - reference to the EventListener
this to allow method chainingpublic final RadioButton detachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is triggered when user interaction causes a radio button switch from state "unselected" to "selected".
listener - reference to the EventListener
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||