B - Concrete configurator typepublic interface ButtonConfigurator<B extends ButtonConfigurator<B>> extends ComponentConfigurator<B>
Button.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ButtonConfigurator.BaseButtonConfigurator
Base button configurator.
|
ComponentConfigurator.BaseComponentConfigurator| Modifier and Type | Method and Description |
|---|---|
B |
clickShortcut(int keyCode,
int... modifiers)
Makes it possible to invoke a click on this button by pressing the given
ShortcutAction.KeyCode and (optional)
ShortcutAction.ModifierKeys. |
B |
disableOnClick()
Automatically disables button when clicked, typically to prevent (accidental) extra clicks on a button.
|
B |
iconAlternateText(String iconAltText)
Sets the button icon's alternate text
|
B |
onClick(com.vaadin.ui.Button.ClickListener listener)
Add a listener to button to listen to user click events
|
B |
tabIndex(int tabIndex)
Sets the tabulator index of the component.
|
B |
withBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
Adds a listener which gets fired when the the keyboard focus is lost.
|
B |
withFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
Adds a listener which gets fired when the component receives keyboard focus.
|
caption, caption, caption, captionAsHtml, description, description, description, disabled, errorHandler, fullHeight, fullSize, fullWidth, height, height, heightUndefined, hidden, icon, id, immediate, notVisible, primaryStyleName, replaceStyleName, responsive, sizeUndefined, styleName, width, width, widthUndefined, withAttachListener, withContextClickListener, withData, withDetachListener, withShortcutListenerB tabIndex(int tabIndex)
If the tab index is not set (is set to zero), the default tab order is used. The order is somewhat browser-dependent, but generally follows the HTML structure of the page.
A negative value means that the component is completely removed from the tabulation order and can not be reached by pressing the Tab key at all.
tabIndex - The tab order of this component. Indexes usually start from 1. Zero means that default tab order
should be used. A negative value means that the field should not be included in the tabbing sequence.B withFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
listener - Focus listener to addB withBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
listener - Blur listener to addB iconAlternateText(String iconAltText)
iconAltText - Icon alternate textB disableOnClick()
Note that this is only used when the click comes from the user, not when calling Button.click() method
programmatically. Also, if developer wants to re-enable the button, it needs to be done programmatically.
B onClick(com.vaadin.ui.Button.ClickListener listener)
listener - Click listener to addB clickShortcut(int keyCode, int... modifiers)
ShortcutAction.KeyCode and (optional)
ShortcutAction.ModifierKeys. The shortcut is global.keyCode - the keycode for invoking the shortcutmodifiers - the (optional) modifiers for invoking the shortcut, null for noneCopyright © 2019 The Holon Platform. All rights reserved.