public class RadioButton extends UiElement implements Actionable
| Constructor and Description | 
|---|
| RadioButton()Constructor. | 
| RadioButton(java.lang.String id)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addActionListener(ActionListener listener) | 
| void | addOption(java.lang.String option) | 
| void | attach(ParentRenderNode<?,?> parentRenderNode)Attaches a  RenderNodefor this element to a parentRenderNode | 
| void | detach(ParentRenderNode<?,?> parentRenderNode)Detaches this element's  RenderNodefrom a parentRenderNode | 
| FlexDirection | getFlexDirection()Returns the  FlexDirectionfor rendering the buttons | 
| java.lang.String | getOption(int index) | 
| java.util.Iterator<java.lang.String> | getOptions() | 
| java.lang.String | getSelectedOption() | 
| int | getSelectedOptionIndex() | 
| int | getTotalOptions() | 
| boolean | isEnabled() | 
| boolean | isResponsive() | 
| void | notifyActionListenersOfBeginEvent(EventTrigger eventTrigger,
                                 EventTriggerParams eventTriggerParams) | 
| void | notifyActionListenersOfEndEvent(EventTrigger eventTrigger,
                               EventTriggerParams eventTriggerParams) | 
| void | removeActionListener(ActionListener listener) | 
| void | removeOption(java.lang.String option) | 
| void | selectNextOption() | 
| void | selectPreviousOption() | 
| void | setEnabled(boolean enabled) | 
| void | setFlexDirection(FlexDirection flexDirection)Sets the  FlexDirectionfor the buttons rendering | 
| void | setResponsive(boolean responsive) | 
| void | setSelectedOption(java.lang.String selectedOption) | 
| void | setSelectedOptionIndex(int selectedOptionIndex) | 
| void | setStyleId(java.lang.String styleId)Sets the style if for this  UiElement | 
| void | setVisibility(Visibility visibility)Sets the current  Visibilityof thisUiElement | 
| void | setZIndex(int zIndex)Sets the Z index of this  UiElement. | 
| void | syncWithRenderNode()Syncs data between the  UiElementandRenderNode | 
addEffectListener, addHoverListener, applyEffect, defer, defer, equals, getElementById, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, processDeferred, removeEffectListener, removeHoverListener, setDebugEnabledclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddHoverListener, getId, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeHoverListenerpublic RadioButton()
RadioButtonpublic RadioButton(java.lang.String id)
id - The unique ID for this RadioButtonpublic void attach(ParentRenderNode<?,?> parentRenderNode)
UiElementRenderNode for this element to a parent
 RenderNodeattach in class UiElementparentRenderNode - The parent RenderNode to attach topublic void detach(ParentRenderNode<?,?> parentRenderNode)
UiElementRenderNode from a parent
 RenderNodedetach in class UiElementparentRenderNode - The parent RenderNode to detach frompublic void notifyActionListenersOfBeginEvent(EventTrigger eventTrigger, EventTriggerParams eventTriggerParams)
notifyActionListenersOfBeginEvent in interface Actionablepublic void notifyActionListenersOfEndEvent(EventTrigger eventTrigger, EventTriggerParams eventTriggerParams)
notifyActionListenersOfEndEvent in interface Actionablepublic void setVisibility(Visibility visibility)
UiElementVisibility of this UiElementsetVisibility in class UiElementvisibility - The Visibility to setpublic void setStyleId(java.lang.String styleId)
UiElementUiElementsetStyleId in class UiElementstyleId - The style id to setpublic void syncWithRenderNode()
UiElementUiElement and RenderNodesyncWithRenderNode in class UiElementpublic void setZIndex(int zIndex)
UiElementUiElement. Elements will be rendered on
 different Z layers in ascending Z order (negatives values first, positive values last)public boolean isEnabled()
isEnabled in interface Actionablepublic void setEnabled(boolean enabled)
setEnabled in interface Actionablepublic void addActionListener(ActionListener listener)
addActionListener in interface Actionablepublic void removeActionListener(ActionListener listener)
removeActionListener in interface Actionablepublic FlexDirection getFlexDirection()
FlexDirection for rendering the buttonsFlexDirection.ROW by defaultpublic void setFlexDirection(FlexDirection flexDirection)
FlexDirection for the buttons renderingflexDirection - The FlexDirection to setpublic boolean isResponsive()
public void setResponsive(boolean responsive)
public void addOption(java.lang.String option)
public void removeOption(java.lang.String option)
public java.lang.String getOption(int index)
public java.util.Iterator<java.lang.String> getOptions()
public int getTotalOptions()
public int getSelectedOptionIndex()
public void setSelectedOptionIndex(int selectedOptionIndex)
public java.lang.String getSelectedOption()
public void setSelectedOption(java.lang.String selectedOption)
public void selectNextOption()
public void selectPreviousOption()