@CssImport(value="./styles/label-positions-checkbox.css",
themeFor="vaadin-checkbox")
public class SuperCheckbox
extends com.vaadin.flow.component.checkbox.Checkbox
implements WithLabelMixin<SuperCheckbox>, WithValueMixin<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.checkbox.Checkbox,Boolean>,Boolean,SuperCheckbox>, WithIdMixin<SuperCheckbox>, WithLabelPositionableMixin<SuperCheckbox>, WithTooltipMixin<SuperCheckbox>
Checkbox that can be made read-only (it becomes disabled when set to read-only).
While this exists mostly as a workaround for a known issue of Vaadin,
it also supports label position (though only LabelPosition#BEFORE_*, thus allowing
the label to be positioned on the other side of the actual checkbox).com.vaadin.flow.component.checkbox.GeneratedVaadinCheckbox.ChangeEvent<R extends com.vaadin.flow.component.checkbox.GeneratedVaadinCheckbox<R,?>>, com.vaadin.flow.component.checkbox.GeneratedVaadinCheckbox.CheckedChangeEvent<R extends com.vaadin.flow.component.checkbox.GeneratedVaadinCheckbox<R,?>>, com.vaadin.flow.component.checkbox.GeneratedVaadinCheckbox.IndeterminateChangeEvent<R extends com.vaadin.flow.component.checkbox.GeneratedVaadinCheckbox<R,?>>com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C extends com.vaadin.flow.component.Component,V>com.vaadin.flow.component.HasValue.ValueChangeEvent<V>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>>LABEL_POSITION_ATTRIBUTE, LABEL_POSITION_DETAILS_ATTRIBUTE| Constructor and Description |
|---|
SuperCheckbox() |
| Modifier and Type | Method and Description |
|---|---|
String |
getTooltipText() |
protected boolean |
isReallyEnabled() |
void |
setEnabled(boolean enabled) |
void |
setReadOnly(boolean readOnly) |
void |
setTooltipText(String title) |
getLabel, isAutofocus, isIndeterminate, setAriaLabel, setAutofocus, setIndeterminate, setLabel, setLabelAsHtmladdChangeListener, addCheckedChangeListener, addIndeterminateChangeListener, getNameString, isAutofocusBoolean, isDisabledBoolean, isIndeterminateBoolean, setDisabled, setNamegetSynchronizationRegistration, hasValidValue, setPresentationValue, setSynchronizedEventaddValueChangeListener, getEmptyValue, getValue, isEmpty, setModelValue, setValue, valueEqualsaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithLabelwithValueaddValueChangeListener, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, isReadOnly, isRequiredIndicatorVisible, setRequiredIndicatorVisible, setValuewithIdwithLabelPositiongetLabelPosition, setLabelPositionwithTooltipTextgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFulladdClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameaddFocusShortcut, blur, focus, getTabIndex, setTabIndexaddClickListener, addClickShortcutprotected boolean isReallyEnabled()
public void setReadOnly(boolean readOnly)
setReadOnly in interface com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.checkbox.Checkbox,Boolean>,Boolean>setReadOnly in interface com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.checkbox.Checkbox,Boolean>,Boolean>public void setEnabled(boolean enabled)
setEnabled in interface com.vaadin.flow.component.HasEnabledpublic void setTooltipText(String title)
setTooltipText in interface HasTooltippublic String getTooltipText()
getTooltipText in interface HasTooltipCopyright © 2024 Miki. All rights reserved.