Package ariba.ui.aribaweb.core

Examples of ariba.ui.aribaweb.core.AWComponent


        return super.actionClicked(action);
    }

    protected WizardActionTarget mainPageActionTarget ()
    {
        AWComponent mainPage = pageWithName(Main.class.getName());
        return new ComponentActionTarget(getFrame().getWizard(),
                              mainPage,
                              true);
    }
View Full Code Here


    protected BookmarkEncrypter _encrypter = new DefaultEncrypterImpl();

    public boolean isBookmarkable (AWRequestContext requestContext)
    {
        if (requestContext.page() != null) {
            AWComponent comp = requestContext.pageComponent();
            if (comp instanceof AWPublicBookmarkable) {
                return true;
            }
            else if (comp instanceof AWBookmarkURLProvider) {
                return true;
View Full Code Here

        return false;
    }

    public String getURLString (AWRequestContext requestContext)
    {
        AWComponent comp = requestContext.pageComponent();

        if (comp instanceof AWBookmarkURLProvider) {
            return ((AWBookmarkURLProvider)comp).bookmarkURL();
        }
        Map<String, Object> properties = null;
        List<String> aprop =
            ListUtil.collectionToList(getAnnotedProperties(comp.getClass()).keySet());
        properties = MapUtil.map();

        for (String prop : aprop) {
            properties.put(prop, FieldValue.getFieldValue(comp, prop));
        }

        StringBuffer queryBuff = new StringBuffer();
        queryBuff.append(Fmt.S("%s=%s", PageName, comp.componentReference().tagName()));

        for (String key : properties.keySet()) {
            Object val = properties.get(key);
            String sval = AWBookmarkFormatter.format(val);
            sval = AWUtil.encodeString(sval);
View Full Code Here

    }


    public AWComponent getComponent(AWRequestContext requestContext) {
        String page = requestContext.request().formValueForKey(PageName);
        AWComponent compRet = requestContext.pageWithName(page);
        if (compRet instanceof AWProtectedBookmarkable) {
            ((AWProtectedBookmarkable)compRet).check();
        }
        Map<String,Class<?>> aprop = getAnnotedProperties(compRet.getClass());
        try {
            for (String prop : aprop.keySet()) {
                Object val = AWBookmarkFormatter.parse(
                    requestContext.request().formValueForKey(prop), aprop.get(prop));
                FieldValue.setFieldValue(compRet, prop, val);
View Full Code Here

public class IsSidebarVisibleConditionHandler extends ConditionHandler
{
    public boolean evaluateCondition (AWRequestContext requestContext)
    {
        // defer to binding, if one was passed on the <BasicPageWrapper>
        AWComponent parent = requestContext.getCurrentComponent().parent();
        if (parent.hasBinding(BindingNames.isSidebarVisible)) {
            return parent.booleanValueForBinding(BindingNames.isSidebarVisible);
        }
        WidgetsSessionState state = WidgetsSessionState.get(requestContext);
        return state.isSidebarVisible();
    }
View Full Code Here

        AWInstanceInclude.closePanel(this);
    }

    public AWComponent okClicked ()
    {
        AWComponent returnPage = null;
        ariba.ui.aribaweb.core.AWBinding binding = bindingForName("okAction", true);
        if (binding != null) {
            returnPage = (AWComponent)valueForBinding(binding);
        }
        prepareToExit();
View Full Code Here

        return returnPage;
    }

    public AWComponent cancelClicked ()
    {
        AWComponent returnPage = null;
        ariba.ui.aribaweb.core.AWBinding binding = bindingForName("cancelAction", true);
        if (binding != null) {
            returnPage = (AWComponent)valueForBinding(binding);
        }
        prepareToExit();
View Full Code Here

            UIMeta meta = UIMeta.getInstance();
            Context context = meta.newContext();
            context.push();
            context.set(UIMeta.KeyModule, module.name());
            String pageName = (String)context.propertyForKey(UIMeta.KeyHomePage);
            AWComponent page = requestContext.pageWithName(pageName);
            meta.preparePage(context, page);
            context.pop();
            return page;
        }
View Full Code Here

            return response;
        }

        public AWResponseGenerating redirectForPage (AWComponent pageComponent)
        {
            AWComponent page = pageComponent;
            checkSelectedModule(pageComponent);
            UIMeta meta = UIMeta.getInstance();
            Context context = meta.newContext();
            context.push();
            context.set(UIMeta.KeyModule, _selectedModule.name());
View Full Code Here

public final class IsNavigatorBarVisibleConditionHandler extends ConditionHandler
{
    public boolean evaluateCondition (AWRequestContext requestContext)
    {
        AWComponent pageWrapper = PageWrapper.instance(requestContext.getCurrentComponent());
        if (pageWrapper.hasBinding(BindingNames.isNavigationBarVisible)) {
            return pageWrapper.booleanValueForBinding(BindingNames.isNavigationBarVisible);
        }
        return true;
    }
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.core.AWComponent

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.