ariba.ui.wizard.core
Class Wizard

java.lang.Object
  extended by ariba.ui.wizard.core.Wizard
All Implemented Interfaces:
WizardStepsParent

public class Wizard
extends java.lang.Object
implements WizardStepsParent

The Wizard class represents a user's trip through a particular wizard instance. It keeps track of the current step and/or frame, which actions are enabled, etc. It also manages the event handling via the per-frame and per-wizard delegate classes provided by the application.


Field Summary
 WizardAction cancel
           
 WizardAction exit
           
 WizardAction next
           
 WizardAction ok
           
 WizardAction prev
           
 WizardAction refresh
           
 
Constructor Summary
Wizard(java.lang.String name, java.lang.Object context, AWResourceManager resourceManager)
          Constructor
Wizard(java.lang.String name, java.lang.Object context, AWResourceManager resourceManager, java.lang.String extensionDirectory)
          Constructor
 
Method Summary
 void addAction(java.lang.String name, WizardAction action)
          added for use by demoshell
 boolean allowsClickableSteps()
           
 void cleanup()
           
 WizardAction getActionWithName(java.lang.String actionName)
           
 java.lang.Object getAttribute(java.lang.Object key)
           
 java.lang.String getCommandBar()
           
 java.lang.Object getContext()
           
 WizardActionTarget getCurrentActionTarget()
           
 WizardFrame getCurrentFrame()
           
 WizardStep getCurrentStep()
           
 WizardDelegate getDelegate()
           
 WizardFrame getExitFrame()
           
 WizardFrame getFrameWithName(java.lang.String frameName)
           
 java.lang.String getLabel()
           
 java.lang.String getName()
           
 AWPageCacheMark getPageCacheMark()
           
 java.lang.String getPostTocSource()
           
 java.lang.String getPreTocSource()
           
 WizardFrame getSelectionsFrame()
           
 java.lang.String getSelectionsIcon()
           
 java.lang.String getSelectionsLabel()
           
 java.util.List getSteps()
           
 WizardStep getStepWithName(java.lang.String stepName)
           
 java.lang.String getSummarySource()
           
 int getVisibleTopLevelStepSize()
           
 WizardFrame gotoFrame(WizardFrame frame)
          Tells the wizard to go to a particular frame.
 WizardFrame gotoStep(WizardStep step)
          Tells the wizard to go to a particular step.
 void insertStepAfter(WizardStep step, WizardStep afterStep)
           
 void insertStepAt(WizardStep step, int index)
           
 void insertStepBefore(WizardStep step, WizardStep beforeStep)
           
 WizardActionTarget invokeAction(WizardAction action, AWRequestContext requestContext)
          This take place after the take values phase.
 boolean isTerminated()
           
 void removeStep(WizardStep step)
           
 void setAttribute(java.lang.Object key, java.lang.Object value)
           
 void setCommandBar(java.lang.String commandBar)
           
 void setCurrentActionTarget(WizardActionTarget target)
           
 void setExitFrame(WizardFrame frame)
           
 void setLabel(java.lang.String label)
           
 void setPageCacheMark(AWPageCacheMark pageCacheMark)
           
 boolean showSteps()
           
 void start()
           
 void updateChildrenVisible()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

public final WizardAction next

prev

public final WizardAction prev

exit

public final WizardAction exit

ok

public final WizardAction ok

cancel

public final WizardAction cancel

refresh

public final WizardAction refresh
Constructor Detail

Wizard

public Wizard(java.lang.String name,
              java.lang.Object context,
              AWResourceManager resourceManager)
Constructor


Wizard

public Wizard(java.lang.String name,
              java.lang.Object context,
              AWResourceManager resourceManager,
              java.lang.String extensionDirectory)
Constructor

Method Detail

setCommandBar

public void setCommandBar(java.lang.String commandBar)

getCommandBar

public java.lang.String getCommandBar()

getActionWithName

public WizardAction getActionWithName(java.lang.String actionName)

addAction

public void addAction(java.lang.String name,
                      WizardAction action)
added for use by demoshell


getFrameWithName

public WizardFrame getFrameWithName(java.lang.String frameName)

getStepWithName

public WizardStep getStepWithName(java.lang.String stepName)

getExitFrame

public WizardFrame getExitFrame()

setExitFrame

public void setExitFrame(WizardFrame frame)

getContext

public java.lang.Object getContext()

getLabel

public java.lang.String getLabel()

setLabel

public void setLabel(java.lang.String label)

getDelegate

public WizardDelegate getDelegate()

getSummarySource

public java.lang.String getSummarySource()

getPreTocSource

public java.lang.String getPreTocSource()

getPostTocSource

public java.lang.String getPostTocSource()

getCurrentStep

public WizardStep getCurrentStep()

getSelectionsLabel

public java.lang.String getSelectionsLabel()

getSelectionsIcon

public java.lang.String getSelectionsIcon()

getSelectionsFrame

public WizardFrame getSelectionsFrame()

getCurrentActionTarget

public WizardActionTarget getCurrentActionTarget()

getCurrentFrame

public WizardFrame getCurrentFrame()

setAttribute

public void setAttribute(java.lang.Object key,
                         java.lang.Object value)

getAttribute

public java.lang.Object getAttribute(java.lang.Object key)

start

public void start()

invokeAction

public WizardActionTarget invokeAction(WizardAction action,
                                       AWRequestContext requestContext)
This take place after the take values phase. So the validation result has already been stored in the current frame


gotoStep

public WizardFrame gotoStep(WizardStep step)
Tells the wizard to go to a particular step. It enforces validation. In other words, the user will be forced to stay on the current frame if there is any error.


gotoFrame

public WizardFrame gotoFrame(WizardFrame frame)
Tells the wizard to go to a particular frame. It enforces validation. In other words, the user will be forced to stay on the current frame if there is any error.


cleanup

public void cleanup()

isTerminated

public boolean isTerminated()

getSteps

public java.util.List getSteps()
Specified by:
getSteps in interface WizardStepsParent

insertStepBefore

public void insertStepBefore(WizardStep step,
                             WizardStep beforeStep)
Specified by:
insertStepBefore in interface WizardStepsParent

insertStepAfter

public void insertStepAfter(WizardStep step,
                            WizardStep afterStep)
Specified by:
insertStepAfter in interface WizardStepsParent

insertStepAt

public void insertStepAt(WizardStep step,
                         int index)
Specified by:
insertStepAt in interface WizardStepsParent

updateChildrenVisible

public void updateChildrenVisible()
Specified by:
updateChildrenVisible in interface WizardStepsParent

removeStep

public void removeStep(WizardStep step)
Specified by:
removeStep in interface WizardStepsParent

getPageCacheMark

public AWPageCacheMark getPageCacheMark()

setPageCacheMark

public void setPageCacheMark(AWPageCacheMark pageCacheMark)

setCurrentActionTarget

public void setCurrentActionTarget(WizardActionTarget target)

getVisibleTopLevelStepSize

public int getVisibleTopLevelStepSize()

allowsClickableSteps

public boolean allowsClickableSteps()

showSteps

public boolean showSteps()

getName

public java.lang.String getName()


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.