Package com.volantis.mcs.protocols.widgets.attributes

Examples of com.volantis.mcs.protocols.widgets.attributes.SummaryAttributes


public class SummaryElement extends WidgetElement {

    public SummaryElement(XDIMEContextInternal context) {
        super(WidgetElements.SUMMARY, context);
       
        protocolAttributes = new SummaryAttributes();
    }
View Full Code Here


   
    // Javadoc inherited
    protected void initialiseElementSpecificAttributes(
            XDIMEContextInternal context, XDIMEAttributes attributes)
            throws XDIMEException {
        SummaryAttributes summaryAttributes = (SummaryAttributes) protocolAttributes;

        XDIMEElementInternal parent = context.getCurrentElement().getParent();
       
        if (parent != null && parent.getElementType() == GalleryElements.ITEM) {
            summaryAttributes.setInsideGalleryItem(true);
        }
    }
View Full Code Here

    // Javadoc inherited
    public void doRenderOpen(VolantisProtocol protocol,
            MCSAttributes attributes) throws ProtocolException {

        SummaryAttributes summaryAttributes = (SummaryAttributes) attributes;
       
        // Handle the widget:summary element enclosed within the gallery:item element.
        if (summaryAttributes.isInsideGalleryItem()) {
            renderOpenForGalleryItem(protocol, attributes);
           
            return;
        }
       
View Full Code Here

    // Javadoc inherited
    public void doRenderClose(VolantisProtocol protocol,
            MCSAttributes attributes) throws ProtocolException {

        SummaryAttributes summaryAttributes = (SummaryAttributes) attributes;
       
        // Handle the widget:summary element enclosed within the gallery:item element.
        if (summaryAttributes.isInsideGalleryItem()) {
            renderCloseForGalleryItem(protocol, attributes);
           
            return;
        }
        
View Full Code Here

        closeDivElement(currentBuffer);
    }
   
    // javadoc inherited
    public boolean shouldRenderContents(VolantisProtocol protocol, MCSAttributes attributes) throws ProtocolException {
        SummaryAttributes summaryAttributes = (SummaryAttributes) attributes;

        if (summaryAttributes.isInsideGalleryItem()) {
            // The strategy for ItemGallery is not to render contents on fallback
            return isWidgetSupported(protocol);
        } else {
            // in other cases use the default strategy
            return super.shouldRenderContents(protocol, attributes);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.widgets.attributes.SummaryAttributes

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.