Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.SpanAttributes


        try {
            // Extract the output buffer for use in createElement
            DOMOutputBuffer outputBuffer = (DOMOutputBuffer) buffer;

            // Create the span attributes
            attributes = new SpanAttributes();

            // Stylistic properties
            ElementDetails elementDetails = item.getElementDetails();
            if (elementDetails != null) {
                attributes.setElementDetails(elementDetails);
View Full Code Here


     */
    protected Element openSpanElement(VolantisProtocol protocol,
            MCSAttributes attributes, boolean generateDefaultId)
            throws ProtocolException {
        // Create an instance of span attributes.
        SpanAttributes spanAttributes = createSpanAttributes(protocol, attributes,
                generateDefaultId);

        // Open span element on the protocol.
        return openSpanElement(protocol, spanAttributes);
    }
View Full Code Here

     * @see createSpanAttributes
     */
    protected Element openSpanElement(VolantisProtocol protocol,
            MCSAttributes attributes) throws ProtocolException {
        // Create an instance of div attributes.
        SpanAttributes spanAttributes = createSpanAttributes(protocol, attributes,
                false);

        // Open the span element on protocol.
        return openSpanElement(protocol, spanAttributes);
    }
View Full Code Here

     * @see createSpanAttributes
     */
    protected Element openSpanElement(VolantisProtocol protocol)
            throws ProtocolException {
        // Create an instance of span attributes.
        SpanAttributes spanAttributes = createSpanAttributes(protocol, null, false);

        // Open the div element on protocol.
        return openSpanElement(protocol, spanAttributes);
    }
View Full Code Here

        LocalizationFactory.createExceptionLocalizer(AbbreviationElement.class);

    public AbbreviationElement(XDIMEContextInternal context) {
        super(XHTML2Elements.ABBR, context);

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

        LocalizationFactory.createExceptionLocalizer(QuoteElement.class);

    public QuoteElement(XDIMEContextInternal context) {
        super(XHTML2Elements.QUOTE, context);

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

                        ElementDetails elementDetails = menu.getElementDetails();

                        if (elementDetails != null) {

                            SpanAttributes attributes = new SpanAttributes();
                            // Should only render out a surrounding span
                            // element if the device supports it.
                            if (shortcutProps.supportsSpan()) {
                                // Create span attributes from the menu's
                                // attributes. There are two mechanisms used
                                // here to support real css and the css
                                // emulation provided by MCS.  The style class
                                // VE-... is used for devices that support css
                                // and the css renderers need to ensure they
                                // generate appropriate style rules.  The
                                // pseudo element is used by those protocols
                                // that work through css emulation.
                                attributes.setId(elementDetails.getId());

                                // Need to explicitly set the display to inline
                                // (even though the shortcut should use the
                                // menu styles, we know display should always
                                // be inline in this case).
                                final Styles styles =
                                        elementDetails.getStyles().copy();
                                styles.getPropertyValues().setSpecifiedValue(
                                        StylePropertyDetails.DISPLAY,
                                        StyleKeywords.INLINE);

                                // The tag name and style class are
                                // conditionally added into the attributes
                                // because CSS emulation requires the tag name
                                // but no descendent selector in order to work
                                // correctly while real CSS supporting protocols
                                // would create too many style classes on the
                                // shortcut if the tag is specified and would
                                // not generate the required markup without the
                                // style class.
                                if (customisation.supportsStyleSheets()) {
                                    attributes.setTagName(null);
                                    attributes.setStyles(styles);
                                } else {
                                    attributes.setTagName(
                                            elementDetails.getElementName());
                                    attributes.setStyles(styles);
                                }

                                span.openSpan(domBuffer, attributes);
                            }
View Full Code Here

        UpdateStatusAttributes updateStatusAttributes =
                (UpdateStatusAttributes) attributes;

        // Open span element enclosing the widget.
        SpanAttributes spanAttributes = new SpanAttributes();

        spanAttributes.copy(attributes);

        protocol.writeOpenSpan(spanAttributes);

        // Render four elements for each status value.
        Element normalElement = renderStatusElement(protocol,
View Full Code Here

        if (attributes.getId() == null) {
            attributes.setId(protocol.getMarinerPageContext()
                    .generateUniqueFCID());
        }
       
        clockContentSpanAttributes = new SpanAttributes();
        clockContentSpanAttributes.copy(attributes);
       
        renderOpenString(protocol, attributes.getId());    
        protocol.writeOpenSpan(clockContentSpanAttributes);
    }
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

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.