| Package | Description |
|---|---|
| org.vaadin.miki.superfields.buttons |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleButtonState |
| Modifier and Type | Method and Description |
|---|---|
ButtonState |
SimpleButtonState.copy()
Returns a deep copy of this object.
|
ButtonState |
MultiClickButton.getState() |
static ButtonState |
ButtonState.of(com.vaadin.flow.component.button.Button button)
Converts a
Button into information about its state. |
| Modifier and Type | Method and Description |
|---|---|
static List<ButtonState> |
SimpleButtonState.forTexts(String... texts)
Turns given texts into corresponding
ButtonStates, one for each text. |
| Modifier and Type | Method and Description |
|---|---|
void |
MultiClickButton.setStates(ButtonState... states)
Sets the states of the button that need to be clicked one after another before the real click happens.
|
protected void |
MultiClickButton.updateButtonState(ButtonState newState)
Updates the state of the button from old to new.
|
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.flow.shared.Registration |
MultiClickButton.addStateChangeListener(StateChangeListener<ButtonState,MultiClickButton> listener) |
void |
MultiClickButton.setStates(Collection<ButtonState> states)
Sets the states of the button that need to be clicked one after another before the real click happens.
|
| Constructor and Description |
|---|
MultiClickButton(ButtonState... states)
Creates a button with given states.
|
MultiClickButton(ComponentClickListener<MultiClickButton> listener,
ButtonState... states)
Creates a button with given listener and states.
|
Copyright © 2023 Miki. All rights reserved.