public class RadioButton extends CheckBox
Re-design for Bootstrap.
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
static DirectionEstimator |
DEFAULT_DIRECTION_ESTIMATOR |
DEBUG_ID_PREFIX
Constructor and Description |
---|
RadioButton(String name)
Creates a new radio associated with a particular group name.
|
RadioButton(String name,
SafeHtml label)
Creates a new radio associated with a particular group, and initialized
with the given HTML label.
|
RadioButton(String name,
SafeHtml label,
DirectionEstimator directionEstimator) |
RadioButton(String name,
SafeHtml label,
HasDirection.Direction dir) |
RadioButton(String name,
String label)
Creates a new radio associated with a particular group, and initialized
with the given HTML label.
|
RadioButton(String name,
String label,
boolean asHTML)
Creates a new radio button associated with a particular group, and
initialized with the given label (optionally treated as HTML).
|
RadioButton(String name,
String label,
DirectionEstimator directionEstimator) |
RadioButton(String name,
String label,
HasDirection.Direction dir) |
Modifier and Type | Method and Description |
---|---|
protected void |
ensureDomEventHandlers()
No-op.
|
void |
onBrowserEvent(Event event)
Overridden to send ValueChangeEvents only when appropriate.
|
void |
setName(String name)
Change the group name of this radio button.
|
void |
sinkEvents(int eventBitsToAdd) |
addStyle, addValueChangeHandler, asEditor, asLabel, getDirectionEstimator, getFormValue, getHTML, getId, getName, getTabIndex, getText, getTextDirection, getValue, getWordWrap, isChecked, isEnabled, isSearchQuery, onEnsureDebugId, onLoad, onUnload, removeStyle, replaceInputElement, setAccessKey, setChecked, setDirectionEstimator, setDirectionEstimator, setEnabled, setFocus, setFormValue, setHideOn, setHTML, setHTML, setId, setInline, setSearchQuery, setShowOn, setStyle, setTabIndex, setText, setText, setValue, setValue, setWordWrap
setHTML
addBlurHandler, addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addFocusListener, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getFocusImpl, onAttach, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onDetach, removeFromParent, setLayoutData
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
setHTML
public static final DirectionEstimator DEFAULT_DIRECTION_ESTIMATOR
@UiConstructor public RadioButton(String name)
name
- the group name with which to associate the radio buttonpublic RadioButton(String name, SafeHtml label)
name
- the group name with which to associate the radio buttonlabel
- this radio button's html labelpublic RadioButton(String name, SafeHtml label, HasDirection.Direction dir)
name
- the group name with which to associate the radio buttonlabel
- this radio button's html labeldir
- the text's direction. Note that DEFAULT
means
direction should be inherited from the widget's parent
element.RadioButton(String, SafeHtml)
public RadioButton(String name, SafeHtml label, DirectionEstimator directionEstimator)
name
- the group name with which to associate the radio buttonlabel
- this radio button's html labeldirectionEstimator
- A DirectionEstimator object used for automatic direction
adjustment. For convenience,
DEFAULT_DIRECTION_ESTIMATOR
can be used.RadioButton(String, SafeHtml)
public RadioButton(String name, String label)
name
- the group name with which to associate the radio buttonlabel
- this radio button's labelpublic RadioButton(String name, String label, HasDirection.Direction dir)
name
- the group name with which to associate the radio buttonlabel
- this radio button's labeldir
- the text's direction. Note that DEFAULT
means
direction should be inherited from the widget's parent
element.RadioButton(String, SafeHtml)
public RadioButton(String name, String label, DirectionEstimator directionEstimator)
name
- the group name with which to associate the radio buttonlabel
- this radio button's labeldirectionEstimator
- A DirectionEstimator object used for automatic direction
adjustment. For convenience,
DEFAULT_DIRECTION_ESTIMATOR
can be used.RadioButton(String, SafeHtml)
public RadioButton(String name, String label, boolean asHTML)
name
- name the group with which to associate the radio buttonlabel
- this radio button's labelasHTML
- true
to treat the specified label as HTMLpublic void onBrowserEvent(Event event)
onBrowserEvent
in interface EventListener
onBrowserEvent
in class Widget
public void setName(String name)
public void sinkEvents(int eventBitsToAdd)
sinkEvents
in class CheckBox
protected void ensureDomEventHandlers()
onBrowserEvent(com.google.gwt.user.client.Event)
ensureDomEventHandlers
in class CheckBox
Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.