|
|||||||||
| 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.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.form.Field<D>
com.extjs.gxt.ui.client.widget.form.MultiField<Radio>
com.extjs.gxt.ui.client.widget.form.RadioGroup
public class RadioGroup
A group of Radio's.
| Nested Class Summary | |
|---|---|
class |
RadioGroup.RadioGroupMessages
TextField Messages. |
| Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.form.Field |
|---|
Field.FieldImages, Field.FieldMessages |
| 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.extjs.gxt.ui.client.widget.form.MultiField |
|---|
fields, lc, orientation, spacing, validator |
| Fields inherited from class com.extjs.gxt.ui.client.widget.form.Field |
|---|
autoValidate, emptyText, errorIcon, fieldStyle, focusStyle, focusValue, forceInvalidText, hasFocus, images, invalidStyle, messages, name, originalValue, preventMark, propertyEditor, readOnly, readOnlyFieldStyle, validationDelay, validationTask, value |
| Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
| Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
|---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
RadioGroup()
Creates a new radio group. |
|
RadioGroup(java.lang.String name)
Creates a new radio group. |
|
| Method Summary | |
|---|---|
void |
add(Radio radio)
|
RadioGroup.RadioGroupMessages |
getMessages()
Returns the field's messages. |
Radio |
getValue()
Returns the selected radio. |
boolean |
isSelectionRequired()
Returns true if a selection is required. |
boolean |
isValid(boolean preventMark)
Returns whether or not the field value is currently valid. |
void |
markInvalid(java.lang.String msg)
Marks this field as invalid. |
protected void |
onRadioSelected(Radio radio)
|
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
protected void |
setAriaState(java.lang.String stateName,
java.lang.String stateValue)
|
void |
setSelectionRequired(boolean selectionRequired)
Sets whether a selection is required when validating the group (defaults to false). |
void |
setValue(Radio value)
Sets a data value into the field and validates it. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.form.MultiField |
|---|
add, clear, doAttachChildren, doDetachChildren, get, getAll, getInputEl, getOrientation, getSpacing, getValidator, isResizeFields, notifyHide, notifyShow, onBrowserEvent, onComponentEvent, onDisable, onEnable, onResize, reset, setOrientation, setReadOnly, setResizeFields, setSpacing, setValidator, validateValue |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
adjustPosition, adjustSize, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onPosition, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| 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, setLayoutData |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, resolvePotentialElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RadioGroup()
public RadioGroup(java.lang.String name)
name - the group name| Method Detail |
|---|
public void add(Radio radio)
public RadioGroup.RadioGroupMessages getMessages()
Field
getMessages in class Field<Radio>public Radio getValue()
getValue in class Field<Radio>public boolean isSelectionRequired()
public boolean isValid(boolean preventMark)
Field
isValid in class MultiField<Radio>preventMark - true for silent validation (no invalid event and field
is not marked invalid)
true if the value is valid, otherwise
falsepublic void markInvalid(java.lang.String msg)
FieldField.forceInvalid(String)
markInvalid in class Field<Radio>msg - the validation message treated as HTMLpublic void setSelectionRequired(boolean selectionRequired)
selectionRequired - true to require a selectionpublic void setValue(Radio value)
FieldField.setRawValue(java.lang.String).
setValue in class Field<Radio>value - the value to setprotected void onRadioSelected(Radio radio)
protected void onRender(com.google.gwt.user.client.Element target,
int index)
Component
onRender in class MultiField<Radio>target - the target elementindex - the insert location
protected void setAriaState(java.lang.String stateName,
java.lang.String stateValue)
setAriaState in class Component
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||