T - the return value type of the radio group.public class RadioGroupBase<T> extends FlowPanel implements HasName, HasValue<T>, LeafValueEditor<T>, HasEditorErrors<T>, HasErrorHandler, HasValidators<T>, HasBlankValidator<T>
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledEditor.Ignore, Editor.PathInsertPanel.ForIsWidgetHasWidgets.ForIsWidgetDEBUG_ID_PREFIX| Constructor and Description |
|---|
RadioGroupBase(String name,
Parser<T> parser)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Widget w) |
HandlerRegistration |
addValidationChangedHandler(ValidationChangedEvent.ValidationChangedHandler handler)
Adds a validation changed handler.
|
void |
addValidator(Validator<T> validator)
Adds the validator.
|
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler<T> handler) |
void |
clear() |
boolean |
getAllowBlank() |
ErrorHandler |
getErrorHandler()
Gets the error handler.
|
ErrorHandlerType |
getErrorHandlerType()
Gets the error handler type.
|
String |
getName() |
Set<Radio> |
getRadioChildren() |
protected Set<Radio> |
getRadioChildren(Widget widget,
Set<Radio> c)
Gets the radio children.
|
boolean |
getValidateOnBlur()
Gets the validate on blur.
|
T |
getValue() |
void |
insert(IsWidget w,
int beforeIndex) |
void |
insert(Widget w,
int beforeIndex) |
boolean |
remove(Widget w) |
boolean |
removeValidator(Validator<T> validator)
Removes the validator.
|
void |
reset()
Reset the form element to blank and clear error messages.
|
void |
setAllowBlank(boolean allowBlank) |
void |
setErrorHandler(ErrorHandler handler)
Sets the error handler.
|
void |
setErrorHandlerType(ErrorHandlerType type)
Sets the error handler type.
|
void |
setName(String name) |
void |
setValidateOnBlur(boolean validateOnBlur)
Sets the validate on blur.
|
void |
setValidators(Validator<T>... validators)
The validators used to validate this object.
|
void |
setValue(T value) |
void |
setValue(T value,
boolean fireEvents) |
void |
showErrors(List<EditorError> errors) |
protected void |
updateChildren()
Update the radio children names.
|
boolean |
validate()
Validate the field's value using the supplied validators.
|
boolean |
validate(boolean show)
Validate the field's value using the supplied validators.
|
getDataSpy, getDataTarget, getId, setDataSpy, setDataTarget, setDataTargetWidget, setDataTargetWidgets, setHiddenOn, setId, setVisibleOnadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, removeadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, resolvePotentialElement, 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, waitfireEventaddgetWidgetIndexgetWidget, getWidgetCount, getWidgetIndex, removeforEach, spliteratorpublic RadioGroupBase(String name, Parser<T> parser)
name - the nameparser - the parserpublic void add(Widget w)
add in interface HasWidgetsadd in interface InsertPaneladd in class FlowPanelpublic HandlerRegistration addValidationChangedHandler(ValidationChangedEvent.ValidationChangedHandler handler)
ValidationChangedEvent.HasValidationChangedHandlersaddValidationChangedHandler in interface ValidationChangedEvent.HasValidationChangedHandlershandler - the handlerpublic void addValidator(Validator<T> validator)
HasValidatorsaddValidator in interface HasValidators<T>validator - the validatorpublic HandlerRegistration addValueChangeHandler(ValueChangeHandler<T> handler)
addValueChangeHandler in interface HasValueChangeHandlers<T>public void clear()
clear in interface HasWidgetsclear in class FlowPanelpublic boolean getAllowBlank()
getAllowBlank in interface HasBlankValidator<T>public ErrorHandler getErrorHandler()
getErrorHandler in interface HasErrorHandlerpublic ErrorHandlerType getErrorHandlerType()
getErrorHandlerType in interface HasErrorHandlerpublic Set<Radio> getRadioChildren()
protected Set<Radio> getRadioChildren(Widget widget, Set<Radio> c)
widget - the widgetc - the current childrenpublic boolean getValidateOnBlur()
getValidateOnBlur in interface HasValidators<T>public void insert(IsWidget w, int beforeIndex)
insert in interface InsertPanel.ForIsWidgetinsert in class FlowPanelpublic void insert(Widget w, int beforeIndex)
insert in interface InsertPanelinsert in class FlowPanelpublic boolean removeValidator(Validator<T> validator)
removeValidator in interface HasValidators<T>validator - the validatorpublic void reset()
reset in interface HasValidators<T>public void setAllowBlank(boolean allowBlank)
setAllowBlank in interface HasBlankValidator<T>allowBlank - the new allow blankpublic void setErrorHandler(ErrorHandler handler)
setErrorHandler in interface HasErrorHandlerhandler - the new error handlerpublic void setErrorHandlerType(ErrorHandlerType type)
setErrorHandlerType in interface HasErrorHandlertype - the new error handler typepublic void setValidateOnBlur(boolean validateOnBlur)
HasValidatorssetValidateOnBlur in interface HasValidators<T>validateOnBlur - the new validate on blurpublic void setValidators(Validator<T>... validators)
HasValidatorssetValidators in interface HasValidators<T>validators - the new validatorspublic void showErrors(List<EditorError> errors)
showErrors in interface HasEditorErrors<T>protected void updateChildren()
public boolean validate()
validate in interface HasValidators<T>public boolean validate(boolean show)
validate in interface HasValidators<T>show - the error to the user.public boolean remove(Widget w)
remove in interface HasWidgetsremove in class ComplexPanelCopyright © 2017. All rights reserved.