@Tag(value="button-select") @JsModule(value="./button-select.js") public class ButtonSelect<T> extends ComponentSelect<com.vaadin.flow.component.button.Button,T>
ComponentSelect that uses Buttons.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<?>>NO_SELECTIONLABEL_POSITION_ATTRIBUTE, LABEL_POSITION_DETAILS_ATTRIBUTEHELPER_ABOVE_THEME_VARIANT| Constructor and Description |
|---|
ButtonSelect(Supplier<L> layoutProvider,
com.vaadin.flow.component.button.ButtonVariant selectedVariant,
T... items)
Creates a
ButtonSelect that uses ButtonVariant to visually distinguish the selected button. |
ButtonSelect(Supplier<L> layoutSupplier,
com.vaadin.flow.function.SerializableBiFunction<Integer,T,com.vaadin.flow.component.button.Button> componentFactory,
com.vaadin.flow.function.SerializableBiConsumer<Integer,com.vaadin.flow.component.button.Button> selectionModifier,
com.vaadin.flow.function.SerializableBiConsumer<Integer,com.vaadin.flow.component.button.Button> deselectionModifier,
T... options)
Creates a
ButtonSelect. |
ButtonSelect(Supplier<L> layoutProvider,
String selectedClassName,
String deselectedClassName,
T... items)
Creates a
ButtonSelect that uses style names to visually distinguish the selected button. |
generateModelValue, getSelectedIndex, isNullValueAllowed, isSelected, isSelected, itemClicked, setNullValueAllowed, setPresentationValue, setSelectedIndexdeselect, ensureValidIndex, focus, getComponentDeselectedAction, getComponentFactory, getComponentIndex, getComponentSelectedAction, getOptions, noOp, rebuildComponents, select, setComponentDeselectedAction, setComponentFactory, setComponentSelectedAction, setItems, withComponentDeselectedAction, withComponentFactory, withComponentSelectedActionadd, getErrorMessage, getLabel, isInvalid, remove, setErrorMessage, setInvalid, setLabel, updateValueaddValueChangeListener, 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, waitwithNullValueAllowed, withNullValueAllowed, withoutNullValueAllowedaddValueChangeListener, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible, setValueaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNamewithItems, withItems, withItemswithIdwithLabelwithLabelPositiongetLabelPosition, setLabelPositionwithHelperComponent, withHelperTextgetHelperComponent, getHelperText, setHelperComponent, setHelperTextwithHelperAbove, withHelperAbove, withHelperBelowisHelperAbove, setHelperAbove, setHelperAbove, setHelperBelowwithValuegetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFulladdFocusShortcut, blur, getTabIndex, setTabIndex@SafeVarargs public ButtonSelect(Supplier<L> layoutProvider, String selectedClassName, String deselectedClassName, T... items)
ButtonSelect that uses style names to visually distinguish the selected button.L - Layout type.layoutProvider - Provides the root layout of the component.selectedClassName - Style name used when a button is selected.deselectedClassName - Style name used when a button is deselected.items - Items.@SafeVarargs public ButtonSelect(Supplier<L> layoutProvider, com.vaadin.flow.component.button.ButtonVariant selectedVariant, T... items)
ButtonSelect that uses ButtonVariant to visually distinguish the selected button.L - Layout type.layoutProvider - Provides the root layout of the component.selectedVariant - Variant to use for the selected button. The lack of this variant indicates a non-selected button.items - Items.@SafeVarargs public ButtonSelect(Supplier<L> layoutSupplier, com.vaadin.flow.function.SerializableBiFunction<Integer,T,com.vaadin.flow.component.button.Button> componentFactory, com.vaadin.flow.function.SerializableBiConsumer<Integer,com.vaadin.flow.component.button.Button> selectionModifier, com.vaadin.flow.function.SerializableBiConsumer<Integer,com.vaadin.flow.component.button.Button> deselectionModifier, T... options)
ButtonSelect.L - Layout type.layoutSupplier - Provides the root layout of the component.componentFactory - A factory to create Buttons for each option.selectionModifier - Action to perform when a button is selected.deselectionModifier - Action to perform when a button is deselected.options - Items.Copyright © 2023 Miki. All rights reserved.