public class VRadioButtonGroup extends FocusableFlowPanelComposite implements Field, com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.user.client.ui.HasEnabled
RadioButtonGroup component.| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSNAME |
static String |
CLASSNAME_OPTION |
static String |
CLASSNAME_OPTION_SELECTED |
ApplicationConnection |
client
For internal use only.
|
| Constructor and Description |
|---|
VRadioButtonGroup() |
| Modifier and Type | Method and Description |
|---|---|
Registration |
addSelectionChangeHandler(Consumer<JsonObject> selectionChanged) |
void |
buildOptions(List<JsonObject> items) |
void |
focus()
Set focus to the selected radio button (or first radio button if there is
no selection).
|
JsonObject |
getItem(com.google.gwt.dom.client.Element element)
Returns the JsonObject used to populate the RadioButton widget that
contains given Element.
|
boolean |
isEnabled() |
boolean |
isHtmlContentAllowed() |
boolean |
isReadonly() |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
selectItemKey(String selectedItemKey) |
void |
setEnabled(boolean enabled) |
void |
setHtmlContentAllowed(boolean htmlContentAllowed) |
void |
setReadonly(boolean readonly) |
void |
setTabIndex(int tabIndex) |
protected void |
updateEnabledState() |
protected void |
updateItemEnabled(com.google.gwt.user.client.ui.RadioButton radioButton,
boolean value)
Updates the enabled state of a radio button.
|
protected void |
updateItemSelection(com.google.gwt.user.client.ui.RadioButton radioButton,
boolean value)
Updates the selected state of a radio button.
|
addBlurHandler, addFocusHandler, getWidgetclaimElement, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic static final String CLASSNAME
public static final String CLASSNAME_OPTION
public static final String CLASSNAME_OPTION_SELECTED
public ApplicationConnection client
public void buildOptions(List<JsonObject> items)
public JsonObject getItem(com.google.gwt.dom.client.Element element)
element - the element to search fornull if not foundpublic void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerpublic void setTabIndex(int tabIndex)
protected void updateEnabledState()
public boolean isHtmlContentAllowed()
public void setHtmlContentAllowed(boolean htmlContentAllowed)
public boolean isEnabled()
isEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic boolean isReadonly()
public void setReadonly(boolean readonly)
public void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic Registration addSelectionChangeHandler(Consumer<JsonObject> selectionChanged)
public void selectItemKey(String selectedItemKey)
public void focus()
focus in interface Focusablefocus in class FocusableFlowPanelCompositeprotected void updateItemSelection(com.google.gwt.user.client.ui.RadioButton radioButton,
boolean value)
radioButton - the radio button to updatevalue - true if selected; false if notprotected void updateItemEnabled(com.google.gwt.user.client.ui.RadioButton radioButton,
boolean value)
radioButton - the radio button to updatevalue - true if enabled; false if notCopyright © 2018 Vaadin Ltd. All rights reserved.