public class Step extends BaseDominoElement<elemental2.dom.HTMLDivElement,Step> implements HasValidation<Step>
StepperBaseDominoElement.ElementHandler<T>, BaseDominoElement.ResizeHandler<T>, BaseDominoElement.StyleEditor<E extends elemental2.dom.HTMLElement,T extends org.jboss.elemento.IsElement<E>>, BaseDominoElement.WavesStylerHasValidation.Validatorelement| Constructor and Description |
|---|
Step(String title) |
Step(String title,
String description) |
Step(String title,
String description,
Stepper.StepState initialState) |
| Modifier and Type | Method and Description |
|---|---|
Step |
addStateChangeListener(Stepper.StepStateChangeListener listener) |
Step |
addValidator(HasValidation.Validator validator) |
Step |
appendChild(org.jboss.elemento.IsElement<?> element)
this will append the element to the step content element
|
Step |
appendChild(elemental2.dom.Node node)
this will append the element to the step content element
|
Step |
clearInvalid()
This will clear the step error and change it back to the state it had before it was
invalidation Removes all error messages and mark the component as valid
|
Step |
complete()
Mark the step as completed
|
static Step |
create(String title) |
static Step |
create(String title,
String description) |
static Step |
create(String title,
String description,
Stepper.StepState initialState) |
Step |
disable()
This will put the step in
Stepper.StepState.DISABLED |
elemental2.dom.HTMLDivElement |
element() |
Step |
enable()
This will not make the step active but will enable the step so it is clickable and can be
stepped into with the stepper and by default will put the step in the
Stepper.StepState.INACTIVE |
String |
getDescription() |
List<String> |
getErrors() |
int |
getIndex() |
Stepper.StepState |
getInitialState() |
Stepper.StepState |
getState() |
int |
getStepNumber() |
Stepper |
getStepper() |
List<Stepper.StepStateChangeListener> |
getStepStateChangeListeners() |
String |
getTitle() |
boolean |
hasValidator(HasValidation.Validator validator) |
Step |
invalidate(List<String> errorMessages)
this will be put the step in the
Stepper.StepState.ERROR Mark the component as invalid with a list of error messages |
Step |
invalidate(String errorMessage)
this will be put the step in the
Stepper.StepState.ERROR Mark the component as invalid with the specified error message |
boolean |
isActive() |
boolean |
isFirstStep() |
boolean |
isLastStep() |
Step |
removeStateChangeListener(Stepper.StepStateChangeListener listener) |
Step |
removeValidator(HasValidation.Validator validator) |
Step |
setActive()
This will put the step in
Stepper.StepState.ACTIVE |
Step |
setDescription(String description) |
Step |
setDisabled()
This will put the step in
Stepper.StepState.DISABLED |
Step |
setEnabled(Stepper.StepState targetState)
This will not make the step active unless specified,but will enable the step so it is clickable
and can be stepped into with the stepper and will put the step in the provided state
|
void |
setInitialState(Stepper.StepState initialState) |
Step |
setStepNumber(int stepNumber)
Change the order of the step in the stepper
|
Step |
setTitle(String title) |
ValidationResult |
validate()
if the step is invalid it will be put in the
Stepper.StepState.ERROR validate the component and fail-fast with first error |
List<ValidationResult> |
validateAll()
if the step is invalid it will be put in the
Stepper.StepState.ERROR Run all the validators and return all errors |
add, add, addClickListener, addCss, addCss, addEventListener, addEventListener, addEventsListener, addHideListener, addShowListener, alignCenter, alignRight, apply, attr, blur, childNodes, clearElement, contains, contains, contains, containsCss, css, css, cssClassByIndex, cssClassesCount, cssText, elevate, elevate, 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 Step(String title, String description, Stepper.StepState initialState)
title - String title of the stepdescription - String to describe the step that show up under the titleinitialState - Stepper.StepState to be used by default as the step statepublic Step(String title, String description)
title - String title of the stepdescription - String to describe the step that show up under the titlepublic Step(String title)
title - String title of the steppublic static Step create(String title)
title - String title of the steppublic static Step create(String title, String description)
title - String title of the stepdescription - String to describe the step that show up under the titlepublic static Step create(String title, String description, Stepper.StepState initialState)
title - String title of the stepdescription - String to describe the step that show up under the titleinitialState - Stepper.StepState to be used by default as the step statepublic Step setTitle(String title)
title - String new title for the steppublic String getTitle()
public Step setDescription(String description)
description - String new descriptionpublic String getDescription()
public Step appendChild(org.jboss.elemento.IsElement<?> element)
appendChild in interface HasChildren<Step>appendChild in class BaseDominoElement<elemental2.dom.HTMLDivElement,Step>element - IsElement to be appended to the componentpublic Step appendChild(elemental2.dom.Node node)
appendChild in interface HasChildren<Step>appendChild in class BaseDominoElement<elemental2.dom.HTMLDivElement,Step>node - Node to be appended to the componentpublic Step setStepNumber(int stepNumber)
stepNumber - intpublic int getStepNumber()
public Step complete()
public Step disable()
Stepper.StepState.DISABLED disable in class BaseDominoElement<elemental2.dom.HTMLDivElement,Step>public Step enable()
Stepper.StepState.INACTIVE enable in class BaseDominoElement<elemental2.dom.HTMLDivElement,Step>public Step setDisabled()
Stepper.StepState.DISABLEDpublic Step setActive()
Stepper.StepState.ACTIVEpublic Step setEnabled(Stepper.StepState targetState)
targetState - Stepper.StepStatepublic elemental2.dom.HTMLDivElement element()
element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>element in class BaseDominoElement<elemental2.dom.HTMLDivElement,Step>public ValidationResult validate()
Stepper.StepState.ERROR validate the component and fail-fast with first errorvalidate in interface HasValidation<Step>public List<ValidationResult> validateAll()
Stepper.StepState.ERROR Run all the validators and return all errorsvalidateAll in interface HasValidation<Step>ValidationResults, default to a single validation resultpublic Step addValidator(HasValidation.Validator validator)
addValidator in interface HasValidation<Step>validator - HasValidation.Validatorpublic Step removeValidator(HasValidation.Validator validator)
removeValidator in interface HasValidation<Step>validator - HasValidation.Validatorpublic boolean hasValidator(HasValidation.Validator validator)
hasValidator in interface HasValidation<Step>validator - HasValidation.Validatorpublic Step invalidate(String errorMessage)
Stepper.StepState.ERROR Mark the component as invalid with the specified error messageinvalidate in interface HasValidation<Step>errorMessage - Stringpublic Step invalidate(List<String> errorMessages)
Stepper.StepState.ERROR Mark the component as invalid with a list of error messagesinvalidate in interface HasValidation<Step>errorMessages - List of String error messagespublic List<String> getErrors()
getErrors in interface HasValidation<Step>public Step clearInvalid()
clearInvalid in interface HasValidation<Step>public Step addStateChangeListener(Stepper.StepStateChangeListener listener)
listener - Stepper.StepStateChangeListenerpublic Step removeStateChangeListener(Stepper.StepStateChangeListener listener)
listener - Stepper.StepStateChangeListenerpublic List<Stepper.StepStateChangeListener> getStepStateChangeListeners()
Stepper.StepStateChangeListener added to this steppublic int getIndex()
public boolean isFirstStep()
public boolean isLastStep()
public Stepper.StepState getState()
Stepper.StepState of the steppublic boolean isActive()
Stepper.StepState.ACTIVEpublic Stepper.StepState getInitialState()
Stepper.StepState this step was initially constructed withpublic void setInitialState(Stepper.StepState initialState)
initialState - Stepper.StepState to be used as default initial state for the stepCopyright © 2019–2022 Dominokit. All rights reserved.