Package ariba.ui.wizard.core

Examples of ariba.ui.wizard.core.WizardFrame


public final class WizardAction extends AWComponent
{
    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) {
View Full Code Here


    public static AWComponent startWizard (Wizard wizard,
                                           AWRequestContext requestContext)
    {
        wizard.start();
        wizard.setPageCacheMark(requestContext.session().markPageCache());
        WizardFrame currentFrame = wizard.getCurrentFrame();
        return createWizardPage(currentFrame, requestContext);
    }
View Full Code Here

        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);
View Full Code Here

    private static AWResponseGenerating terminateWizard (Wizard wizard,
                                                 AWRequestContext requestContext)
    {
        requestContext.session().truncatePageCache(wizard.getPageCacheMark());
        WizardFrame exitFrame = wizard.getExitFrame();
        ActionHandler exitHandler = WizardExitActionHandler.actionHandler(exitFrame);
        wizard.cleanup();
        if (exitHandler != null) {
            return exitHandler.actionClicked(requestContext);
        }
View Full Code Here

    }

    public static AWComponent pageWithName (String pageName,
                                            Wizard wizard)
    {
        WizardFrame frame = wizard.getCurrentFrame();
        WizardPage wizardPage = (WizardPage)frame.getAttribute(WizardPageKey);
        Assert.that(wizardPage != null, "WizardPage is null for current frame");
        return wizardPage.pageWithName(pageName);
    }
View Full Code Here

        return (_wizard.getSelectionsFrame() == null) ? _wizard.getLabel() : null;
    }

    public AWComponent stepClicked ()
    {
        WizardFrame frame = _wizard.gotoStep(_currentStep);
        return WizardUtil.createWizardPage(frame, requestContext());
    }
View Full Code Here

        return WizardUtil.createWizardPage(frame, requestContext());
    }

    public AWComponent selectionsClicked ()
    {
        WizardFrame frame = _wizard.gotoFrame(_wizard.getSelectionsFrame());
        return WizardUtil.createWizardPage(frame, requestContext());
    }
View Full Code Here

        return _currentSubstep == _frame.getStep();
    }

    public AWComponent substepClicked ()
    {
        WizardFrame frame = _frame.getWizard().gotoStep(_currentSubstep);
        return WizardUtil.createWizardPage(frame, requestContext());
    }
View Full Code Here

    {
            // should be safe to cache by defaultHandler.
            // since wizard page is the top level page, the
            // default action handler instances should
            // be the ones registered with the application.
        WizardFrame exitFrame = wizard.getExitFrame();
        WizardExitActionHandler handler =
            (WizardExitActionHandler)exitFrame.getAttribute(defaultHandler);
        if (handler == null) {
            handler = new WizardExitActionHandler(defaultHandler, wizard);
            exitFrame.setAttribute(defaultHandler, handler);
        }
        return handler;
    }
View Full Code Here

        _defaultHandler = defaultHandler;
    }
   
    public AWResponseGenerating actionClicked (AWRequestContext requestContext)
    {
        WizardFrame exitFrame = _wizard.getExitFrame();
        AWResponseGenerating response = WizardUtil.invokeWizardAction
            (_wizard.getCurrentFrame(),
             _wizard.exit,
             requestContext);
        setActionHandler(exitFrame, _defaultHandler);
View Full Code Here

TOP

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

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.