public class VCheckBoxGroup extends FocusableFlowPanelComposite implements Field, com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.user.client.ui.HasEnabled
CheckBoxGroup component.| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSNAME |
static String |
CLASSNAME_OPTION |
static String |
CLASSNAME_OPTION_SELECTED |
ApplicationConnection |
client
For internal use only.
|
| Constructor and Description |
|---|
VCheckBoxGroup() |
| Modifier and Type | Method and Description |
|---|---|
Registration |
addSelectionChangeHandler(BiConsumer<elemental.json.JsonObject,Boolean> selectionChanged) |
void |
buildOptions(List<elemental.json.JsonObject> items) |
void |
focus()
Set focus to the first check box.
|
elemental.json.JsonObject |
getItem(com.google.gwt.dom.client.Element element)
Returns the JsonObject used to populate the CheckBox widget that contains
given Element.
|
boolean |
isEnabled() |
boolean |
isHtmlContentAllowed() |
boolean |
isReadonly() |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
setEnabled(boolean enabled) |
void |
setHtmlContentAllowed(boolean htmlContentAllowed) |
protected void |
setOptionEnabled(VCheckBox checkBox,
elemental.json.JsonObject item)
Updates the checkbox's enabled state according to the widget's enabled,
read only and the item's enabled.
|
protected void |
setOptionReadOnly(VCheckBox checkBox,
elemental.json.JsonObject item) |
void |
setReadonly(boolean readonly) |
void |
setTabIndex(int tabIndex) |
addBlurHandler, addFocusHandler, getWidgetclaimElement, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic static final String CLASSNAME
public static final String CLASSNAME_OPTION
public static final String CLASSNAME_OPTION_SELECTED
public ApplicationConnection client
public void buildOptions(List<elemental.json.JsonObject> items)
public elemental.json.JsonObject getItem(com.google.gwt.dom.client.Element element)
element - the element to search fornull if not foundpublic void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerpublic void setTabIndex(int tabIndex)
protected void setOptionEnabled(VCheckBox checkBox, elemental.json.JsonObject item)
checkBox - the checkbox to updateitem - the item for the checkboxprotected void setOptionReadOnly(VCheckBox checkBox, elemental.json.JsonObject item)
public boolean isHtmlContentAllowed()
public void setHtmlContentAllowed(boolean htmlContentAllowed)
public boolean isEnabled()
isEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic boolean isReadonly()
public void setReadonly(boolean readonly)
public void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic Registration addSelectionChangeHandler(BiConsumer<elemental.json.JsonObject,Boolean> selectionChanged)
public void focus()
focus in interface Focusablefocus in class FocusableFlowPanelCompositeCopyright © 2021 Vaadin Ltd. All rights reserved.