Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.SpanAttributes


    public MenuItemRenderedContent render(OutputBuffer buffer, MenuItem item)
            throws RendererException {

        try {
            // Get the information from the menu item to output
            SpanAttributes attributes = null;
            final ElementDetails elementDetails =
                    item.getLabel().getText().getElementDetails();
            // If the style information exists we will need to output a "span"
            // around the text in order to apply style
            if (elementDetails != null) {
                // Set up the span attributes to be applied here and after the
                // text output
                attributes = new SpanAttributes();
                attributes.setElementDetails(elementDetails);

                spanOutput.openSpan((DOMOutputBuffer)buffer, attributes);
            }

            // Write the text for the menu item into the output buffer.
View Full Code Here


        }       

        // Require script module
        require(WIDGET_TICKER, protocol, attributes);
       
        spanAttributes = new SpanAttributes();
       
        spanAttributes.copy(attributes);

        if (spanAttributes.getId() == null) {
            spanAttributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());
View Full Code Here

            if (null == caption) {
                caption = value;
            }

            SpanAttributes sa = null;
            final Styles captionStyles = option.getCaptionStyles();
            if (null != captionStyles) {
                sa = new SpanAttributes();
                sa.setStyles(captionStyles);
                openSpan(dom, sa);
            }

            dom.appendEncoded(caption);
View Full Code Here

        // Render 'span' element, which will enclose content of
        // the 'response:message' element. Remember to propagate
        // the ID attribute and styles.
        try {
            messageSpanAttributes = new SpanAttributes();

            messageSpanAttributes.setId(protocolAttributes.getId());

            messageSpanAttributes.setStyles(StylingFactory.getDefaultInstance()
                    .createInheritedStyles(
                            protocol.getMarinerPageContext().getStylingEngine()
                            .getStyles(), DisplayKeywords.INLINE));

            protocol.writeOpenSpan(messageSpanAttributes);

            contentSpanAttributes = new SpanAttributes();

            contentSpanAttributes.setStyles(protocolAttributes.getStyles());

            protocol.writeOpenSpan(contentSpanAttributes);
View Full Code Here

        LocalizationFactory.createExceptionLocalizer(CodeElement.class);

    public VariableElement(XDIMEContextInternal context) {
        super(XHTML2Elements.VAR, context);

        protocolAttributes = new SpanAttributes();
    }
View Full Code Here


    public DefinitionElement(XDIMEContextInternal context) {
        super(XHTML2Elements.DFN, context);

        protocolAttributes = new SpanAttributes();
    }
View Full Code Here

       
        if (stopwatchId == null) {
            stopwatchId = protocol.getMarinerPageContext().generateUniqueFCID();
        }
       
        stopwatchSpanAttributes = new SpanAttributes();
        stopwatchSpanAttributes.copy(attributes);
       
        if (stopwatchSpanAttributes.getId() == null) {
            stopwatchSpanAttributes.setId(stopwatchId);
        }
View Full Code Here

       
        if (timerId == null) {
            timerId = protocol.getMarinerPageContext().generateUniqueFCID();
        }
       
        timerSpanAttributes = new SpanAttributes();
        timerSpanAttributes.copy(attributes);
       
        if (timerSpanAttributes.getId() == null) {
            timerSpanAttributes.setId(timerId);
        }
View Full Code Here

            // buttons alre always rendered as type="button"
            // default value is submit which leads to unexpected behaviour when button is
            // rendered in form (like in wizard)
            element.setAttribute("type","button");
        } else {
            spanAttributes = new SpanAttributes();

            spanAttributes.copy(attributes);

            if (spanAttributes.getId() == null) {
                spanAttributes.setId(elementId);
View Full Code Here

        // Allow subclasses to add extra attributes to the image.
        addImageAttributes (element, attributes);

      } else if (altText != null) {
        if (!WhitespaceUtilities.isWhitespace(altText,0,altText.length())) {
            SpanAttributes sa = new SpanAttributes();
            sa.setId(attributes.getId());
            sa.setStyles(attributes.getStyles());

            openSpan(dom, sa);
            dom.appendEncoded(altText);
            closeSpan(dom, sa);
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.SpanAttributes

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.