|
||||||||||
| 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.RadioButtonWidget
public class RadioButtonWidget
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".
| 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 | |
|---|---|
|
RadioButtonWidget()
constructs the class RadioButtonWidget |
protected |
RadioButtonWidget(RadioButton control)
constructs the class RadioButtonWidget |
|
RadioButtonWidget(String id)
constructs the class RadioButtonWidget |
| Method Summary | |
|---|---|
void |
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". |
void |
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". |
RadioButton |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
setEditable(boolean value)
Setter for property editableDefault value is: true |
void |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
void |
setGroupName(String value)
Setter for property groupNameDefault value is: 'sapUiRbDefaultGroup' |
void |
setKey(String value)
Setter for property key |
void |
setSelected(boolean value)
Setter for property selectedDefault value is: false |
void |
setText(String value)
Setter for property text |
void |
setTextDirection(com.sap.ui.core.client.TextDirection value)
Setter for property textDirectionDefault value is: Inherit |
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 |
| 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 RadioButtonWidget()
RadioButtonWidget
public RadioButtonWidget(String id)
RadioButtonWidget
id - id of the RadioButtonWidgetprotected RadioButtonWidget(RadioButton control)
RadioButtonWidget
control - reference to an existing RadioButton| Method Detail |
|---|
public RadioButton getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getText()
text
Defines the text displayed next to the radio button.
public void setText(String value)
text
value - Stringpublic boolean isVisible()
visible
Invisible radio buttons are not rendered.
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 isEnabled()
enabled
Disabled controls are displayed in another color, depending on the customer settings.
public void setEnabled(boolean value)
enabledtrue
value - booleanpublic boolean isEditable()
editable
Specifies whether the user can choose a radio button.
public void setEditable(boolean value)
editabletrue
value - booleanpublic boolean isSelected()
selected
Specifies the select state of the radio button.
public void setSelected(boolean value)
selectedfalse
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 String getWidth()
width
The control width depends on the text length. Alternatively, CSS-sizes in % or px can be set.
public void setWidth(String value)
width
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic 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 void setTextDirection(com.sap.ui.core.client.TextDirection value)
textDirectionInherit
value - com.sap.ui.core.client.TextDirectionpublic 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 void setGroupName(String value)
groupName'sapUiRbDefaultGroup'
value - Stringpublic String getKey()
key
Can be used as input for subsequent actions.
public void setKey(String value)
key
value - Stringpublic void 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 EventListenerpublic void 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||