E
- Enumeration that implements EnumCreator interface.public class EnumRadioGroup<E extends EnumCreator>
extends org.gwtbootstrap3.client.ui.base.RadioGroupBase<E>
Modifier and Type | Class and Description |
---|---|
static class |
EnumRadioGroup.RadioStyles
Radio group styles
|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
com.google.gwt.editor.client.Editor.Ignore, com.google.gwt.editor.client.Editor.Path
Modifier and Type | Field and Description |
---|---|
private E |
creator
The enumeration creator
|
private boolean |
init
The auto initialization flag that means how radio buttons are created for this widget.
|
private EnumRadioGroup.RadioStyles |
rstyle
The layout style used to place radio buttons
|
private java.util.Map<java.lang.String,java.lang.String> |
translationMap
The translation map that holds entries of the enumeration name and its presentation value
|
Constructor and Description |
---|
EnumRadioGroup(java.lang.String name,
E creator,
EnumRadioGroup.RadioStyles rstyle,
boolean init)
Radio Group UI constructor.
|
EnumRadioGroup(java.lang.String name,
E creator,
EnumRadioGroup.RadioStyles rstyle,
boolean init,
java.util.Map<java.lang.String,java.lang.String> translationMap)
Radio Group UI constructor.
|
Modifier and Type | Method and Description |
---|---|
private static <E extends EnumCreator> |
getParser(E creator)
Creates the enumeration parser.
|
private void |
init()
Creates radio buttons from the given enumeration values.
|
void |
setEnabled(java.lang.Enum value,
boolean enabled)
Enable a radio button by its enumeration value.
|
add, addValidationChangedHandler, addValidator, addValueChangeHandler, clear, getAllowBlank, getErrorHandler, getErrorHandlerType, getName, getRadioChildren, getRadioChildren, getValidateOnBlur, getValue, insert, insert, remove, removeValidator, reset, setAllowBlank, setErrorHandler, setErrorHandlerType, setName, setValidateOnBlur, setValidators, setValue, setValue, showErrors, updateChildren, validate, validate
getDataSpy, getDataTarget, getId, setDataSpy, setDataTarget, setDataTargetWidget, setDataTargetWidgets, setHiddenOn, setId, setVisibleOn
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove
add, adopt, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getWidgetIndex
private boolean init
private final E extends EnumCreator creator
private final EnumRadioGroup.RadioStyles rstyle
private final java.util.Map<java.lang.String,java.lang.String> translationMap
@UiConstructor public EnumRadioGroup(java.lang.String name, E creator, EnumRadioGroup.RadioStyles rstyle, boolean init)
name
- A radio group common name.creator
- A labels/buttons creatorrstyle
- Radio group style tha can be an in-line style or a vertical styleinit
- If its value is true, then radio buttons are created with the help of
the provided creator. The false value means that the values are provided by
the UI xml descriptor.public EnumRadioGroup(java.lang.String name, E creator, EnumRadioGroup.RadioStyles rstyle, boolean init, java.util.Map<java.lang.String,java.lang.String> translationMap)
name
- A radio group common name.creator
- A labels/buttons creatorrstyle
- Radio group style tha can be an in-line style or a vertical styleinit
- If its value is true, then radio buttons are created with the help of
the provided creator. The false value means that the values are provided by
the UI xml descriptor.translationMap
- The translation map that maps the target enumeration type to its labels.public void setEnabled(java.lang.Enum value, boolean enabled)
value
- The target value that represents the button that should be enabled or disabled.enabled
- The enable state for the target radio button.private void init()
private static <E extends EnumCreator> com.google.gwt.text.shared.Parser<E> getParser(E creator)
creator
- The enumeration creator