Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.DivAttributes.copy()


        // Create new instance of DivAttributes
        DivAttributes divAttributes = new DivAttributes();

        // If source attributes are specified, copy all attribute values.
        if (sourceAttributes != null) {
            divAttributes.copy(sourceAttributes);
        }

        // If styles are not specified, create new inherited styles.
        if (divAttributes.getStyles() == null) {
            Styles styles = StylingFactory.getDefaultInstance()
View Full Code Here


            initialise(attributes);
            DOMOutputBuffer dom = (DOMOutputBuffer) buffer;

            // open the div
            DivAttributes da = new DivAttributes();
            da.copy(attributes);

            // Make sure that the display value is block, rather than the
            // default for xfsi/muselect which is inline.
            Styles styles = da.getStyles();
            MutablePropertyValues propertyValues = styles.getPropertyValues();
View Full Code Here

     * @param attributes the pane attributes.
     * @return newly created div attributes from the pane attributes.
     */
    private DivAttributes createDivAttributes(PaneAttributes attributes) {
        DivAttributes divAttributes = new DivAttributes();
        divAttributes.copy(attributes);
        return divAttributes;
    }

    /**
     * Use the enclosing table cell to render attributes and/or styles.
View Full Code Here

        getPageContext(context).pushOutputBuffer(objectCaptionContent);

        // Open the div in that represents the entire caption. We do this
        // because Paul says caption is a block element.
        DivAttributes divAttributes = new DivAttributes();
        divAttributes.copy(protocolAttributes);
        try {
            getProtocol(context).writeOpenDiv(divAttributes);
        } catch (ProtocolException e) {
            throw new XDIMEException(e);
        }
View Full Code Here

    private void closeObjectCaption(XDIMEContextInternal context, ObjectElement element) {

        // Close the div in that represents the entire caption. We do this
        // because Paul says caption is a block element.
        DivAttributes divAttributes = new DivAttributes();
        divAttributes.copy(protocolAttributes);
        getProtocol(context).writeCloseDiv(divAttributes);

        getPageContext(context).popOutputBuffer(objectCaptionContent);

        element.setCaptionBuffer(objectCaptionContent);
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.