Package ariba.ui.wizard.core

Examples of ariba.ui.wizard.core.Wizard


    }

    public AWComponent guideAction ()
    {
        requestContext().put("PostAlert", "This is Post #" + _posts.size());
        Wizard wizard = new Wizard
            ("wizard/GuestBook", _newPost, resourceManager());
        return WizardUtil.startWizard(wizard, requestContext());
    }
View Full Code Here


public class Content extends WizardFrameContent
{
    public WizardActionTarget actionClicked (WizardAction action)
    {
        Wizard wizard = getFrame().getWizard();
        if (wizard.next == action) {
            Post post = (Post)getContext();
            if (post.isPrivate) {
                return wizard.getFrameWithName("summaryFrame");
            }
        }
        return super.actionClicked(action);
    }
View Full Code Here

{
    public AWResponseGenerating actionClicked ()
    {
        String name = stringValueForBinding(AWBindingNames.name);
        WizardFrame frame = ((WizardPage)pageComponent()).frame();
        Wizard wizard = frame.getWizard();
        ariba.ui.wizard.core.WizardAction action = null;
        if (name != null) {
            action = wizard.getActionWithName(name);
        }
        if (action == null) {
            action = wizard.refresh;
        }
        return WizardUtil.invokeWizardAction(frame, action, requestContext());
View Full Code Here

    public static AWResponseGenerating invokeWizardAction (
        WizardFrame frame,
        WizardAction wizardAction,
        AWRequestContext requestContext)
    {
        Wizard wizard = frame.getWizard();
        WizardActionTarget target = wizard.invokeAction(wizardAction, requestContext);
        AWResponseGenerating targetComponent = null;
        if (target instanceof UrlActionTarget) {
            targetComponent = generateResponseForUrlTarget(
                frame, (UrlActionTarget)target, requestContext);
        }
        else if (target instanceof WizardFrame) {
            WizardFrame targetFrame = (WizardFrame)target;

                // clear up the action handler that could been
                // stashed by WizardExitActionHandler
            if (targetFrame == wizard.getExitFrame()) {
                WizardExitActionHandler.clearActionHandler(targetFrame);
            }
            targetComponent = generateResponseForFrameTarget(
                frame, targetFrame, requestContext);
        }
View Full Code Here

    public static AWResponseGenerating generateResponseForUrlTarget (
        WizardFrame currentFrame,
        UrlActionTarget urlTarget,
        AWRequestContext requestContext)
    {
        Wizard wizard = currentFrame.getWizard();
        wizard.setCurrentActionTarget(urlTarget);
        AWResponseGenerating response = null;

        if (urlTarget.terminatesWizard()) {
            response = terminateWizard(wizard, requestContext);
        }
View Full Code Here

    public static AWResponseGenerating generateResponseForComponentTarget (
        WizardFrame currentFrame,
        ComponentActionTarget componentTarget,
        AWRequestContext requestContext)
    {
        Wizard wizard = currentFrame.getWizard();
        wizard.setCurrentActionTarget(componentTarget);
        AWResponseGenerating response = null;

        if (componentTarget.terminatesWizard()) {
            response = terminateWizard(wizard, requestContext);
        }
View Full Code Here

{
   
    public AWComponent startWizard ()
    {
        Map wizardContext = MapUtil.map();
        Wizard wizard = new Wizard
            ("gallery/wizard/WizardExample", wizardContext, resourceManager());
        return WizardUtil.startWizard(wizard, requestContext());       
    }
View Full Code Here

TOP

Related Classes of ariba.ui.wizard.core.Wizard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.