public class Stepper extends BaseDominoElement<elemental2.dom.HTMLDivElement,Stepper>
Steps while only one step can be activated
at a time| Modifier and Type | Class and Description |
|---|---|
static interface |
Stepper.StepNumberRenderer
An interface to provide a different implementation for rendering steps numbers
|
static interface |
Stepper.StepperCompleteListener
A function to implement logic that will be called when a step is marked as completed
|
static class |
Stepper.StepperDirection
An enum of possible Stepper directions
|
static class |
Stepper.StepState
An enum to list the
Step possible states |
static interface |
Stepper.StepStateChangeListener
A function to implement listeners to be called whenever the step state is changed
|
static interface |
Stepper.StepStateColors
An interface that can implemented to provide different colors for different
Step states
other than the default colors |
BaseDominoElement.ElementHandler<T>, BaseDominoElement.ResizeHandler<T>, BaseDominoElement.StyleEditor<E extends elemental2.dom.HTMLElement,T extends org.jboss.elemento.IsElement<E>>, BaseDominoElement.WavesStylerelement| Constructor and Description |
|---|
Stepper() |
add, add, addClickListener, addCss, addCss, addEventListener, addEventListener, addEventsListener, addHideListener, addShowListener, alignCenter, alignRight, appendChild, appendChild, apply, attr, blur, childNodes, clearElement, contains, contains, contains, containsCss, css, css, cssClassByIndex, cssClassesCount, cssText, disable, elevate, elevate, enable, firstChild, getAttachObserver, getAttribute, getBoundingClientRect, getChildElementCount, getClickableElement, getCollapsible, getCollapsibleElement, getDetachObserver, getDominoId, getElementsCount, getElevation, getFirstChild, getId, getTextContent, getTooltip, getWavesElement, hasAttribute, hasChildNodes, hasDirectChild, hide, hideOn, id, init, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, insertFirst, insertFirst, insertFirst, isAttached, isCollapsed, isDisabled, isEmptyElement, isEqualNode, isForceHidden, isHidden, isReadOnly, item, lastChild, length, onAttached, onDetached, onResize, pullLeft, pullRight, querySelector, querySelectorAll, remove, removeAttachObserver, removeAttribute, removeChild, removeChild, removeCss, removeCss, removeCssProperty, removeDetachObserver, removeEventListener, removeEventListener, removeHideListener, removeHideOn, removeShowListener, removeShowOn, removeTooltip, removeWaves, replaceCss, setAlignItems, setAttribute, setAttribute, setAttribute, setBackgroundColor, setBackgroundColor, setBorder, setBorderColor, setBottom, setBottom, setBoxShadow, setCollapseStrategy, setColor, setColor, setContent, setContent, setCssProperty, setCssProperty, setCursor, setCursor, setDisabled, setDisplay, setDisplay, setDropMenu, setFlex, setFloat, setFloat, setFontSize, setFontSize, setForceHidden, setHeight, setHeight, setId, setInnerHtml, setLeft, setLeft, setLineHeight, setLineHeight, setMargin, setMargin, setMarginBottom, setMarginBottom, setMarginLeft, setMarginLeft, setMarginRight, setMarginRight, setMarginTop, setMarginTop, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setOpacity, setOpacity, setOverFlow, setOverFlow, setOverFlowY, setPadding, setPadding, setPaddingBottom, setPaddingBottom, setPaddingLeft, setPaddingLeft, setPaddingRight, setPaddingRight, setPaddingTop, setPaddingTop, setPointerEvents, setPosition, setPosition, setReadOnly, setRight, setRight, setTabIndex, setTextAlign, setTextAlign, setTextContent, setTooltip, setTooltip, setTooltip, setTooltip, setTop, setTop, setTransitionDuration, setWidth, setWidth, setZIndex, show, showOn, style, style, styler, textContent, toggleDisplay, toggleDisplay, withWaves, withWavesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisExpandedadd, add, remove, remove, removeProperty, replace, setProperty, setPropertypublic static Stepper create()
public Stepper setStepNumberRenderer(Stepper.StepNumberRenderer stepNumberRenderer)
stepNumberRenderer - Stepper.StepNumberRenderer to override the default onepublic Stepper setStepStateColors(Stepper.StepStateColors stepStateColors)
stepStateColors - Stepper.StepStateColors to override the default onepublic Stepper setStepFooter(org.jboss.elemento.IsElement<?> footerElement)
footerElement - IsElement that will be used a footer for all stepspublic Stepper setStepFooter(elemental2.dom.Node footerElement)
footerElement - Node that will be used a footer for all stepspublic Stepper complete()
public Stepper complete(org.jboss.elemento.IsElement<?> completeContent)
completeContent - IsElement to show up in the stepper as a completed indicator of
to finalize the stepper processpublic Stepper complete(elemental2.dom.Node completeContent)
completeContent - Node to show up in the stepper as a completed indicator of to
finalize the stepper processpublic Stepper completeActiveStep()
public Stepper appendChild(Step step)
step - Step to be added to this Stepper instancepublic Stepper setDirection(Stepper.StepperDirection direction)
direction - Stepper.StepperDirectionpublic Stepper next()
public Stepper activateStep(Step stepToActivate)
stepToActivate - Step to be activated, the step should not disabledpublic Stepper activateStep(int index)
index - int index of the step to be activated, the step should not disabledpublic Stepper previous()
public Stepper setBarColor(Color color)
color - Color the color of the bar connecting a step with the next steppublic Stepper addStateChangeListener(Stepper.StepStateChangeListener listener)
listener - Stepper.StepStateChangeListenerpublic Stepper removeStateChangeListener(Stepper.StepStateChangeListener listener)
listener - Stepper.StepStateChangeListenerpublic List<Stepper.StepStateChangeListener> getStepStateChangeListeners()
Stepper.StepStateChangeListeners of this Stepperpublic Stepper addCompleteListener(Stepper.StepperCompleteListener listener)
listener - Stepper.StepperCompleteListenerpublic Stepper removeCompleteListener(Stepper.StepperCompleteListener listener)
listener - Stepper.StepperCompleteListenerpublic List<Stepper.StepperCompleteListener> getCompleteListeners()
Stepper.StepperCompleteListenerspublic Transition getActivateStepTransition()
Transition currently used for activating a steppublic Stepper setActivateStepTransition(Transition activateStepTransition)
activateStepTransition - Transition for the animation of activating a steppublic Transition getDeactivateStepTransition()
Transition currently used for deactivating a steppublic Stepper setDeactivateStepTransition(Transition deactivateStepTransition)
deactivateStepTransition - Transition for the animation of deactivating a steppublic int getActivateStepTransitionDuration()
public Stepper setActivateStepTransitionDuration(int activateStepTransitionDuration)
activateStepTransitionDuration - int duration in milli-seconds for activating a step
animationpublic int getDeactivateStepTransitionDuration()
public Stepper setDeactivateStepTransitionDuration(int deactivateStepTransitionDuration)
deactivateStepTransitionDuration - int duration in milli-seconds for deactivating a step
animationpublic elemental2.dom.HTMLDivElement element()
element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>element in class BaseDominoElement<elemental2.dom.HTMLDivElement,Stepper>public FlexItem getStepContentFlexItem()
FlexItem that wraps the active step contentpublic Stepper.StepStateColors getStepStateColors()
Stepper.StepStateColorspublic Stepper.StepNumberRenderer getStepNumberRenderer()
Stepper.StepNumberRendererpublic Stepper reset()
Copyright © 2019–2022 Dominokit. All rights reserved.