THIS
- Self-referential generic THISpublic interface FluentButton<THIS extends FluentButton<THIS>> extends FluentAbstractFocusable<THIS>
Button
Button
FluentComponent.FluentFocusable<C extends FluentComponent.FluentFocusable<C>>
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Modifier and Type | Method and Description |
---|---|
default THIS |
withClickListener(com.vaadin.ui.Button.ClickListener listener)
Adds the button click listener.
|
default THIS |
withClickShortcut(int keyCode,
int... modifiers)
Makes it possible to invoke a click on this button by pressing the given
ShortcutAction.KeyCode and (optional) ShortcutAction.ModifierKey s. |
default THIS |
withDisableOnClick(boolean disableOnClick)
Determines if a button is automatically disabled when clicked.
|
default THIS |
withIconAlternateText(String iconAltText) |
withTabIndex
withCaption, withCaptionAsHtml, withComponentError, withData, withDescription, withDescription, withLocale, withResponsive, withShortcutListener, withStyleName
withAttachListener, withDetachListener
withContextClickListener
addContextClickListener, removeContextClickListener
withCaption, withEnabled, withIcon, withId, withParent, withPrimaryStyleName, withStyleName, withStyleName, withVisible
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
withFullHeight, withFullSize, withFullWidth, withHeight, withHeight, withSize, withUndefinedHeight, withUndefinedSize, withUndefinedWidth, withWidth, withWidth
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
withFocusListener
withBlurListener
default THIS withClickListener(com.vaadin.ui.Button.ClickListener listener)
listener
- the Listener to be added.Button.addClickListener(ClickListener)
default THIS withClickShortcut(int keyCode, int... modifiers)
ShortcutAction.KeyCode
and (optional) ShortcutAction.ModifierKey
s.keyCode
- the keycode for invoking the shortcutmodifiers
- the (optional) modifiers for invoking the shortcut, null for
noneButton.setClickShortcut(int, int...)
default THIS withDisableOnClick(boolean 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.
disableOnClick
- true to disable button when it is clicked, false otherwiseButton.setDisableOnClick(boolean)
Copyright © 2017 Jean-Christophe Fortier. All rights reserved.