Class WizardPanel<S extends WizardState>
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
FieldsModifier and TypeFieldDescriptionprotected Sprotected final List<com.vaadin.flow.component.Component>protected final com.vaadin.flow.component.progressbar.ProgressBarprotected intprotected final com.vaadin.flow.component.tabs.Tabsprotected final Map<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component> protected final com.vaadin.flow.component.orderedlayout.VerticalLayout -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends com.vaadin.flow.component.Component & WizardStep<S>>
voidaddStep(T step) voidaddStepStateChangedListener(Consumer<WizardStepState> newStateConsumer) protected voidenableTab(int stepIndex, boolean enable) getState()protected voidinitUI()protected voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent) protected voidonTabChange(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent event) voidvoidshowFirstStep(boolean isFromClient) voidshowNextStep(boolean isFromClient) voidshowPreviousStep(boolean isFromClient) protected voidshowStep(int stepIndex, boolean isFromClient) protected voidMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContentMethods 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, 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.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
stepIndex
protected int stepIndex -
lstSteps
-
tabStepMap
protected final Map<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component> tabStepMap -
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:
onAttachin classcom.vaadin.flow.component.Component
-
onTabChange
protected void onTabChange(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent event) -
addStep
-
getState
-
setState
-
updateProgress
protected void updateProgress() -
showFirstStep
public void showFirstStep(boolean isFromClient) - Specified by:
showFirstStepin interfaceWizardPanelActions
-
showPreviousStep
public void showPreviousStep(boolean isFromClient) - Specified by:
showPreviousStepin interfaceWizardPanelActions
-
showNextStep
public void showNextStep(boolean isFromClient) - Specified by:
showNextStepin interfaceWizardPanelActions
-
showStep
protected void showStep(int stepIndex, boolean isFromClient) -
enableTab
protected void enableTab(int stepIndex, boolean enable) -
addStepStateChangedListener
- Specified by:
addStepStateChangedListenerin interfaceWizardPanelActions
-