Package ariba.ui.aribaweb.core

Examples of ariba.ui.aribaweb.core.AWPage$BrowserState


    public ChooserSelectionSource  _chooserSelectionSource;
    public List<Continent> _continentSelections;
    private boolean _invalidateContinentSelections = true;

    public void init () {
        AWPage page = page();
        AWChangeNotifier changeNotifier =
            page.getChangeNotifier();
        PostService.registerChangeListener(changeNotifier);
        page.setPollingInitiated(true);
        page.setPollInterval(5);
        List continents = ListUtil.arrayToList(Continent.values());
        _chooserSelectionSource =
            new ChooserSelectionSource.ListSource(continents, "name");
        _chooserState = new ChooserState(this);
    }
View Full Code Here


    {
        // Note we're working with a local copy of the page here to avoid requiring
        // synchronization on the notifyChange.  We're willing to have a bit of sloppiness
        // in the deactivation -- ie, a page may receive an extra notification even though
        // it has already deactivated its AWChangeNotifier to avoid the synchronization.
        AWPage page = _page;
        boolean isActive = false;
        if (page != null) {
            isActive = page.notifyChange();
        }

        return isActive;
    }
View Full Code Here

    }

    protected static final String PageKey = "AWVFs";
    public static Map formattersForComponent (AWComponent component)
    {
        AWPage page = component.page();
        Map formatters = (Map) page.get(PageKey);
        if (formatters == null) {
            formatters = formattersForSession(component.session());
            assignFormattersForPage(page, formatters);
        }
        return formatters;
View Full Code Here

    }

    private AWArrayManager formInputIds (AWEncodedString formElementId)
    {
        String formElementIdString = formElementId.string();
        AWPage page = page();
        AWArrayManager formInputIds = page.getFormIds(formElementIdString);
        if (formInputIds == null) {
            formInputIds = new AWArrayManager(AWElementIdPath.class);
            page.putFormIds(formElementIdString, formInputIds);
        }
        else {
            formInputIds.clear();
        }
View Full Code Here

        return new AWInputId(id);
    }

    public static AWEncodedString getAWInputId (AWRequestContext requestContext)
    {
        AWPage page = requestContext.page();
        if (page == null)
            return null;

        AWEnvironmentStack env = page.env();

        Object awInputId = env.peek(AWLabel.awinputId);
        if (awInputId == null) {
            return null;
        }
View Full Code Here

    public void awake ()
    {
        // Stash the page that preceded us the first time around
        AWComponent returnPage = returnPage(this);
        if (returnPage == null) {
            AWPage requestPage = requestContext().requestPage();
            if (requestPage != null) {
                returnPage = requestPage.pageComponent();
                pageComponent().dict().put(ReturnPageKey, returnPage);
            }
        }
    }
View Full Code Here

    }

    public void renderResponse(AWRequestContext requestContext, AWComponent component)
    {
        if (isNotificationEnabled()) {
            AWPage page = page();
            page.setPollingInitiated(true);
            AWSession session = session(false);
            _hasNewNotifications = session != null ? session.hasNotification() : false;
            if (_hasNewNotifications || !requestContext().isPollUpdateRequest()) {
                // update notification list
                _hasNotification = _hasNewNotifications;
View Full Code Here

                booleanValueForBinding(PreventBackTrackBindingName));
            _pageCacheMark.setPreventsBacktracking(preventBacktrack);
        }

        // Stash the page that preceded us the first time around
        AWPage requestPage = requestContext().requestPage();
        if (requestPage == null) {
            requestPage = page().previousPage();
        }

        if (requestPage != null) {
            _returnPage = requestPage.pageComponent();
        }
        /*  Use this unstead when Charles makes the methods public...
        _returnPage = session().requestHistory(null).pageAtOffsetFromLastElement(1).pageComponent();
        */
    }
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.core.AWPage$BrowserState

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.