public interface ButtonState extends Serializable
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getClassNames()
Returns current (ordered) set of style class names associated with this state.
|
com.vaadin.flow.component.Component |
getIcon()
Returns current icon of the button.
|
String |
getText()
Returns current text of the button.
|
Set<String> |
getThemeNames()
Returns current (ordered) set of theme names associated with this state.
|
Set<com.vaadin.flow.component.button.ButtonVariant> |
getThemeVariants()
Returns current (ordered) set of theme variants associated with this state.
|
static ButtonState |
of(com.vaadin.flow.component.button.Button button)
Converts a
Button into information about its state. |
String getText()
com.vaadin.flow.component.Component getIcon()
Set<String> getClassNames()
Set<String> getThemeNames()
Set<com.vaadin.flow.component.button.ButtonVariant> getThemeVariants()
static ButtonState of(com.vaadin.flow.component.button.Button button)
Button into information about its state.button - Button to get state from.ButtonState.Copyright © 2023 Miki. All rights reserved.