Package ariba.ui.aribaweb.util

Examples of ariba.ui.aribaweb.util.AWArrayManager


            int otherPathLength = 0;
            if (otherObject instanceof AWElementIdGenerator) {
                AWElementIdGenerator charArrayElementId = (AWElementIdGenerator)otherObject;
                // note: charArrayElementId._path may have empty capacity on the end,
                // so must use charArrayElementId._pathLength.
                AWArrayManager charArrayManager = charArrayElementId.charArrayManager();
                otherPath = (char[])charArrayManager.array();
                otherPathLength = charArrayManager.size();
            }
            else if (otherObject instanceof AWElementIdPath) {
                AWElementIdPath elementIdPath = (AWElementIdPath)otherObject;
                // here elementIdPath._path has no empty capacity on its end, so can use otherPath.thisPathLength.
                otherPath = elementIdPath._path;
View Full Code Here


    }

    public void registerNewPageComponent (AWComponent pageComponent)
    {
        if (_newPages == null) {
            _newPages = new AWArrayManager(AWComponent.ClassObject);
        }
        _newPages.addElement(pageComponent);
    }
View Full Code Here

            // normal case
           _requestPage = _currentPage;
            try {
                String formSender = _request.formValueForKey(AWComponentActionRequestHandler.FormSenderKey);
                if (formSender != null) {
                    AWArrayManager formInputIds = _requestPage.getFormIds(formSender);
                    setFormInputIds(formInputIds);
                }
                _currentPage.applyValues();
            }
            catch (Throwable t) {
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();
        }

        // add all "global" form input ids
        // note that this takes care of all forms that occur after the recording of
        // the global form input id.  All forms that occur before the global element id
        // is recorded are taken care of by AWPage.addGlobalFormInputIdPath().
        List globalPaths = requestContext().getGlobalFormInputIdPaths();
        if (globalPaths != null) {
            for (int i=0, size=globalPaths.size(); i < size; i++) {
                formInputIds.addElement(globalPaths.get(i));
            }
        }
        return formInputIds;
    }
View Full Code Here

    private AWArrayManager _charArrayManager;

    public AWElementIdGenerator ()
    {
        // use char to keep array size smaller (values up to 65,535, unsigned) -- see Assertion in increment() below.
        _charArrayManager = new AWArrayManager(Character.TYPE, 32);
        reset();
    }
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.util.AWArrayManager

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.