java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
software.xdev.vaadin.grid_exporter.components.wizard.panel.WizardPanel<S>
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable, WizardPanelActions

@CssImport("./styles/wizard.css") public class WizardPanel<S extends WizardState> extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout> implements WizardPanelActions
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected S
     
    protected final List<com.vaadin.flow.component.Component>
     
    protected final com.vaadin.flow.component.progressbar.ProgressBar
     
    protected int
     
    protected final com.vaadin.flow.component.tabs.Tabs
     
    protected final Map<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component>
     
    protected final com.vaadin.flow.component.orderedlayout.VerticalLayout
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends com.vaadin.flow.component.Component & WizardStep<S>>
    void
    addStep(T step)
     
    void
     
    protected void
    enableTab(int stepIndex, boolean enable)
     
     
    protected void
     
    protected void
    onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
     
    protected void
    onTabChange(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent event)
     
    void
    setState(S state)
     
    void
    showFirstStep(boolean isFromClient)
     
    void
    showNextStep(boolean isFromClient)
     
    void
    showPreviousStep(boolean isFromClient)
     
    protected void
    showStep(int stepIndex, boolean isFromClient)
     
    protected void
     

    Methods inherited from class com.vaadin.flow.component.Composite

    getChildren, getContent, getElement, initContent

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Field Details

    • stepIndex

      protected int stepIndex
    • lstSteps

      protected final List<com.vaadin.flow.component.Component> lstSteps
    • tabStepMap

      protected final Map<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component> tabStepMap
    • curState

      protected S extends WizardState curState
    • tabsStep

      protected final com.vaadin.flow.component.tabs.Tabs tabsStep
    • progress

      protected final com.vaadin.flow.component.progressbar.ProgressBar progress
    • vlContent

      protected final com.vaadin.flow.component.orderedlayout.VerticalLayout vlContent
  • Constructor Details

    • WizardPanel

      public WizardPanel()
  • Method Details

    • initUI

      protected void initUI()
    • onAttach

      protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
      Overrides:
      onAttach in class com.vaadin.flow.component.Component
    • onTabChange

      protected void onTabChange(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent event)
    • addStep

      public <T extends com.vaadin.flow.component.Component & WizardStep<S>> void addStep(T step)
    • getState

      public S getState()
    • setState

      public void setState(S state)
    • updateProgress

      protected void updateProgress()
    • showFirstStep

      public void showFirstStep(boolean isFromClient)
      Specified by:
      showFirstStep in interface WizardPanelActions
    • showPreviousStep

      public void showPreviousStep(boolean isFromClient)
      Specified by:
      showPreviousStep in interface WizardPanelActions
    • showNextStep

      public void showNextStep(boolean isFromClient)
      Specified by:
      showNextStep in interface WizardPanelActions
    • showStep

      protected void showStep(int stepIndex, boolean isFromClient)
    • enableTab

      protected void enableTab(int stepIndex, boolean enable)
    • addStepStateChangedListener

      public void addStepStateChangedListener(Consumer<WizardStepState> newStateConsumer)
      Specified by:
      addStepStateChangedListener in interface WizardPanelActions