Examples of AWResponse


Examples of ariba.ui.aribaweb.core.AWResponse

    public String onKeyDownString ()
    {
        boolean hasKeyPress = hasBinding(AWBindingNames.onKeyPress);
        boolean hasClientTrigger = hasBinding(_clientTriggerBinding);
        if (hasKeyPress || hasClientTrigger) {
            AWResponse response = response();
            response.appendContent(Constants.Space);
            response.appendContent(Constants.OnKeyDown);
            response.appendContent(Constants.Equals);
            response.appendContent(Constants.Quote);
            if (hasKeyPress) {
                response.appendContent("var handle = ariba.Menu.shouldHandleMenuKeyDown(this,event); if (handle) {");
                response.appendContent(stringValueForBinding(AWBindingNames.onKeyPress));
                response.appendContent("ariba.Menu.hideActiveMenu(); return false;} return handle;");
            }
            else {
                if (hasClientTrigger) {
                    response.appendContent(stringValueForBinding(_clientTriggerBinding));
                }
                defaultKeyDownAction();
            }
            response.appendContent(Constants.Quote);
        }
        return null;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWResponse

        return classString(false);
    }

    private String classString (boolean disabled)
    {
        AWResponse response = response();
        response.appendContent(Constants.Space);
        response.appendContent(Constants.ClassAttributeName);
        response.appendContent(Constants.Equals);
        response.appendContent(Constants.Quote);
        response.appendContent(disabled? Constants.DisabledMenuClass : Constants.MenuClass);
        if (booleanValueForBinding(_showCheckBinding)) {
            response.appendContent(Constants.Space);
            response.appendContent(Constants.Check);
        }
        if (booleanValueForBinding(_showBulletBinding)) {
            response.appendContent(Constants.Space);
            response.appendContent(Constants.Bullet);
        }
        // If item is collapsed, then style to hide it, and tell parent menu
        // that it has collapsed children (and should show expansion control
        if (booleanValueForBinding(_collapsedBinding)) {
            response.appendContent(Constants.Space);
            response.appendContent("cellColl");
            PopupMenu.flagHasCollapsedItem(this);
        }
        response.appendContent(Constants.Quote);
        return null;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWResponse

    public AWResponse matchAction ()
    {
        match(_allowFullMatchOnInput);

        AWResponse response = application().createResponse();
        requestContext().setResponse(response);
        AWRequestContext requestContext = requestContext();
        template().elementArray()[3].renderResponse(requestContext, this);
        return response;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWResponse

        }
        catch (RuntimeException runtimeException) {
            ModalWindowExceptionPage modalWindowExceptionPage = (ModalWindowExceptionPage)
                    pageWithName(ModalWindowExceptionPage.class.getName());
            modalWindowExceptionPage._runtimeException = runtimeException;
            AWResponse response = application().createResponse();
            modalWindowExceptionPage.generateResponse(response);
            requestContext.setResponse(response);
        }
        finally {
            _runtimeException = null;
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWResponse

        return body;
    }

    public void renderResponse(AWRequestContext requestContext, AWComponent component)
    {
        AWResponse r = requestContext.response();
        r.appendContent("<div class='quoteCode'><pre class='prettyprint'><code>");
        r.appendContent(_text);
        r.appendContent("</code></pre></div>");
        r.appendContent("<div class='quoteSample'>");
        super.renderResponse(requestContext, component);
        r.appendContent("</div>");
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWResponse


    public AWEncodedString onClickString ()
    {
        if (_table.submitOnSelectionChange()) {
            AWResponse response = response();
            response.appendContent(Constants.Space);
            response.appendContent(Constants.OnClick);
            response.appendContent(Constants.Equals);
            response.appendContent(Constants.Quote);
            AWRequestContext requestContext = requestContext();
            AWXBasicScriptFunctions.appendSubmitCurrentForm(requestContext, _elementId);
            response.appendContent(Constants.Quote);
        }
        return null;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWResponse

    }

    private void appendEventHandler (AWEncodedString eventName, AWEncodedString functionName,
            AWEncodedString positioningElement)
    {
        AWResponse response = response();
        AWEncodedString menuId = PopupMenu.menuId(this, _menuIdBinding, _indexBinding);
        response.appendContent(Constants.Space);
        response.appendContent(eventName);
        response.appendContent(Constants.Equals);
        response.appendContent(Constants.Quote);
        response.appendContent(Constants.Return);
        response.appendContent(Constants.Space);
        response.appendContent(functionName);
        response.appendContent(Constants.OpenParen);
        response.appendContent(positioningElement);
        response.appendContent(Constants.Comma);
        response.appendContent(Constants.SingleQuote);
        response.appendContent(menuId);
        response.appendContent(Constants.SingleQuote);
        response.appendContent(Constants.Comma);
        response.appendContent(Constants.SingleQuote);
        response.appendContent(_elementId);
        response.appendContent(Constants.SingleQuote);
        response.appendContent(Constants.Comma);
        response.appendContent(Constants.Event);
        response.appendContent(Constants.CloseParen);
        response.appendContent(Constants.Semicolon);
        response.appendContent(Constants.Quote);
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWResponse

    }

    public String onClickString ()
    {
        if (!_table.submitOnSelectionChangeBindingExists() || _table.submitOnSelectionChange()) {
            AWResponse response = response();
            response.appendContent(Constants.Space);
            response.appendContent(Constants.OnClick);
            response.appendContent(Constants.Equals);
            response.appendContent(Constants.Quote);
            AWRequestContext requestContext = requestContext();
            AWXBasicScriptFunctions.appendSubmitCurrentForm(requestContext, _elementId);
            response.appendContent(Constants.Quote);
        }
        return null;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWResponse

    public String onClickSort ()
    {
        if (_submitForm) {
            AWRequestContext requestContext = requestContext();
            AWResponse response = requestContext.response();
            response.appendContent(OnClickEquals);
                // This covers case where we're not using AWForm
            int index = _currentIndex + 1;
            if (_sortDirection) {
                index = -index;
            }
            AWXBasicScriptFunctions.appendSubmitFormAtIndex
                (response, Zero, tagId(),
                 AWEncodedString.sharedEncodedString(AWUtil.toString(index)));

            response.appendContent(Quote);
        }
        return null;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWResponse

    public String onClickSelectAll ()
    {
        if (_submitForm) {
            AWRequestContext requestContext = requestContext();
            AWResponse response = requestContext.response();
            response.appendContent(OnClickEquals);
                // This covers case where we're not using AWForm
            AWXBasicScriptFunctions.appendSubmitFormAtIndex(response, Zero, tagId(),
                                                            _allSelected ? UnSelectAll : SelectAll);
            response.appendContent(Quote);
        }
        return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.