public class GenericRadioButtonGroup<T> extends CheckBoxGroup implements com.google.gwt.user.client.ui.HasConstrainedValue<T>, com.google.gwt.editor.client.IsEditor<com.google.gwt.editor.client.adapters.TakesValueEditor<T>>, com.google.gwt.user.client.ui.HasEnabled
RadioButtons.
Supports i18n-Enums as source for the radio button options.myFlowPanel| Constructor and Description |
|---|
GenericRadioButtonGroup()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w) |
com.google.gwt.event.shared.HandlerRegistration |
addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<T> handler) |
com.google.gwt.editor.client.adapters.TakesValueEditor<T> |
asEditor() |
int |
getCheckedIndex()
The widget index of first checked radio button.
|
RadioButton |
getCheckedWidget()
Will return the first checked radio button or null if no
RadioButton was checked. |
String |
getName()
Return the name of this button group.
|
T |
getValue() |
boolean |
isEnabled() |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent e) |
void |
onInitialLoad()
When the widget is initially loaded.
|
void |
setAcceptableValues(Collection<T> values) |
void |
setEnabled(boolean enabled) |
void |
setKeyValueProvider(IProvidesKeyAndValue<T> keyValueProvider)
KyValueProvider: the keyValueProvider to set.
|
void |
setName(String name)
Sets the name of the slideUpPanel.
|
void |
setRenderer(com.google.gwt.text.shared.Renderer<T> renderer)
Renderer: the renderer to set.
|
void |
setValue(T value) |
void |
setValue(T value,
boolean fireEvents) |
addSelectionChangedHandler, getCheckedIndices, getCheckedWidgets, onDragEnd, onDragMove, onDragStart, onLoad, onUnload, onValueChange, setVerticalclear, getWidget, getWidgetCount, insert, iterator, remove, removeonTransitionEnd, setSecondaryStyleclaimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementpublic void onInitialLoad()
SWMMobileWidgetBaseonInitialLoad in interface IsSWMMobileWidgetonInitialLoad in class SWMMobileWidgetBasepublic void onClick(com.google.gwt.event.dom.client.ClickEvent e)
onClick in interface com.google.gwt.event.dom.client.ClickHandleronClick in class CheckBoxGrouppublic int getCheckedIndex()
public RadioButton getCheckedWidget()
RadioButton was checked.public void add(com.google.gwt.user.client.ui.Widget w)
add in interface com.google.gwt.user.client.ui.HasWidgetsadd in class CheckBoxGrouppublic void setName(String name)
name - the namepublic String getName()
public void setAcceptableValues(Collection<T> values)
setAcceptableValues in interface com.google.gwt.user.client.ui.HasConstrainedValue<T>public T getValue()
public void setValue(T value)
public void setValue(T value, boolean fireEvents)
setValue in interface com.google.gwt.user.client.ui.HasValue<T>public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<T> handler)
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<T>public void setKeyValueProvider(IProvidesKeyAndValue<T> keyValueProvider)
keyValueProvider - the keyValueProvider to setpublic void setRenderer(com.google.gwt.text.shared.Renderer<T> renderer)
renderer - the renderer to setpublic com.google.gwt.editor.client.adapters.TakesValueEditor<T> asEditor()
asEditor in interface com.google.gwt.editor.client.IsEditor<com.google.gwt.editor.client.adapters.TakesValueEditor<T>>public boolean isEnabled()
isEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledCopyright © 2011–2015 SWM. All rights reserved.