Class WizardContext

java.lang.Object
org.patternfly.component.wizard.WizardContext
All Implemented Interfaces:
IsElement<elemental2.dom.HTMLElement>, TypedBuilder<elemental2.dom.HTMLElement, WizardContext>, ComponentContext<elemental2.dom.HTMLElement, WizardContext>

public class WizardContext extends Object implements ComponentContext<elemental2.dom.HTMLElement, WizardContext>
A context object for sharing state across steps in a Wizard component.
  • Method Details

    • has

      public boolean has(String key)
      Description copied from interface: ComponentContext
      Determines whether a value is stored with the specified key.
      Specified by:
      has in interface ComponentContext<elemental2.dom.HTMLElement, WizardContext>
      Parameters:
      key - the key to check
      Returns:
      true if a value is stored with the specified key, false otherwise
    • get

      public <T> T get(String key)
      Description copied from interface: ComponentContext
      Retrieves the value associated with the given key from the ComponentContext.
      Specified by:
      get in interface ComponentContext<elemental2.dom.HTMLElement, WizardContext>
      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
    • store

      public <T> WizardContext store(String key, T value)
      Description copied from interface: ComponentContext
      Stores a value associated with a key.
      Specified by:
      store in interface ComponentContext<elemental2.dom.HTMLElement, WizardContext>
      Type Parameters:
      T - the type of the value being stored
      Parameters:
      key - the key associated with the value
      value - the value to be stored
    • element

      public elemental2.dom.HTMLElement element()
      Specified by:
      element in interface IsElement<elemental2.dom.HTMLElement>
    • that

      public WizardContext that()
      Specified by:
      that in interface TypedBuilder<elemental2.dom.HTMLElement, WizardContext>