Package org.patternfly.component.wizard
Class WizardStep
java.lang.Object
org.patternfly.component.SubComponent<HTMLElement,WizardStep>
org.patternfly.component.wizard.WizardStep
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement,,WizardStep> ElementClassListMethods<HTMLElement,,WizardStep> ElementConsumerMethods<HTMLElement,,WizardStep> ElementContainerDelegate<HTMLElement,,WizardStep> ElementContainerMethods<HTMLElement,,WizardStep> ElementEventMethods<HTMLElement,,WizardStep> ElementIdMethods<HTMLElement,,WizardStep> ElementQueryMethods<HTMLElement>,HTMLElementAttributeMethods<HTMLElement,,WizardStep> HTMLElementDataMethods<HTMLElement,,WizardStep> HTMLElementStyleMethods<HTMLElement,,WizardStep> HTMLElementVisibilityMethods<HTMLElement,,WizardStep> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,WizardStep> HasIdentifier<HTMLElement,,WizardStep> ComponentContext<HTMLElement,,WizardStep> Modifiers.Disabled<HTMLElement,WizardStep>
public class WizardStep
extends SubComponent<HTMLElement,WizardStep>
implements ComponentContext<HTMLElement,WizardStep>, Modifiers.Disabled<HTMLElement,WizardStep>, ElementContainerDelegate<HTMLElement,WizardStep>, HasIdentifier<HTMLElement,WizardStep>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddisabled(boolean disabled) <T> Tbooleanbooleannext()nextIf(WizardStepNextHandler handler) Configures a callback to handle the transition to the next step in a wizard workflow.nextIfPromised(WizardStepNextPromise promise) Associates a promise to handle the transition when navigating to the next step in a wizard workflow.onEnter(WizardStepEnterHandler handler) onLeave(WizardStepLeaveHandler handler) previous()previousIf(WizardStepPreviousHandler handler) Assigns a callback to be executed when navigating to the previous step in a wizard workflow.Associates a promise to handle the transition when navigating to the previous step in a wizard workflow.status()voidstatus(ValidationStatus status) <T> WizardStepthat()booleanvisited()static WizardStepwizardStep(String identifier, String title) static WizardStepwizardStep(String identifier, String title, WizardStepType type) Methods inherited from class org.patternfly.component.SubComponent
element, registerSubComponentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.patternfly.core.ComponentContext
get, getMethods inherited from interface org.jboss.elemento.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerDelegate
add, add, addMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hiddenMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled
-
Field Details
-
SUB_COMPONENT_NAME
- See Also:
-
-
Method Details
-
wizardStep
-
wizardStep
-
containerDelegate
- Specified by:
containerDelegatein interfaceElementContainerDelegate<HTMLElement,WizardStep>
-
disabled
- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement,WizardStep>
-
store
- Specified by:
storein interfaceComponentContext<HTMLElement,WizardStep>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,WizardStep>
-
previousIf
Assigns a callback to be executed when navigating to the previous step in a wizard workflow. This method allows for defining custom behavior when the user attempts to transition to a previous step.If a previous promise is already set, the existing promise will be cleared, and the new callback will overwrite it.
- Parameters:
handler- the callback to be invoked during the transition to a previous step- Returns:
- the current instance of
WizardStep, enabling method chaining
-
previousIfPromised
Associates a promise to handle the transition when navigating to the previous step in a wizard workflow. This method enables defining custom asynchronous behavior for the step transition.If a previous callback is already set, the existing callback will be cleared, and the new promise will overwrite it.
- Parameters:
promise- theWizardPreviousPromiseto be executed during the transition to a previous step- Returns:
- the current
WizardStepinstance, allowing method chaining
-
nextIf
Configures a callback to handle the transition to the next step in a wizard workflow. This method enables defining custom behavior that should occur when attempting to navigate from the current step to the next step.If a next promise is already set, it will be cleared, and the new callback will overwrite the existing configuration.
- Parameters:
handler- the callback to be executed during the transition to the next step- Returns:
- the current instance of
WizardStepto allow method chaining
-
nextIfPromised
Associates a promise to handle the transition when navigating to the next step in a wizard workflow. This method allows for defining custom asynchronous behavior that should occur during the transition.If a next callback is already set, the existing callback will be cleared, and the new promise will overwrite it.
- Parameters:
promise- theWizardNextPromiseto be executed during the transition to the next step- Returns:
- the current
WizardStepinstance, allowing method chaining
-
onEnter
-
onLeave
-
identifier
- Specified by:
identifierin interfaceHasIdentifier<HTMLElement,WizardStep>
-
has
- Specified by:
hasin interfaceComponentContext<HTMLElement,WizardStep>
-
get
- Specified by:
getin interfaceComponentContext<HTMLElement,WizardStep>
-
next
-
previous
-
status
-
status
-
clearStatus
public void clearStatus() -
isDisabled
public boolean isDisabled()- Specified by:
isDisabledin interfaceModifiers.Disabled<HTMLElement,WizardStep>
-
visited
public boolean visited()
-