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) Adds/removes modifier(disabled)<T> TRetrieves the value associated with the given key from the ComponentContext.booleanDetermines whether a value is stored with the specified key.booleannext()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> WizardStepStores a value associated with a key.that()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
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement, WizardStep>
-
store
Description copied from interface:ComponentContextStores a value associated with a key.- Specified by:
storein interfaceComponentContext<HTMLElement, WizardStep>- Type Parameters:
T- the type of the value being stored- Parameters:
key- the key associated with the valuevalue- the value to be stored
-
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
Description copied from interface:ComponentContextDetermines whether a value is stored with the specified key.- Specified by:
hasin interfaceComponentContext<HTMLElement, WizardStep>- Parameters:
key- the key to check- Returns:
- true if a value is stored with the specified key, false otherwise
-
get
Description copied from interface:ComponentContextRetrieves the value associated with the given key from the ComponentContext.- Specified by:
getin interfaceComponentContext<HTMLElement, WizardStep>- Type Parameters:
T- the type of the value being retrieved- Parameters:
key- the key associated with the value- Returns:
- the value associated with the key, or null if no value is found
-
next
-
previous
-
status
-
status
-
clearStatus
public void clearStatus() -
isDisabled
public boolean isDisabled()- Specified by:
isDisabledin interfaceModifiers.Disabled<HTMLElement, WizardStep>
-
visited
public boolean visited()
-