public class IndexedButton extends com.vaadin.flow.component.button.Button implements WithIndexMixin<IndexedButton>, WithIdMixin<IndexedButton>, WithComponentAsIconMixin<IndexedButton>, WithTextMixin<IndexedButton>, Clickable, WithTooltipMixin<IndexedButton>
Button, i.e. one that implements HasIndex.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INDEX |
| Constructor and Description |
|---|
IndexedButton()
Creates an indexed button with
DEFAULT_INDEX as index. |
IndexedButton(com.vaadin.flow.component.Component icon)
Creates an indexed button with
DEFAULT_INDEX as index and an icon. |
IndexedButton(com.vaadin.flow.component.Component icon,
com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> clickListener)
Creates an indexed button with
DEFAULT_INDEX as index, given icon and a listener. |
IndexedButton(com.vaadin.flow.component.Component icon,
int startingIndex,
com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> listener)
Creates the button with am icon, starting index and a click listener.
|
IndexedButton(int startingIndex)
Creates the button with a given initial index.
|
IndexedButton(String text)
Creates an indexed button with
DEFAULT_INDEX as index and given text on the button. |
IndexedButton(String text,
com.vaadin.flow.component.Component icon)
Creates an indexed button with
DEFAULT_INDEX as index, given text and icon on the button. |
IndexedButton(String text,
com.vaadin.flow.component.Component icon,
com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> clickListener)
Creates an indexed button with
DEFAULT_INDEX as index, given text and icon, and a listener. |
IndexedButton(String text,
com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> clickListener)
Creates an indexed button with
DEFAULT_INDEX as index, given text and a listener. |
IndexedButton(String text,
com.vaadin.flow.component.Component icon,
int startingIndex,
com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> listener)
Creates the button with a given text, icon, starting index and a click listener.
|
IndexedButton(String text,
int startingIndex,
com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> listener)
Creates the button with a given text, starting index and a click listener.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Returns the current index of the object.
|
String |
getText()
Returns current text of this object.
|
String |
getTooltipText() |
void |
setIndex(int index)
Changes the index of the object.
|
void |
setTooltipText(String title) |
click, clickInClient, getIcon, isAutofocus, isDisableOnClick, isIconAfterText, onAttach, setAutofocus, setDisableOnClick, setIcon, setIconAfterText, setTextaddThemeVariants, addToPrefix, addToSuffix, isAutofocusBoolean, isDisabledBoolean, remove, removeAll, removeThemeVariants, setDisabledaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithIndexwithIdwithIcongetIcon, setIconwithTextwithTooltipTextgetCssSize, 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, setClassNameaddClickListener, addClickShortcutaddFocusShortcut, blur, focus, getTabIndex, setTabIndexpublic static final int DEFAULT_INDEX
public IndexedButton()
DEFAULT_INDEX as index.public IndexedButton(String text)
DEFAULT_INDEX as index and given text on the button.text - Text to show on the button.public IndexedButton(com.vaadin.flow.component.Component icon)
DEFAULT_INDEX as index and an icon.icon - Icon to put on the button.public IndexedButton(String text, com.vaadin.flow.component.Component icon)
DEFAULT_INDEX as index, given text and icon on the button.text - Text on the button.icon - Icon on the button.public IndexedButton(String text, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> clickListener)
DEFAULT_INDEX as index, given text and a listener.text - Text on the button.clickListener - Event listener.public IndexedButton(com.vaadin.flow.component.Component icon,
com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> clickListener)
DEFAULT_INDEX as index, given icon and a listener.icon - Icon on the button.clickListener - Event listener.public IndexedButton(String text, com.vaadin.flow.component.Component icon, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> clickListener)
DEFAULT_INDEX as index, given text and icon, and a listener.text - Text on the button.icon - Icon on the button.clickListener - Event listener.public IndexedButton(int startingIndex)
startingIndex - Initial index of the button.public IndexedButton(String text, int startingIndex, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> listener)
text - Initial text.startingIndex - Initial index of the button.listener - Listener to be called on click.public IndexedButton(String text, com.vaadin.flow.component.Component icon, int startingIndex, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> listener)
text - Initial text.icon - Icon.startingIndex - Initial index of the button.listener - Listener to be called on click.public IndexedButton(com.vaadin.flow.component.Component icon,
int startingIndex,
com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button>> listener)
icon - Icon.startingIndex - Initial index of the button.listener - Listener to be called on click.public int getIndex()
HasIndexpublic final void setIndex(int index)
HasIndexpublic String getText()
HasTextgetText in interface com.vaadin.flow.component.HasTextpublic void setTooltipText(String title)
setTooltipText in interface HasTooltippublic String getTooltipText()
getTooltipText in interface HasTooltipCopyright © 2024 Miki. All rights reserved.