Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.DOMOutputBuffer.addElement()


     */
    private void doConnectNow() {
        // Only add the meta tag once.
        if (getPageHead().getAttribute("wtv_connect_now") == null) {
            DOMOutputBuffer dom = getHeadBuffer();
            Element element = dom.addElement("meta");
            element.setAttribute("name", "wtv_connect_now");
            element.setAttribute("content", "");

            getPageHead().setAttribute("wtv_connect_now", Boolean.TRUE);
        }
View Full Code Here


            DOMOutputBuffer oneventBuffer = (DOMOutputBuffer)
                deviceLayoutContext.getOutputBuffer(
                    NativeMarkupAttributes.WML_CARD_ONEVENT, true);
            Element onEventElement = oneventBuffer.openElement("onevent");
            onEventElement.setAttribute("type", "ontimer");
            Element goElement = oneventBuffer.addElement("go");
           
            String url = timedRefreshInfo.getRefreshURL();
            if (null == url) {
                // if no url was given then use the current request url
                url = context.getRelativeRequestURL();
View Full Code Here

            oneventBuffer.closeElement("onevent");

            DOMOutputBuffer timerBuffer = (DOMOutputBuffer)
                deviceLayoutContext.getOutputBuffer(
                    NativeMarkupAttributes.WML_CARD_TIMER, true);
            Element timerElement = timerBuffer.addElement("timer");
            timerElement.setAttribute(
                "value", Integer.toString(
                    timedRefreshInfo.getIntervalInTenthsOfSecond()));
        }
        // carry on writing the layout
View Full Code Here

        // Add the top fragment links.
        doTopFragmentLinks(dom, attributes);

        // Add an implicit field which is used to specify the form descriptor.
        Element inputElement = dom.addElement(VDXMLConstants.IMPLICIT_ELEMENT);
        inputElement.setAttribute(VDXMLConstants.NAME_ATTRIBUTE,
                                  URLConstants.FORM_PARAMETER);
        inputElement.setAttribute(VDXMLConstants.VALUE_ATTRIBUTE,
                                  getFormSpecifier(attributes));
View Full Code Here

        }

        // Grab a reference to the special buffer that we render RACCOURCIs
        // into. This is just inside the root of the VDXML element.
        DOMOutputBuffer dom = getExtraBuffer(PAGE_LINKS_BUFFER_NAME, true);
        Element element = dom.addElement(VDXMLConstants.LINK_ELEMENT);
        element.setAttribute(VDXMLConstants.URL_ATTRIBUTE, url);
        element.setAttribute(VDXMLConstants.FUNCTION_ATTRIBUTE,
                             VDXMLConstants.SEND_FUNCTION_STRING);
        element.setAttribute(VDXMLConstants.TEXT_ATTRIBUTE, shortcut);
    }
View Full Code Here

    // Javadoc inherited.
    public PlaceHolder addExternalPlaceHolder(OutputBuffer buffer) {
        DOMOutputBuffer dom = (DOMOutputBuffer) buffer;

        Element link = dom.addElement("link");
        link.setAttribute("rel", "stylesheet");
        link.setAttribute("type", "text/css");
       
        if (media != null) {
            link.setAttribute("media", media);
View Full Code Here

    // Javadoc inherited.
    public PlaceHolder addInlinePlaceHolder(OutputBuffer buffer) {
        DOMOutputBuffer dom = (DOMOutputBuffer) buffer;

        Element style = dom.addElement("style");
        style.setAttribute("type", "text/css");
       
        if (media != null) {
            style.setAttribute("media", media);
        }
View Full Code Here

     * @param content The RegionContent to add to the list.
     */
    public void addRegionContent(RegionContent content) {

        DOMOutputBuffer buffer = (DOMOutputBuffer) getCurrentBuffer();
        Element element = buffer.addElement(REGION_CONTENT_ELEMENT);
        element.setAnnotation(content);

        regionContentCount += 1;

        if (logger.isDebugEnabled()) {
View Full Code Here

        // Add the top fragment links.
        doTopFragmentLinks (dom, attributes);

        // Add an implicit field which is used to specify the form descriptor.
        Element inputElement = dom.addElement ("input");
        inputElement.setAttribute ("type", "hidden");
        inputElement.setAttribute ("name", URLConstants.FORM_PARAMETER);
        inputElement.setAttribute ("value", getFormSpecifier(attributes));

        // Remember the current insertion point in the dom buffer as that is
View Full Code Here

        if (object != null) {
            String prompt =
                    getTextFromReference(object, TextEncoding.VOICE_XML_PROMPT);
            if (prompt != null) {
                Element element = createElementFromString(prompt);
                dom.addElement(element);
            }
        }

        boolean isIteratorPane = false;
        if (pane instanceof RowIteratorPane) {
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.