Examples of DivAttributes


Examples of com.volantis.mcs.protocols.DivAttributes

       
        if (galleryId == null) {
            galleryId = protocol.getMarinerPageContext().generateUniqueFCID();
        }
       
        galleryDivAttributes = new DivAttributes();
       
        galleryDivAttributes.copy(attributes);

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

Examples of com.volantis.mcs.protocols.DivAttributes

       
        // Extract the output buffer for use in createElement
        DOMOutputBuffer outputBuffer = (DOMOutputBuffer) buffer;
       
        // Create the div attributes
        attributes = new DivAttributes();
        // Stylistic properties
        ElementDetails elementDetails = menu.getElementDetails();
        if (elementDetails != null) {
            attributes.setElementDetails(elementDetails);
        }
View Full Code Here

Examples of com.volantis.mcs.protocols.DivAttributes

    // Javadoc inherited
    protected XDIMEResult doFallbackOpen(XDIMEContextInternal context, XDIMEAttributes attributes)
            throws ProtocolException {

        VolantisProtocol protocol = getProtocol(context);
        protocol.writeOpenDiv(new DivAttributes());

        // render label
        renderTabLabel(protocol);

        protocol.writeCloseDiv(new DivAttributes());

        // process body
        return XDIMEResult.PROCESS_ELEMENT_BODY;
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.DivAttributes

       
        if (slideshowId == null) {
            slideshowId = protocol.getMarinerPageContext().generateUniqueFCID();
        }
       
        slideshowDivAttributes = new DivAttributes();
       
        slideshowDivAttributes.copy(attributes);

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

Examples of com.volantis.mcs.protocols.DivAttributes

     */
    protected Element closeDivElement(VolantisProtocol protocol)
            throws ProtocolException {
        // Pop div attributes from the stack.
        // Convert EmptyStackException to protocol exception.
        DivAttributes divAttributes;

        try {
            divAttributes = popDivAttributes();
        } catch (EmptyStackException e) {
            throw new ProtocolException("Div element not opened.");
View Full Code Here

Examples of com.volantis.mcs.protocols.DivAttributes

     * @return Created div attributes.
     */
    protected DivAttributes createDivAttributes(VolantisProtocol protocol,
            MCSAttributes sourceAttributes, boolean generateDefaultId) {
        // 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()
                    .createInheritedStyles(
                            protocol.getMarinerPageContext().getStylingEngine()
                            .getStyles(), DisplayKeywords.BLOCK);
           
            divAttributes.setStyles(styles);
        }

        // If there's no ID attribute, and generateDefaultId flag is set,
        // generate unique value for it.
        if (generateDefaultId && divAttributes.getId() == null) {
            divAttributes.setId(protocol.getMarinerPageContext()
                    .generateUniqueFCID());
        }

        // Return created DivAttributes
        return divAttributes;
View Full Code Here

Examples of com.volantis.mcs.protocols.DivAttributes

     */
    protected Element openDivElement(VolantisProtocol protocol,
            MCSAttributes attributes, boolean generateDefaultId)
            throws ProtocolException {
        // Create an instance of div attributes.
        DivAttributes divAttributes = createDivAttributes(protocol, attributes,
                generateDefaultId);

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

Examples of com.volantis.mcs.protocols.DivAttributes

     * @see createDivAttributes
     */
    protected Element openDivElement(VolantisProtocol protocol,
            MCSAttributes attributes) throws ProtocolException {
        // Create an instance of div attributes.
        DivAttributes divAttributes = createDivAttributes(protocol, attributes,
                false);

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

Examples of com.volantis.mcs.protocols.DivAttributes

     * @see createDivAttributes
     */
    protected Element openDivElement(VolantisProtocol protocol)
            throws ProtocolException {
        // Create an instance of div attributes.
        DivAttributes divAttributes = createDivAttributes(protocol, null, false);

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

Examples of com.volantis.mcs.protocols.DivAttributes

     * Opens a placeholder element and returns its ID.
     *
     * @return The ID of the placeholder element.
     */
    private String openPlaceholder(MCSAttributes attributes) throws ProtocolException {
        placeholderAttributes = new DivAttributes();

        placeholderAttributes.copy(attributes);
       
        placeholderAttributes.setId(protocol.getMarinerPageContext().generateUniqueFCID());
       
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.