Class PWizardSequenceManager

java.lang.Object
com.portal.pfc.ui.wizard.PWizardSequenceManager
All Implemented Interfaces:
SequenceManager

public class PWizardSequenceManager extends Object implements SequenceManager
A class that manages the sequence of the components added to the PWizard framework
  • Field Details

    • mFirst

      protected String mFirst
    • mCurrent

      protected String mCurrent
    • mNextMap

      protected HashMap mNextMap
    • mPrevMap

      protected HashMap mPrevMap
  • Constructor Details

    • PWizardSequenceManager

      public PWizardSequenceManager()
  • Method Details

    • getFirst

      public String getFirst()
      Returns the name of the first component in the sequence
      Specified by:
      getFirst in interface SequenceManager
      Returns:
      the name of the first component
    • setFirst

      public void setFirst(String first)
      Sets the component with the specified name to be the first component in the sequence
      Specified by:
      setFirst in interface SequenceManager
      Parameters:
      first - the name of the first component
    • getCurrent

      public String getCurrent()
      Returns the name of the component that is currently visible
      Specified by:
      getCurrent in interface SequenceManager
      Returns:
      the name of the currently visible component
    • setCurrent

      public void setCurrent(String current)
      Sets the component with the specified name to be the current component in the sequence
      Specified by:
      setCurrent in interface SequenceManager
      Parameters:
      current - the name of the current component
    • getNext

      public String getNext(String name)
      Returns the name of the component that is next to the component with the specified name
      Specified by:
      getNext in interface SequenceManager
      Parameters:
      name - the name of the component whose next component is asked for
      Returns:
      the name of the next component in the sequence
    • setNext

      public void setNext(String name, String link)
      Sets a component as next to another one in the sequence
      Specified by:
      setNext in interface SequenceManager
      Parameters:
      name - the name of the component whose next component is going to be set
      link - the name of the next component in the sequence
    • getPrevious

      public String getPrevious(String name)
      Returns the name of the component that is previous to the component with the specified name
      Specified by:
      getPrevious in interface SequenceManager
      Parameters:
      name - the name of the component whose previous component is asked for
      Returns:
      the name of the previous component in the sequence
    • setPrevious

      public void setPrevious(String name, String link)
      Sets a component as previous to another one in the sequence
      Specified by:
      setPrevious in interface SequenceManager
      Parameters:
      name - the name of the component whose previous component is going to be set
      link - the name of the previous component in the sequence