Package com.storedobject.ui.util
Class Stepper
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.littemplate.LitTemplate
com.storedobject.helper.LitComponent
com.storedobject.ui.util.Stepper
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.internal.Template,Serializable
@Tag("so-stepper")
@JsModule("./so/stepper/so-stepper.js")
public class Stepper
extends LitComponent
implements com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContainer class containing the header and content component of a step also handles firing step events. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtraButton(Button button) voidaddStep(Stepper.Step step) Adds the given step to the stepper.booleanfinish()intgoToStep(int step) voidvoidvoidvoidbooleaninitUI()booleanbooleanbooleannextStep()booleanvoidsetBackLabel(String label) voidsetCancelLabel(String label) voidsetCancelledAction(Consumer<Stepper> cancelledAction) voidsetCompletedAction(Consumer<Stepper> completedAction) voidsetFinishLabel(String label) voidsetNextLabel(String label) voidvoidvoidvoidMethods inherited from class com.storedobject.helper.LitComponent
executeJS, onDetachMethods inherited from class com.vaadin.flow.component.littemplate.LitTemplate
getChildrenMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
Stepper
public Stepper()
-
-
Method Details
-
goToStep
public int goToStep(int step) -
nextStep
public boolean nextStep() -
previousStep
public boolean previousStep() -
finish
public boolean finish() -
isFirstStep
public boolean isFirstStep() -
isFinalStep
public boolean isFinalStep() -
addStep
Adds the given step to the stepper.- Parameters:
step- the step to add to the stepper. Each step consists of a header and a content component.- Throws:
IllegalArgumentException
-
initUI
public boolean initUI() -
setCancelledAction
-
addExtraButton
-
setCancelLabel
-
setBackLabel
-
setFinishLabel
-
setNextLabel
-
setCompletedAction
-
hideBackButton
public void hideBackButton() -
hideNextButton
public void hideNextButton() -
hideFinishButton
public void hideFinishButton() -
hideCancelButton
public void hideCancelButton() -
unhideBackButton
public void unhideBackButton() -
unhideNextButton
public void unhideNextButton() -
unhideFinishButton
public void unhideFinishButton() -
unhideCancelButton
public void unhideCancelButton()
-