Package com.volantis.mcs.protocols

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


        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        Element select = dom.openElement("select");
        ctx.addTitleAttribute(select, attributes);

        Element option = dom.openElement("option");
        ctx.addTitleAttribute(option, attributes);

        LinkAssetReference reference = attributes.getHref();
        if (reference != null) {
            option.setAttribute("onpick", reference.getURL());
View Full Code Here


            // This means rendering the text of the link inside a "fake" pane
            // element, which is required to provide geometry information.

            // Open our fake pane.
            final DOMOutputBuffer dom = (DOMOutputBuffer) outputBuffer;
            Element element = dom.openElement(
                    VDXMLConstants.PSEUDO_PANE_ELEMENT);
            MutablePropertyValues propertyValues = null;
            if (styles != null) {
                propertyValues = styles.getPropertyValues();
            }
View Full Code Here

    protected boolean open(OutputBuffer buffer, MenuItem item, String href)
            throws RendererException {

        DOMOutputBuffer dom = (DOMOutputBuffer) buffer;

        Element element = dom.openElement("option");

        // Write out the attributes.
        if (item.getTitle() != null) {
            element.setAttribute("title", item.getTitle());
        }
View Full Code Here

        if (null != timedRefreshInfo) {
            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) {
View Full Code Here

                }

                if (attributes.isMultiple()) {
                    // open the option element
                    Element optionElement =
                            dom.openElement(VDXMLConstants.INPUT_FIELD_ELEMENT);

                    optionElement.setAttribute(VDXMLConstants.NAME_ATTRIBUTE,
                                               attributes.getName());
                    optionElement.setAttribute(VDXMLConstants.LIBREVAL_ATTRIBUTE,
                                               VDXMLConstants.NO_VALUE);
View Full Code Here

        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        Element annotator = dom.openStyledElement(
                AccesskeyConstants.ACCESSKEY_ANNOTATION_ELEMENT, attributes);

        // Open the anchor element.
        Element anchor = dom.openElement("a");

        // Copy attributes into the anchor element.
        ctx.addTitleAttribute(anchor, attributes);
        anchor.setAttribute("href", attributes.getHref().getURL());
        // Add the dummy accesskey attribute as well.
View Full Code Here

    protected void openForm(XFFormAttributes attributes)
            throws ProtocolException {

        DOMOutputBuffer dom = getContentBuffer(attributes.getFormData ());
        String value;
        Element element = dom.openElement(VDXMLConstants.FORM_ELEMENT);

        // Note: if action attribute is specified via a LinkComponent
        // and no suitable Link Asset is found it does not make sense
        // to fallback to a TextComonent.
        value = resolveFormAction(attributes);
View Full Code Here

        if (trueText != null) {
            trueValues = parseCommaSeparatedList(trueText);
        }

        // Generate the markup
        Element element = dom.openElement(VDXMLConstants.INPUT_FIELD_ELEMENT);

        // set any attribute values that should be applied for all form fields.
        addFormFieldAttributes(element, attributes);

        // set specific attribute values
View Full Code Here

        // Direct the markup to the entry containerInstance's content buffer.
        dom = getCurrentBuffer(entryContainerInstance);

        // Generate the markup
        Element element = dom.openElement(VDXMLConstants.INPUT_FIELD_ELEMENT);

        // set any attribute values that should be applied for all form fields.
        addFormFieldAttributes(element, attributes);

        // set specific attribute values
View Full Code Here

                .getMarinerPageContext().getCurrentOutputBuffer();

        if (content instanceof StyleString) {
            // Writing text label inside a span, in case we support switching
            // text labels in active/inactive states
            Element spanElem = buffer.openElement("span");

            protocol.getInserter().insertPreservingExistingContent(spanElem,
                    content);

            // Set id
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.